ClusterUpdate Class
- java.
lang. Object - com.
azure. resourcemanager. avs. models. ClusterUpdate
- com.
Implements
public final class ClusterUpdate
implements JsonSerializable<ClusterUpdate>
An update of a cluster resource.
Constructor Summary
| Constructor | Description |
|---|---|
| ClusterUpdate() |
Creates an instance of Cluster |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Integer |
clusterSize()
Get the cluster |
|
static
Cluster |
fromJson(JsonReader jsonReader)
Reads an instance of Cluster |
| List<String> |
hosts()
Get the hosts property: The hosts. |
| Sku |
sku()
Get the sku property: The SKU (Stock Keeping Unit) assigned to this resource. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Cluster |
withClusterSize(Integer clusterSize)
Set the cluster |
|
Cluster |
withHosts(List<String> hosts)
Set the hosts property: The hosts. |
|
Cluster |
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:
fromJson
public static ClusterUpdate fromJson(JsonReader jsonReader)
Reads an instance of ClusterUpdate from the JsonReader.
Parameters:
Returns:
Throws:
hosts
public List<String> hosts()
Get the hosts property: The hosts.
Returns:
sku
public Sku sku()
Get the sku property: The SKU (Stock Keeping Unit) assigned to this resource.
Returns:
toJson
validate
public void validate()
Validates the instance.
withClusterSize
public ClusterUpdate withClusterSize(Integer clusterSize)
Set the clusterSize property: The cluster size.
Parameters:
Returns:
withHosts
public ClusterUpdate withHosts(List<String> hosts)
Set the hosts property: The hosts.
Parameters:
Returns:
withSku
public ClusterUpdate withSku(Sku sku)
Set the sku property: The SKU (Stock Keeping Unit) assigned to this resource.
Parameters:
Returns: