VirtualMachineRestoreCheckpoint Class

  • java.lang.Object
    • com.azure.resourcemanager.scvmm.models.VirtualMachineRestoreCheckpoint

Implements

public final class VirtualMachineRestoreCheckpoint
implements JsonSerializable<VirtualMachineRestoreCheckpoint>

Defines the restore checkpoint action properties.

Constructor Summary

Constructor Description
VirtualMachineRestoreCheckpoint()

Creates an instance of VirtualMachineRestoreCheckpoint class.

Method Summary

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

Reads an instance of VirtualMachineRestoreCheckpoint from the JsonReader.

String id()

Get the id property: ID of the checkpoint to be restored to.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualMachineRestoreCheckpoint withId(String id)

Set the id property: ID of the checkpoint to be restored to.

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineRestoreCheckpoint

public VirtualMachineRestoreCheckpoint()

Creates an instance of VirtualMachineRestoreCheckpoint class.

Method Details

fromJson

public static VirtualMachineRestoreCheckpoint fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineRestoreCheckpoint from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualMachineRestoreCheckpoint 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 VirtualMachineRestoreCheckpoint.

id

public String id()

Get the id property: ID of the checkpoint to be restored to.

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public VirtualMachineRestoreCheckpoint withId(String id)

Set the id property: ID of the checkpoint to be restored to.

Parameters:

id - the id value to set.

Returns:

the VirtualMachineRestoreCheckpoint object itself.

Applies to