VirtualMachineCreateCheckpoint Class

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

Implements

public final class VirtualMachineCreateCheckpoint
implements JsonSerializable<VirtualMachineCreateCheckpoint>

Defines the create checkpoint action properties.

Constructor Summary

Constructor Description
VirtualMachineCreateCheckpoint()

Creates an instance of VirtualMachineCreateCheckpoint class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: Description of the checkpoint.

static VirtualMachineCreateCheckpoint fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineCreateCheckpoint from the JsonReader.

String name()

Get the name property: Name of the checkpoint.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualMachineCreateCheckpoint withDescription(String description)

Set the description property: Description of the checkpoint.

VirtualMachineCreateCheckpoint withName(String name)

Set the name property: Name of the checkpoint.

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineCreateCheckpoint

public VirtualMachineCreateCheckpoint()

Creates an instance of VirtualMachineCreateCheckpoint class.

Method Details

description

public String description()

Get the description property: Description of the checkpoint.

Returns:

the description value.

fromJson

public static VirtualMachineCreateCheckpoint fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineCreateCheckpoint from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: Name of the checkpoint.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDescription

public VirtualMachineCreateCheckpoint withDescription(String description)

Set the description property: Description of the checkpoint.

Parameters:

description - the description value to set.

Returns:

the VirtualMachineCreateCheckpoint object itself.

withName

public VirtualMachineCreateCheckpoint withName(String name)

Set the name property: Name of the checkpoint.

Parameters:

name - the name value to set.

Returns:

the VirtualMachineCreateCheckpoint object itself.

Applies to