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 Summary
Constructors Constructor Description DistributedNodesInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorDetail
errorDetail()
Get the errorDetail property: Error Details if the Status is non-success.String
nodeName()
Get the nodeName property: Name of the node under a distributed container.String
status()
Get the status property: Status of this Node.void
validate()
Validates the instance.DistributedNodesInfo
withErrorDetail(ErrorDetail errorDetail)
Set the errorDetail property: Error Details if the Status is non-success.DistributedNodesInfo
withNodeName(String nodeName)
Set the nodeName property: Name of the node under a distributed container.DistributedNodesInfo
withStatus(String status)
Set the status property: Status of this Node.
-
-
-
Method Detail
-
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.
-
-