Class DiskRestorePointAttributes

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

public final class DiskRestorePointAttributes extends SubResourceReadOnly
Disk Restore Point details.
  • Constructor Details

    • DiskRestorePointAttributes

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

    • encryption

      public RestorePointEncryption encryption()
      Get the encryption property: 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.
      Returns:
      the encryption value.
    • withEncryption

      public DiskRestorePointAttributes withEncryption(RestorePointEncryption encryption)
      Set the encryption property: 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.
      Parameters:
      encryption - the encryption value to set.
      Returns:
      the DiskRestorePointAttributes object itself.
    • sourceDiskRestorePoint

      public ApiEntityReference sourceDiskRestorePoint()
      Get the sourceDiskRestorePoint property: Resource Id of the source disk restore point.
      Returns:
      the sourceDiskRestorePoint value.
    • withSourceDiskRestorePoint

      public DiskRestorePointAttributes withSourceDiskRestorePoint(ApiEntityReference sourceDiskRestorePoint)
      Set the sourceDiskRestorePoint property: Resource Id of the source disk restore point.
      Parameters:
      sourceDiskRestorePoint - the sourceDiskRestorePoint value to set.
      Returns:
      the DiskRestorePointAttributes object itself.
    • id

      public String id()
      Get the id property: Resource Id.
      Overrides:
      id in class SubResourceReadOnly
      Returns:
      the id value.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class SubResourceReadOnly
      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<SubResourceReadOnly>
      Overrides:
      toJson in class SubResourceReadOnly
      Throws:
      IOException
    • fromJson

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