TargetRegion Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. TargetRegion
- com.
Implements
public final class TargetRegion
implements JsonSerializable<TargetRegion>
Describes the target region information.
Constructor Summary
Constructor | Description |
---|---|
TargetRegion() |
Creates an instance of Target |
Method Summary
Modifier and Type | Method and Description |
---|---|
Encryption |
encryption()
Get the encryption property: Optional. |
Boolean |
excludeFromLatest()
Get the exclude |
static
Target |
fromJson(JsonReader jsonReader)
Reads an instance of Target |
String |
name()
Get the name property: The name of the region. |
Integer |
regionalReplicaCount()
Get the regional |
Storage |
storageAccountType()
Get the storage |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Target |
withEncryption(EncryptionImages encryption)
Set the encryption property: Optional. |
Target |
withExcludeFromLatest(Boolean excludeFromLatest)
Set the exclude |
Target |
withName(String name)
Set the name property: The name of the region. |
Target |
withRegionalReplicaCount(Integer regionalReplicaCount)
Set the regional |
Target |
withStorageAccountType(StorageAccountType storageAccountType)
Set the storage |
Methods inherited from java.lang.Object
Constructor Details
TargetRegion
public TargetRegion()
Creates an instance of TargetRegion class.
Method Details
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:
excludeFromLatest
public Boolean excludeFromLatest()
Get the excludeFromLatest property: Contains the flag setting to hide an image when users specify version='latest'.
Returns:
fromJson
public static TargetRegion fromJson(JsonReader jsonReader)
Reads an instance of TargetRegion from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The name of the region.
Returns:
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:
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:
toJson
validate
public void validate()
Validates the instance.
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:
Returns:
withExcludeFromLatest
public TargetRegion withExcludeFromLatest(Boolean excludeFromLatest)
Set the excludeFromLatest property: Contains the flag setting to hide an image when users specify version='latest'.
Parameters:
Returns:
withName
public TargetRegion withName(String name)
Set the name property: The name of the region.
Parameters:
Returns:
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:
Returns:
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:
Returns:
Applies to
Azure SDK for Java