Class RestorePointEncryption

java.lang.Object
com.azure.resourcemanager.compute.models.RestorePointEncryption
All Implemented Interfaces:
com.azure.json.JsonSerializable<RestorePointEncryption>

public final class RestorePointEncryption extends Object implements com.azure.json.JsonSerializable<RestorePointEncryption>
Encryption at rest settings for disk restore point. It is an optional property that can be specified in the input while creating a restore point.
  • Constructor Details

    • RestorePointEncryption

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

    • diskEncryptionSet

      public DiskEncryptionSetParameters diskEncryptionSet()
      Get the diskEncryptionSet property: Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. **Note:** The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details.
      Returns:
      the diskEncryptionSet value.
    • withDiskEncryptionSet

      public RestorePointEncryption withDiskEncryptionSet(DiskEncryptionSetParameters diskEncryptionSet)
      Set the diskEncryptionSet property: Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. **Note:** The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details.
      Parameters:
      diskEncryptionSet - the diskEncryptionSet value to set.
      Returns:
      the RestorePointEncryption object itself.
    • type

      Get the type property: The type of key used to encrypt the data of the disk restore point.
      Returns:
      the type value.
    • withType

      Set the type property: The type of key used to encrypt the data of the disk restore point.
      Parameters:
      type - the type value to set.
      Returns:
      the RestorePointEncryption 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<RestorePointEncryption>
      Throws:
      IOException
    • fromJson

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