Class DiskImageEncryption

java.lang.Object
com.azure.resourcemanager.compute.models.DiskImageEncryption
All Implemented Interfaces:
com.azure.json.JsonSerializable<DiskImageEncryption>
Direct Known Subclasses:
DataDiskImageEncryption, OSDiskImageEncryption

public class DiskImageEncryption extends Object implements com.azure.json.JsonSerializable<DiskImageEncryption>
This is the disk image encryption base class.
  • Constructor Details

    • DiskImageEncryption

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

    • diskEncryptionSetId

      public String diskEncryptionSetId()
      Get the diskEncryptionSetId property: A relative URI containing the resource ID of the disk encryption set.
      Returns:
      the diskEncryptionSetId value.
    • withDiskEncryptionSetId

      public DiskImageEncryption withDiskEncryptionSetId(String diskEncryptionSetId)
      Set the diskEncryptionSetId property: A relative URI containing the resource ID of the disk encryption set.
      Parameters:
      diskEncryptionSetId - the diskEncryptionSetId value to set.
      Returns:
      the DiskImageEncryption 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<DiskImageEncryption>
      Throws:
      IOException
    • fromJson

      public static DiskImageEncryption fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of DiskImageEncryption from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of DiskImageEncryption 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 DiskImageEncryption.