Class TargetRegion
java.lang.Object
com.azure.resourcemanager.compute.models.TargetRegion
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TargetRegion>
public final class TargetRegion
extends Object
implements com.azure.json.JsonSerializable<TargetRegion>
Describes the target region information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalReplicaSets property: List of storage sku with replica count to create direct drive replicas.Get the encryption property: Optional.Get the excludeFromLatest property: Contains the flag setting to hide an image when users specify version='latest'.static TargetRegionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TargetRegion from the JsonReader.name()Get the name property: The name of the region.Get the regionalReplicaCount property: The number of replicas of the Image Version to be created per region.Get the storageAccountType property: Specifies the storage account type to be used to store the image.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAdditionalReplicaSets(List<AdditionalReplicaSet> additionalReplicaSets) Set the additionalReplicaSets property: List of storage sku with replica count to create direct drive replicas.withEncryption(EncryptionImages encryption) Set the encryption property: Optional.withExcludeFromLatest(Boolean excludeFromLatest) Set the excludeFromLatest property: Contains the flag setting to hide an image when users specify version='latest'.Set the name property: The name of the region.withRegionalReplicaCount(Integer regionalReplicaCount) Set the regionalReplicaCount property: The number of replicas of the Image Version to be created per region.withStorageAccountType(StorageAccountType storageAccountType) Set the storageAccountType property: Specifies the storage account type to be used to store the image.Methods inherited from class java.lang.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
-
TargetRegion
public TargetRegion()Creates an instance of TargetRegion class.
-
-
Method Details
-
name
Get the name property: The name of the region.- Returns:
- the name value.
-
withName
Set the name property: The name of the region.- Parameters:
name- the name value to set.- Returns:
- the TargetRegion object itself.
-
regionalReplicaCount
Get the regionalReplicaCount property: The number of replicas of the Image Version to be created per region. This property is updatable.- Returns:
- the regionalReplicaCount value.
-
withRegionalReplicaCount
Set the regionalReplicaCount property: The number of replicas of the Image Version to be created per region. This property is updatable.- Parameters:
regionalReplicaCount- the regionalReplicaCount value to set.- Returns:
- the TargetRegion object itself.
-
storageAccountType
Get the storageAccountType property: Specifies the storage account type to be used to store the image. This property is not updatable.- Returns:
- the storageAccountType value.
-
withStorageAccountType
Set the storageAccountType property: Specifies the storage account type to be used to store the image. This property is not updatable.- Parameters:
storageAccountType- the storageAccountType value to set.- Returns:
- the TargetRegion object itself.
-
encryption
Get the encryption property: Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.- Returns:
- the encryption value.
-
withEncryption
Set the encryption property: Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.- Parameters:
encryption- the encryption value to set.- Returns:
- the TargetRegion object itself.
-
excludeFromLatest
Get the excludeFromLatest property: Contains the flag setting to hide an image when users specify version='latest'.- Returns:
- the excludeFromLatest value.
-
withExcludeFromLatest
Set the excludeFromLatest property: Contains the flag setting to hide an image when users specify version='latest'.- Parameters:
excludeFromLatest- the excludeFromLatest value to set.- Returns:
- the TargetRegion object itself.
-
additionalReplicaSets
Get the additionalReplicaSets property: List of storage sku with replica count to create direct drive replicas.- Returns:
- the additionalReplicaSets value.
-
withAdditionalReplicaSets
Set the additionalReplicaSets property: List of storage sku with replica count to create direct drive replicas.- Parameters:
additionalReplicaSets- the additionalReplicaSets value to set.- Returns:
- the TargetRegion 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<TargetRegion>- Throws:
IOException
-
fromJson
Reads an instance of TargetRegion from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TargetRegion if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the TargetRegion.
-