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 Details

    • AdditionalReplicaSet

      public AdditionalReplicaSet()
      Creates an instance of AdditionalReplicaSet class.
  • Method Details

    • storageAccountType

      public StorageAccountType storageAccountType()
      Get the storageAccountType property: Specifies the storage account type to be used to create the direct drive replicas.
      Returns:
      the storageAccountType value.
    • withStorageAccountType

      public AdditionalReplicaSet withStorageAccountType(StorageAccountType storageAccountType)
      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

      public Integer 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

      public AdditionalReplicaSet withRegionalReplicaCount(Integer regionalReplicaCount)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.