Class GalleryTargetExtendedLocation
java.lang.Object
com.azure.resourcemanager.compute.models.GalleryTargetExtendedLocation
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GalleryTargetExtendedLocation>
public final class GalleryTargetExtendedLocation
extends Object
implements com.azure.json.JsonSerializable<GalleryTargetExtendedLocation>
The GalleryTargetExtendedLocation model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GalleryTargetExtendedLocation class. -
Method Summary
Modifier and TypeMethodDescriptionGet the encryption property: Optional.Get the extendedLocation property: The name of the extended location.Get the extendedLocationReplicaCount property: The number of replicas of the Image Version to be created per extended location.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GalleryTargetExtendedLocation from the JsonReader.name()Get the name property: The name of the 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.withEncryption(EncryptionImages encryption) Set the encryption property: Optional.withExtendedLocation(GalleryExtendedLocation extendedLocation) Set the extendedLocation property: The name of the extended location.withExtendedLocationReplicaCount(Integer extendedLocationReplicaCount) Set the extendedLocationReplicaCount property: The number of replicas of the Image Version to be created per extended location.Set the name property: The name of the 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
-
GalleryTargetExtendedLocation
public GalleryTargetExtendedLocation()Creates an instance of GalleryTargetExtendedLocation 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 GalleryTargetExtendedLocation object itself.
-
extendedLocation
Get the extendedLocation property: The name of the extended location.- Returns:
- the extendedLocation value.
-
withExtendedLocation
Set the extendedLocation property: The name of the extended location.- Parameters:
extendedLocation- the extendedLocation value to set.- Returns:
- the GalleryTargetExtendedLocation object itself.
-
extendedLocationReplicaCount
Get the extendedLocationReplicaCount property: The number of replicas of the Image Version to be created per extended location. This property is updatable.- Returns:
- the extendedLocationReplicaCount value.
-
withExtendedLocationReplicaCount
public GalleryTargetExtendedLocation withExtendedLocationReplicaCount(Integer extendedLocationReplicaCount) Set the extendedLocationReplicaCount property: The number of replicas of the Image Version to be created per extended location. This property is updatable.- Parameters:
extendedLocationReplicaCount- the extendedLocationReplicaCount value to set.- Returns:
- the GalleryTargetExtendedLocation 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 GalleryTargetExtendedLocation 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 GalleryTargetExtendedLocation 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<GalleryTargetExtendedLocation>- Throws:
IOException
-
fromJson
public static GalleryTargetExtendedLocation fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of GalleryTargetExtendedLocation from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of GalleryTargetExtendedLocation 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 GalleryTargetExtendedLocation.
-