Checkpoint Class

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

Implements

public final class Checkpoint
implements JsonSerializable<Checkpoint>

Defines the resource properties.

Constructor Summary

Constructor Description
Checkpoint()

Creates an instance of Checkpoint class.

Method Summary

Modifier and Type Method and Description
String checkpointId()

Get the checkpointId property: Gets ID of the checkpoint.

String description()

Get the description property: Gets description of the checkpoint.

static Checkpoint fromJson(JsonReader jsonReader)

Reads an instance of Checkpoint from the JsonReader.

String name()

Get the name property: Gets name of the checkpoint.

String parentCheckpointId()

Get the parentCheckpointId property: Gets ID of parent of the checkpoint.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Checkpoint withCheckpointId(String checkpointId)

Set the checkpointId property: Gets ID of the checkpoint.

Checkpoint withDescription(String description)

Set the description property: Gets description of the checkpoint.

Checkpoint withName(String name)

Set the name property: Gets name of the checkpoint.

Checkpoint withParentCheckpointId(String parentCheckpointId)

Set the parentCheckpointId property: Gets ID of parent of the checkpoint.

Methods inherited from java.lang.Object

Constructor Details

Checkpoint

public Checkpoint()

Creates an instance of Checkpoint class.

Method Details

checkpointId

public String checkpointId()

Get the checkpointId property: Gets ID of the checkpoint.

Returns:

the checkpointId value.

description

public String description()

Get the description property: Gets description of the checkpoint.

Returns:

the description value.

fromJson

public static Checkpoint fromJson(JsonReader jsonReader)

Reads an instance of Checkpoint from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: Gets name of the checkpoint.

Returns:

the name value.

parentCheckpointId

public String parentCheckpointId()

Get the parentCheckpointId property: Gets ID of parent of the checkpoint.

Returns:

the parentCheckpointId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCheckpointId

public Checkpoint withCheckpointId(String checkpointId)

Set the checkpointId property: Gets ID of the checkpoint.

Parameters:

checkpointId - the checkpointId value to set.

Returns:

the Checkpoint object itself.

withDescription

public Checkpoint withDescription(String description)

Set the description property: Gets description of the checkpoint.

Parameters:

description - the description value to set.

Returns:

the Checkpoint object itself.

withName

public Checkpoint withName(String name)

Set the name property: Gets name of the checkpoint.

Parameters:

name - the name value to set.

Returns:

the Checkpoint object itself.

withParentCheckpointId

public Checkpoint withParentCheckpointId(String parentCheckpointId)

Set the parentCheckpointId property: Gets ID of parent of the checkpoint.

Parameters:

parentCheckpointId - the parentCheckpointId value to set.

Returns:

the Checkpoint object itself.

Applies to