Share via


DiskRestorePointInstanceView Class

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

Implements

public final class DiskRestorePointInstanceView
implements JsonSerializable<DiskRestorePointInstanceView>

The instance view of a disk restore point.

Constructor Summary

Constructor Description
DiskRestorePointInstanceView()

Creates an instance of DiskRestorePointInstanceView class.

Method Summary

Modifier and Type Method and Description
static DiskRestorePointInstanceView fromJson(JsonReader jsonReader)

Reads an instance of DiskRestorePointInstanceView from the JsonReader.

String id()

Get the id property: Disk restore point Id.

DiskRestorePointReplicationStatus replicationStatus()

Get the replicationStatus property: The disk restore point replication status information.

SnapshotAccessState snapshotAccessState()

Get the snapshotAccessState property: The state of snapshot which determines the access availability of the snapshot.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DiskRestorePointInstanceView withId(String id)

Set the id property: Disk restore point Id.

DiskRestorePointInstanceView withReplicationStatus(DiskRestorePointReplicationStatus replicationStatus)

Set the replicationStatus property: The disk restore point replication status information.

DiskRestorePointInstanceView withSnapshotAccessState(SnapshotAccessState snapshotAccessState)

Set the snapshotAccessState property: The state of snapshot which determines the access availability of the snapshot.

Methods inherited from java.lang.Object

Constructor Details

DiskRestorePointInstanceView

public DiskRestorePointInstanceView()

Creates an instance of DiskRestorePointInstanceView class.

Method Details

fromJson

public static DiskRestorePointInstanceView fromJson(JsonReader jsonReader)

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.

id

public String id()

Get the id property: Disk restore point Id.

Returns:

the id value.

replicationStatus

public DiskRestorePointReplicationStatus replicationStatus()

Get the replicationStatus property: The disk restore point replication status information.

Returns:

the replicationStatus value.

snapshotAccessState

public SnapshotAccessState snapshotAccessState()

Get the snapshotAccessState property: The state of snapshot which determines the access availability of the snapshot.

Returns:

the snapshotAccessState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public DiskRestorePointInstanceView withId(String id)

Set the id property: Disk restore point Id.

Parameters:

id - the id value to set.

Returns:

the DiskRestorePointInstanceView object itself.

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.

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.

Applies to