Class DiskRestorePointInstanceView

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

public final class DiskRestorePointInstanceView extends Object implements com.azure.json.JsonSerializable<DiskRestorePointInstanceView>
The instance view of a disk restore point.
  • Method Details

    • id

      public String id()
      Get the id property: Disk restore point Id.
      Returns:
      the id value.
    • snapshotAccessState

      public SnapshotAccessState snapshotAccessState()
      Get the snapshotAccessState property: The state of snapshot which determines the access availability of the snapshot.
      Returns:
      the snapshotAccessState value.
    • replicationStatus

      public DiskRestorePointReplicationStatus replicationStatus()
      Get the replicationStatus property: The disk restore point replication status information.
      Returns:
      the replicationStatus value.
    • 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<DiskRestorePointInstanceView>
      Throws:
      IOException
    • fromJson

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