Class RestorePointInstanceView

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

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

    • RestorePointInstanceView

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

    • diskRestorePoints

      public List<DiskRestorePointInstanceView> diskRestorePoints()
      Get the diskRestorePoints property: The disk restore points information.
      Returns:
      the diskRestorePoints value.
    • withDiskRestorePoints

      public RestorePointInstanceView withDiskRestorePoints(List<DiskRestorePointInstanceView> diskRestorePoints)
      Set the diskRestorePoints property: The disk restore points information.
      Parameters:
      diskRestorePoints - the diskRestorePoints value to set.
      Returns:
      the RestorePointInstanceView object itself.
    • statuses

      public List<InstanceViewStatus> statuses()
      Get the statuses property: The resource status information.
      Returns:
      the statuses value.
    • withStatuses

      public RestorePointInstanceView withStatuses(List<InstanceViewStatus> statuses)
      Set the statuses property: The resource status information.
      Parameters:
      statuses - the statuses value to set.
      Returns:
      the RestorePointInstanceView 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<RestorePointInstanceView>
      Throws:
      IOException
    • fromJson

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