StopVirtualMachineOptions Class

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

Implements

public final class StopVirtualMachineOptions
implements JsonSerializable<StopVirtualMachineOptions>

Defines the stop action properties.

Constructor Summary

Constructor Description
StopVirtualMachineOptions()

Creates an instance of StopVirtualMachineOptions class.

Method Summary

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

Reads an instance of StopVirtualMachineOptions from the JsonReader.

SkipShutdown skipShutdown()

Get the skipShutdown property: Gets or sets a value indicating whether to request non-graceful VM shutdown.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StopVirtualMachineOptions withSkipShutdown(SkipShutdown skipShutdown)

Set the skipShutdown property: Gets or sets a value indicating whether to request non-graceful VM shutdown.

Methods inherited from java.lang.Object

Constructor Details

StopVirtualMachineOptions

public StopVirtualMachineOptions()

Creates an instance of StopVirtualMachineOptions class.

Method Details

fromJson

public static StopVirtualMachineOptions fromJson(JsonReader jsonReader)

Reads an instance of StopVirtualMachineOptions from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

skipShutdown

public SkipShutdown skipShutdown()

Get the skipShutdown property: Gets or sets a value indicating whether to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false indicates otherwise. Defaults to false.

Returns:

the skipShutdown value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withSkipShutdown

public StopVirtualMachineOptions withSkipShutdown(SkipShutdown skipShutdown)

Set the skipShutdown property: Gets or sets a value indicating whether to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false indicates otherwise. Defaults to false.

Parameters:

skipShutdown - the skipShutdown value to set.

Returns:

the StopVirtualMachineOptions object itself.

Applies to