Class StopVirtualMachineOptions
- java.lang.Object
-
- com.azure.resourcemanager.scvmm.models.StopVirtualMachineOptions
-
public final class StopVirtualMachineOptions extends Object
Defines the stop action properties.
-
-
Constructor Summary
Constructors Constructor Description StopVirtualMachineOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
skipShutdown()
Get the skipShutdown property: Gets or sets a value indicating whether to request non-graceful VM shutdown.void
validate()
Validates the instance.StopVirtualMachineOptions
withSkipShutdown(Boolean skipShutdown)
Set the skipShutdown property: Gets or sets a value indicating whether to request non-graceful VM shutdown.
-
-
-
Method Detail
-
skipShutdown
public Boolean 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.
-
withSkipShutdown
public StopVirtualMachineOptions withSkipShutdown(Boolean 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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-