Class EncryptionImages
java.lang.Object
com.azure.resourcemanager.compute.models.EncryptionImages
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EncryptionImages>
public final class EncryptionImages
extends Object
implements com.azure.json.JsonSerializable<EncryptionImages>
Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the dataDiskImages property: A list of encryption specifications for data disk images.static EncryptionImagesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EncryptionImages from the JsonReader.Get the osDiskImage property: Contains encryption settings for an OS disk image.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDataDiskImages(List<DataDiskImageEncryption> dataDiskImages) Set the dataDiskImages property: A list of encryption specifications for data disk images.withOsDiskImage(OSDiskImageEncryption osDiskImage) Set the osDiskImage property: Contains encryption settings for an OS disk 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
-
EncryptionImages
public EncryptionImages()Creates an instance of EncryptionImages class.
-
-
Method Details
-
osDiskImage
Get the osDiskImage property: Contains encryption settings for an OS disk image.- Returns:
- the osDiskImage value.
-
withOsDiskImage
Set the osDiskImage property: Contains encryption settings for an OS disk image.- Parameters:
osDiskImage- the osDiskImage value to set.- Returns:
- the EncryptionImages object itself.
-
dataDiskImages
Get the dataDiskImages property: A list of encryption specifications for data disk images.- Returns:
- the dataDiskImages value.
-
withDataDiskImages
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<EncryptionImages>- Throws:
IOException
-
fromJson
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.
-