Class CommonClusterProperties
- java.lang.Object
-
- com.azure.resourcemanager.avs.models.CommonClusterProperties
-
- Direct Known Subclasses:
ClusterProperties
,ManagementCluster
public class CommonClusterProperties extends Object
The common properties of a cluster.
-
-
Constructor Summary
Constructors Constructor Description CommonClusterProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
clusterId()
Get the clusterId property: The identity.Integer
clusterSize()
Get the clusterSize property: The cluster size.List<String>
hosts()
Get the hosts property: The hosts.ClusterProvisioningState
provisioningState()
Get the provisioningState property: The state of the cluster provisioning.void
validate()
Validates the instance.CommonClusterProperties
withClusterSize(Integer clusterSize)
Set the clusterSize property: The cluster size.CommonClusterProperties
withHosts(List<String> hosts)
Set the hosts property: The hosts.
-
-
-
Method Detail
-
clusterSize
public Integer clusterSize()
Get the clusterSize property: The cluster size.- Returns:
- the clusterSize value.
-
withClusterSize
public CommonClusterProperties withClusterSize(Integer clusterSize)
Set the clusterSize property: The cluster size.- Parameters:
clusterSize
- the clusterSize value to set.- Returns:
- the CommonClusterProperties object itself.
-
provisioningState
public ClusterProvisioningState provisioningState()
Get the provisioningState property: The state of the cluster provisioning.- Returns:
- the provisioningState value.
-
clusterId
public Integer clusterId()
Get the clusterId property: The identity.- Returns:
- the clusterId value.
-
withHosts
public CommonClusterProperties withHosts(List<String> hosts)
Set the hosts property: The hosts.- Parameters:
hosts
- the hosts value to set.- Returns:
- the CommonClusterProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-