Class TargetRegion
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.TargetRegion
-
public final class TargetRegion extends Object
Describes the target region information.
-
-
Constructor Summary
Constructors Constructor Description TargetRegion()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EncryptionImagesencryption()Get the encryption property: Optional.Stringname()Get the name property: The name of the region.IntegerregionalReplicaCount()Get the regionalReplicaCount property: The number of replicas of the Image Version to be created per region.StorageAccountTypestorageAccountType()Get the storageAccountType property: Specifies the storage account type to be used to store the image.voidvalidate()Validates the instance.TargetRegionwithEncryption(EncryptionImages encryption)Set the encryption property: Optional.TargetRegionwithName(String name)Set the name property: The name of the region.TargetRegionwithRegionalReplicaCount(Integer regionalReplicaCount)Set the regionalReplicaCount property: The number of replicas of the Image Version to be created per region.TargetRegionwithStorageAccountType(StorageAccountType storageAccountType)Set the storageAccountType property: Specifies the storage account type to be used to store the image.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The name of the region.- Returns:
- the name value.
-
withName
public TargetRegion withName(String name)
Set the name property: The name of the region.- Parameters:
name- the name value to set.- Returns:
- the TargetRegion object itself.
-
regionalReplicaCount
public Integer 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
public TargetRegion withRegionalReplicaCount(Integer regionalReplicaCount)
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
public StorageAccountType 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
public TargetRegion withStorageAccountType(StorageAccountType storageAccountType)
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
public EncryptionImages 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
public TargetRegion withEncryption(EncryptionImages encryption)
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-