Class AdditionalReplicaSet
java.lang.Object
com.azure.resourcemanager.compute.models.AdditionalReplicaSet
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AdditionalReplicaSet>
public final class AdditionalReplicaSet
extends Object
implements com.azure.json.JsonSerializable<AdditionalReplicaSet>
Describes the additional replica set information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AdditionalReplicaSetfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AdditionalReplicaSet from the JsonReader.Get the regionalReplicaCount property: The number of direct drive replicas of the Image Version to be created.This Property is updatable.Get the storageAccountType property: Specifies the storage account type to be used to create the direct drive replicas.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withRegionalReplicaCount(Integer regionalReplicaCount) Set the regionalReplicaCount property: The number of direct drive replicas of the Image Version to be created.This Property is updatable.withStorageAccountType(StorageAccountType storageAccountType) Set the storageAccountType property: Specifies the storage account type to be used to create the direct drive replicas.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AdditionalReplicaSet
public AdditionalReplicaSet()Creates an instance of AdditionalReplicaSet class.
-
-
Method Details
-
storageAccountType
Get the storageAccountType property: Specifies the storage account type to be used to create the direct drive replicas.- Returns:
- the storageAccountType value.
-
withStorageAccountType
Set the storageAccountType property: Specifies the storage account type to be used to create the direct drive replicas.- Parameters:
storageAccountType- the storageAccountType value to set.- Returns:
- the AdditionalReplicaSet object itself.
-
regionalReplicaCount
Get the regionalReplicaCount property: The number of direct drive replicas of the Image Version to be created.This Property is updatable.- Returns:
- the regionalReplicaCount value.
-
withRegionalReplicaCount
Set the regionalReplicaCount property: The number of direct drive replicas of the Image Version to be created.This Property is updatable.- Parameters:
regionalReplicaCount- the regionalReplicaCount value to set.- Returns:
- the AdditionalReplicaSet object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AdditionalReplicaSet>- Throws:
IOException
-
fromJson
public static AdditionalReplicaSet fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AdditionalReplicaSet from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AdditionalReplicaSet 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 AdditionalReplicaSet.
-