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 Summary
ConstructorsConstructorDescriptionCreates an instance of RestorePointInstanceView class. -
Method Summary
Modifier and TypeMethodDescriptionGet the diskRestorePoints property: The disk restore points information.static RestorePointInstanceViewfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RestorePointInstanceView from the JsonReader.statuses()Get the statuses property: The resource status information.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDiskRestorePoints(List<DiskRestorePointInstanceView> diskRestorePoints) Set the diskRestorePoints property: The disk restore points information.withStatuses(List<InstanceViewStatus> statuses) Set the statuses property: The resource status information.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RestorePointInstanceView
public RestorePointInstanceView()Creates an instance of RestorePointInstanceView class.
-
-
Method Details
-
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
Get the statuses property: The resource status information.- Returns:
- the statuses value.
-
withStatuses
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
- Specified by:
toJsonin interfacecom.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.
-