Class PowerState
java.lang.Object
com.microsoft.azure.management.resources.fluentcore.arm.ExpandableStringEnum<PowerState>
com.microsoft.azure.management.compute.PowerState
Possible power states of a virtual machine.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final PowerState
Static value PowerState/deallocated for PowerState.static final PowerState
Static value PowerState/deallocating for PowerState.static final PowerState
Static value PowerState/running for PowerState.static final PowerState
Static value PowerState/starting for PowerState.static final PowerState
Static value PowerState/stopped for PowerState.static final PowerState
Static value PowerState/stopping for PowerState.static final PowerState
Static value PowerState/unknown for PowerState. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PowerState
fromInstanceView
(VirtualMachineInstanceView virtualMachineInstanceView) Creates an instance of PowerState from the virtual machine instance view status entry corresponding to the power state.static PowerState
fromString
(String name) Finds or creates a PowerState value.static Collection<PowerState>
values()
Methods inherited from class com.microsoft.azure.management.resources.fluentcore.arm.ExpandableStringEnum
equals, fromString, hashCode, toString, values, withNameValue
-
Field Details
-
RUNNING
Static value PowerState/running for PowerState. -
DEALLOCATING
Static value PowerState/deallocating for PowerState. -
DEALLOCATED
Static value PowerState/deallocated for PowerState. -
STARTING
Static value PowerState/starting for PowerState. -
STOPPED
Static value PowerState/stopped for PowerState. -
STOPPING
Static value PowerState/stopping for PowerState. -
UNKNOWN
Static value PowerState/unknown for PowerState.
-
-
Constructor Details
-
PowerState
public PowerState()
-
-
Method Details
-
fromInstanceView
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
- Returns:
- all known power states
-
fromString
Finds or creates a PowerState value.- Parameters:
name
- the value of the power state- Returns:
- a PowerState instance
-