Partager via


DiskRestorePointReplicationStatus Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.DiskRestorePointReplicationStatus

Implements

public final class DiskRestorePointReplicationStatus
implements JsonSerializable<DiskRestorePointReplicationStatus>

The instance view of a disk restore point.

Constructor Summary

Constructor Description
DiskRestorePointReplicationStatus()

Creates an instance of DiskRestorePointReplicationStatus class.

Method Summary

Modifier and Type Method and Description
Integer completionPercent()

Get the completionPercent property: Replication completion percentage.

static DiskRestorePointReplicationStatus fromJson(JsonReader jsonReader)

Reads an instance of DiskRestorePointReplicationStatus from the JsonReader.

InstanceViewStatus status()

Get the status property: The resource status information.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DiskRestorePointReplicationStatus withCompletionPercent(Integer completionPercent)

Set the completionPercent property: Replication completion percentage.

DiskRestorePointReplicationStatus withStatus(InstanceViewStatus status)

Set the status property: The resource status information.

Methods inherited from java.lang.Object

Constructor Details

DiskRestorePointReplicationStatus

public DiskRestorePointReplicationStatus()

Creates an instance of DiskRestorePointReplicationStatus class.

Method Details

completionPercent

public Integer completionPercent()

Get the completionPercent property: Replication completion percentage.

Returns:

the completionPercent value.

fromJson

public static DiskRestorePointReplicationStatus fromJson(JsonReader jsonReader)

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.

status

public InstanceViewStatus status()

Get the status property: The resource status information.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCompletionPercent

public DiskRestorePointReplicationStatus withCompletionPercent(Integer completionPercent)

Set the completionPercent property: Replication completion percentage.

Parameters:

completionPercent - the completionPercent value to set.

Returns:

the DiskRestorePointReplicationStatus object itself.

withStatus

public DiskRestorePointReplicationStatus withStatus(InstanceViewStatus status)

Set the status property: The resource status information.

Parameters:

status - the status value to set.

Returns:

the DiskRestorePointReplicationStatus object itself.

Applies to