ClusterUpdate Class

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

Implements

public final class ClusterUpdate
implements JsonSerializable<ClusterUpdate>

An update of a cluster resource.

Constructor Summary

Constructor Description
ClusterUpdate()

Creates an instance of ClusterUpdate class.

Method Summary

Modifier and Type Method and Description
Integer clusterSize()

Get the clusterSize property: The cluster size.

static ClusterUpdate fromJson(JsonReader jsonReader)

Reads an instance of ClusterUpdate from the JsonReader.

List<String> hosts()

Get the hosts property: The hosts.

Sku sku()

Get the sku property: The SKU (Stock Keeping Unit) assigned to this resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ClusterUpdate withClusterSize(Integer clusterSize)

Set the clusterSize property: The cluster size.

ClusterUpdate withHosts(List<String> hosts)

Set the hosts property: The hosts.

ClusterUpdate withSku(Sku sku)

Set the sku property: The SKU (Stock Keeping Unit) assigned to this resource.

Methods inherited from java.lang.Object

Constructor Details

ClusterUpdate

public ClusterUpdate()

Creates an instance of ClusterUpdate class.

Method Details

clusterSize

public Integer clusterSize()

Get the clusterSize property: The cluster size.

Returns:

the clusterSize value.

fromJson

public static ClusterUpdate fromJson(JsonReader jsonReader)

Reads an instance of ClusterUpdate from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ClusterUpdate 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 ClusterUpdate.

hosts

public List<String> hosts()

Get the hosts property: The hosts.

Returns:

the hosts value.

sku

public Sku sku()

Get the sku property: The SKU (Stock Keeping Unit) assigned to this resource.

Returns:

the sku value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withClusterSize

public ClusterUpdate withClusterSize(Integer clusterSize)

Set the clusterSize property: The cluster size.

Parameters:

clusterSize - the clusterSize value to set.

Returns:

the ClusterUpdate object itself.

withHosts

public ClusterUpdate withHosts(List<String> hosts)

Set the hosts property: The hosts.

Parameters:

hosts - the hosts value to set.

Returns:

the ClusterUpdate object itself.

withSku

public ClusterUpdate withSku(Sku sku)

Set the sku property: The SKU (Stock Keeping Unit) assigned to this resource.

Parameters:

sku - the sku value to set.

Returns:

the ClusterUpdate object itself.

Applies to