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 Details

    • EncryptionImages

      public EncryptionImages()
      Creates an instance of EncryptionImages class.
  • Method Details

    • osDiskImage

      public OSDiskImageEncryption osDiskImage()
      Get the osDiskImage property: Contains encryption settings for an OS disk image.
      Returns:
      the osDiskImage value.
    • 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.
    • dataDiskImages

      public List<DataDiskImageEncryption> dataDiskImages()
      Get the dataDiskImages property: A list of encryption specifications for data disk images.
      Returns:
      the dataDiskImages value.
    • withDataDiskImages

      public EncryptionImages withDataDiskImages(List<DataDiskImageEncryption> 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<EncryptionImages>
      Throws:
      IOException
    • fromJson

      public static EncryptionImages fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.