Class DiskRestorePointReplicationStatus
java.lang.Object
com.azure.resourcemanager.compute.models.DiskRestorePointReplicationStatus
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DiskRestorePointReplicationStatus>
public final class DiskRestorePointReplicationStatus
extends Object
implements com.azure.json.JsonSerializable<DiskRestorePointReplicationStatus>
The instance view of a disk restore point.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DiskRestorePointReplicationStatus class. -
Method Summary
Modifier and TypeMethodDescriptionGet the completionPercent property: Replication completion percentage.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DiskRestorePointReplicationStatus from the JsonReader.status()Get the status property: The resource status information.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCompletionPercent(Integer completionPercent) Set the completionPercent property: Replication completion percentage.withStatus(InstanceViewStatus status) Set the status property: The resource status information.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
-
DiskRestorePointReplicationStatus
public DiskRestorePointReplicationStatus()Creates an instance of DiskRestorePointReplicationStatus class.
-
-
Method Details
-
status
Get the status property: The resource status information.- Returns:
- the status value.
-
withStatus
Set the status property: The resource status information.- Parameters:
status- the status value to set.- Returns:
- the DiskRestorePointReplicationStatus object itself.
-
completionPercent
Get the completionPercent property: Replication completion percentage.- Returns:
- the completionPercent value.
-
withCompletionPercent
Set the completionPercent property: Replication completion percentage.- Parameters:
completionPercent- the completionPercent value to set.- Returns:
- the DiskRestorePointReplicationStatus 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<DiskRestorePointReplicationStatus>- Throws:
IOException
-
fromJson
public static DiskRestorePointReplicationStatus fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DiskRestorePointReplicationStatus from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DiskRestorePointReplicationStatus 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 DiskRestorePointReplicationStatus.
-