Class DistributedNodesInfo

java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.DistributedNodesInfo

public final class DistributedNodesInfo extends Object
This is used to represent the various nodes of the distributed container.
  • Constructor Details

    • DistributedNodesInfo

      public DistributedNodesInfo()
      Creates an instance of DistributedNodesInfo class.
  • Method Details

    • nodeName

      public String nodeName()
      Get the nodeName property: Name of the node under a distributed container.
      Returns:
      the nodeName value.
    • withNodeName

      public DistributedNodesInfo withNodeName(String nodeName)
      Set the nodeName property: Name of the node under a distributed container.
      Parameters:
      nodeName - the nodeName value to set.
      Returns:
      the DistributedNodesInfo object itself.
    • status

      public String status()
      Get the status property: Status of this Node. Failed | Succeeded.
      Returns:
      the status value.
    • withStatus

      public DistributedNodesInfo withStatus(String status)
      Set the status property: Status of this Node. Failed | Succeeded.
      Parameters:
      status - the status value to set.
      Returns:
      the DistributedNodesInfo object itself.
    • errorDetail

      public ErrorDetail errorDetail()
      Get the errorDetail property: Error Details if the Status is non-success.
      Returns:
      the errorDetail value.
    • withErrorDetail

      public DistributedNodesInfo withErrorDetail(ErrorDetail errorDetail)
      Set the errorDetail property: Error Details if the Status is non-success.
      Parameters:
      errorDetail - the errorDetail value to set.
      Returns:
      the DistributedNodesInfo object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.