次の方法で共有


ManagementCluster Class

  • java.lang.Object
    • com.azure.resourcemanager.avs.models.ManagementCluster

Implements

public final class ManagementCluster
implements JsonSerializable<ManagementCluster>

The properties of a management cluster.

Constructor Summary

Constructor Description
ManagementCluster()

Creates an instance of ManagementCluster class.

Method Summary

Modifier and Type Method and Description
Integer clusterId()

Get the clusterId property: The identity.

Integer clusterSize()

Get the clusterSize property: The cluster size.

static ManagementCluster fromJson(JsonReader jsonReader)

Reads an instance of ManagementCluster from the JsonReader.

List<String> hosts()

Get the hosts property: The hosts.

ClusterProvisioningState provisioningState()

Get the provisioningState property: The state of the cluster provisioning.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String vsanDatastoreName()

Get the vsanDatastoreName property: Name of the vsan datastore associated with the cluster.

ManagementCluster withClusterSize(Integer clusterSize)

Set the clusterSize property: The cluster size.

ManagementCluster withHosts(List<String> hosts)

Set the hosts property: The hosts.

ManagementCluster withVsanDatastoreName(String vsanDatastoreName)

Set the vsanDatastoreName property: Name of the vsan datastore associated with the cluster.

Methods inherited from java.lang.Object

Constructor Details

ManagementCluster

public ManagementCluster()

Creates an instance of ManagementCluster class.

Method Details

clusterId

public Integer clusterId()

Get the clusterId property: The identity.

Returns:

the clusterId value.

clusterSize

public Integer clusterSize()

Get the clusterSize property: The cluster size.

Returns:

the clusterSize value.

fromJson

public static ManagementCluster fromJson(JsonReader jsonReader)

Reads an instance of ManagementCluster from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ManagementCluster if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ManagementCluster.

hosts

public List<String> hosts()

Get the hosts property: The hosts.

Returns:

the hosts value.

provisioningState

public ClusterProvisioningState provisioningState()

Get the provisioningState property: The state of the cluster provisioning.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

vsanDatastoreName

public String vsanDatastoreName()

Get the vsanDatastoreName property: Name of the vsan datastore associated with the cluster.

Returns:

the vsanDatastoreName value.

withClusterSize

public ManagementCluster withClusterSize(Integer clusterSize)

Set the clusterSize property: The cluster size.

Parameters:

clusterSize - the clusterSize value to set.

Returns:

the ManagementCluster object itself.

withHosts

public ManagementCluster withHosts(List<String> hosts)

Set the hosts property: The hosts.

Parameters:

hosts - the hosts value to set.

Returns:

the ManagementCluster object itself.

withVsanDatastoreName

public ManagementCluster withVsanDatastoreName(String vsanDatastoreName)

Set the vsanDatastoreName property: Name of the vsan datastore associated with the cluster.

Parameters:

vsanDatastoreName - the vsanDatastoreName value to set.

Returns:

the ManagementCluster object itself.

Applies to