GalleryTargetExtendedLocation Class

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

Implements

public final class GalleryTargetExtendedLocation
implements JsonSerializable<GalleryTargetExtendedLocation>

The GalleryTargetExtendedLocation model.

Constructor Summary

Constructor Description
GalleryTargetExtendedLocation()

Creates an instance of GalleryTargetExtendedLocation class.

Method Summary

Modifier and Type Method and Description
EncryptionImages encryption()

Get the encryption property: Optional.

GalleryExtendedLocation extendedLocation()

Get the extendedLocation property: The name of the extended location.

Integer extendedLocationReplicaCount()

Get the extendedLocationReplicaCount property: The number of replicas of the Image Version to be created per extended location.

static GalleryTargetExtendedLocation fromJson(JsonReader jsonReader)

Reads an instance of GalleryTargetExtendedLocation from the JsonReader.

String name()

Get the name property: The name of the region.

StorageAccountType storageAccountType()

Get the storageAccountType property: Specifies the storage account type to be used to store the image.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GalleryTargetExtendedLocation withEncryption(EncryptionImages encryption)

Set the encryption property: Optional.

GalleryTargetExtendedLocation withExtendedLocation(GalleryExtendedLocation extendedLocation)

Set the extendedLocation property: The name of the extended location.

GalleryTargetExtendedLocation withExtendedLocationReplicaCount(Integer extendedLocationReplicaCount)

Set the extendedLocationReplicaCount property: The number of replicas of the Image Version to be created per extended location.

GalleryTargetExtendedLocation withName(String name)

Set the name property: The name of the region.

GalleryTargetExtendedLocation withStorageAccountType(StorageAccountType storageAccountType)

Set the storageAccountType property: Specifies the storage account type to be used to store the image.

Methods inherited from java.lang.Object

Constructor Details

GalleryTargetExtendedLocation

public GalleryTargetExtendedLocation()

Creates an instance of GalleryTargetExtendedLocation 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:

the encryption value.

extendedLocation

public GalleryExtendedLocation extendedLocation()

Get the extendedLocation property: The name of the extended location.

Returns:

the extendedLocation value.

extendedLocationReplicaCount

public Integer 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.

fromJson

public static GalleryTargetExtendedLocation fromJson(JsonReader jsonReader)

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.

name

public String name()

Get the name property: The name of the region.

Returns:

the name value.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEncryption

public GalleryTargetExtendedLocation 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 GalleryTargetExtendedLocation object itself.

withExtendedLocation

public GalleryTargetExtendedLocation withExtendedLocation(GalleryExtendedLocation extendedLocation)

Set the extendedLocation property: The name of the extended location.

Parameters:

extendedLocation - the extendedLocation value to set.

Returns:

the GalleryTargetExtendedLocation object itself.

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.

withName

public GalleryTargetExtendedLocation withName(String name)

Set the name property: The name of the region.

Parameters:

name - the name value to set.

Returns:

the GalleryTargetExtendedLocation object itself.

withStorageAccountType

public GalleryTargetExtendedLocation 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 GalleryTargetExtendedLocation object itself.

Applies to