EncryptionImages Class

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

Implements

public final class EncryptionImages
implements JsonSerializable<EncryptionImages>

Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.

Constructor Summary

Constructor Description
EncryptionImages()

Creates an instance of EncryptionImages class.

Method Summary

Modifier and Type Method and Description
List<DataDiskImageEncryption> dataDiskImages()

Get the dataDiskImages property: A list of encryption specifications for data disk images.

static EncryptionImages fromJson(JsonReader jsonReader)

Reads an instance of EncryptionImages from the JsonReader.

OSDiskImageEncryption osDiskImage()

Get the osDiskImage property: Contains encryption settings for an OS disk image.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

EncryptionImages withDataDiskImages(List<DataDiskImageEncryption> dataDiskImages)

Set the dataDiskImages property: A list of encryption specifications for data disk images.

EncryptionImages withOsDiskImage(OSDiskImageEncryption osDiskImage)

Set the osDiskImage property: Contains encryption settings for an OS disk image.

Methods inherited from java.lang.Object

Constructor Details

EncryptionImages

public EncryptionImages()

Creates an instance of EncryptionImages class.

Method Details

dataDiskImages

public List dataDiskImages()

Get the dataDiskImages property: A list of encryption specifications for data disk images.

Returns:

the dataDiskImages value.

fromJson

public static EncryptionImages fromJson(JsonReader jsonReader)

Reads an instance of EncryptionImages from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of EncryptionImages 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 EncryptionImages.

osDiskImage

public OSDiskImageEncryption osDiskImage()

Get the osDiskImage property: Contains encryption settings for an OS disk image.

Returns:

the osDiskImage value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDataDiskImages

public EncryptionImages withDataDiskImages(List dataDiskImages)

Set the dataDiskImages property: A list of encryption specifications for data disk images.

Parameters:

dataDiskImages - the dataDiskImages value to set.

Returns:

the EncryptionImages object itself.

withOsDiskImage

public EncryptionImages withOsDiskImage(OSDiskImageEncryption osDiskImage)

Set the osDiskImage property: Contains encryption settings for an OS disk image.

Parameters:

osDiskImage - the osDiskImage value to set.

Returns:

the EncryptionImages object itself.

Applies to