Partager via


AdditionalReplicaSet Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.AdditionalReplicaSet

Implements

public final class AdditionalReplicaSet
implements JsonSerializable<AdditionalReplicaSet>

Describes the additional replica set information.

Constructor Summary

Constructor Description
AdditionalReplicaSet()

Creates an instance of AdditionalReplicaSet class.

Method Summary

Modifier and Type Method and Description
static AdditionalReplicaSet fromJson(JsonReader jsonReader)

Reads an instance of AdditionalReplicaSet from the JsonReader.

Integer regionalReplicaCount()

Get the regionalReplicaCount property: The number of direct drive replicas of the Image Version to be created.This Property is updatable.

StorageAccountType storageAccountType()

Get the storageAccountType property: Specifies the storage account type to be used to create the direct drive replicas.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

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.

AdditionalReplicaSet withStorageAccountType(StorageAccountType storageAccountType)

Set the storageAccountType property: Specifies the storage account type to be used to create the direct drive replicas.

Methods inherited from java.lang.Object

Constructor Details

AdditionalReplicaSet

public AdditionalReplicaSet()

Creates an instance of AdditionalReplicaSet class.

Method Details

fromJson

public static AdditionalReplicaSet fromJson(JsonReader jsonReader)

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.

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.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

Applies to