Class PowerState
- java.lang.Object
-
- com.azure.core.util.ExpandableStringEnum<PowerState>
-
- com.azure.resourcemanager.compute.models.PowerState
-
public final class PowerState extends com.azure.core.util.ExpandableStringEnum<PowerState>
Possible power states of a virtual machine.
-
-
Field Summary
Fields Modifier and Type Field Description static PowerStateDEALLOCATEDStatic value PowerState/deallocated for PowerState.static PowerStateDEALLOCATINGStatic value PowerState/deallocating for PowerState.static PowerStateRUNNINGStatic value PowerState/running for PowerState.static PowerStateSTARTINGStatic value PowerState/starting for PowerState.static PowerStateSTOPPEDStatic value PowerState/stopped for PowerState.static PowerStateSTOPPINGStatic value PowerState/stopping for PowerState.static PowerStateUNKNOWNStatic value PowerState/unknown for PowerState.
-
Constructor Summary
Constructors Constructor Description PowerState()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PowerStatefromInstanceView(VirtualMachineInstanceView virtualMachineInstanceView)Creates an instance of PowerState from the virtual machine instance view status entry corresponding to the power state.static PowerStatefromString(String name)Finds or creates a PowerState value.static Collection<PowerState>values()
-
-
-
Field Detail
-
RUNNING
public static final PowerState RUNNING
Static value PowerState/running for PowerState.
-
DEALLOCATING
public static final PowerState DEALLOCATING
Static value PowerState/deallocating for PowerState.
-
DEALLOCATED
public static final PowerState DEALLOCATED
Static value PowerState/deallocated for PowerState.
-
STARTING
public static final PowerState STARTING
Static value PowerState/starting for PowerState.
-
STOPPED
public static final PowerState STOPPED
Static value PowerState/stopped for PowerState.
-
STOPPING
public static final PowerState STOPPING
Static value PowerState/stopping for PowerState.
-
UNKNOWN
public static final PowerState UNKNOWN
Static value PowerState/unknown for PowerState.
-
-
Method Detail
-
fromInstanceView
public static PowerState fromInstanceView(VirtualMachineInstanceView virtualMachineInstanceView)
Creates an instance of PowerState from the virtual machine instance view status entry corresponding to the power state.- Parameters:
virtualMachineInstanceView- the virtual machine instance view- Returns:
- the PowerState
-
values
public static Collection<PowerState> values()
- Returns:
- all known power states
-
fromString
public static PowerState fromString(String name)
Finds or creates a PowerState value.- Parameters:
name- the value of the power state- Returns:
- a PowerState instance
-
-