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.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DiskRestorePointInstanceView class. -
Method Summary
Modifier and TypeMethodDescriptionstatic DiskRestorePointInstanceViewfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DiskRestorePointInstanceView from the JsonReader.id()Get the id property: Disk restore point Id.Get the replicationStatus property: The disk restore point replication status information.Get the snapshotAccessState property: The state of snapshot which determines the access availability of the snapshot.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the id property: Disk restore point Id.withReplicationStatus(DiskRestorePointReplicationStatus replicationStatus) Set the replicationStatus property: The disk restore point replication status information.withSnapshotAccessState(SnapshotAccessState snapshotAccessState) Set the snapshotAccessState property: The state of snapshot which determines the access availability of the snapshot.Methods inherited from class 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
-
DiskRestorePointInstanceView
public DiskRestorePointInstanceView()Creates an instance of DiskRestorePointInstanceView class.
-
-
Method Details
-
id
-
withId
Set the id property: Disk restore point Id.- Parameters:
id- the id value to set.- Returns:
- the DiskRestorePointInstanceView object itself.
-
snapshotAccessState
Get the snapshotAccessState property: The state of snapshot which determines the access availability of the snapshot.- Returns:
- the snapshotAccessState value.
-
withSnapshotAccessState
public DiskRestorePointInstanceView withSnapshotAccessState(SnapshotAccessState snapshotAccessState) Set the snapshotAccessState property: The state of snapshot which determines the access availability of the snapshot.- Parameters:
snapshotAccessState- the snapshotAccessState value to set.- Returns:
- the DiskRestorePointInstanceView object itself.
-
replicationStatus
Get the replicationStatus property: The disk restore point replication status information.- Returns:
- the replicationStatus value.
-
withReplicationStatus
public DiskRestorePointInstanceView withReplicationStatus(DiskRestorePointReplicationStatus replicationStatus) Set the replicationStatus property: The disk restore point replication status information.- Parameters:
replicationStatus- the replicationStatus value to set.- Returns:
- the DiskRestorePointInstanceView 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<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.
-