PowerState Class
- java.
lang. Object - ExpandableStringEnum<T>
- com.
microsoft. azure. management. compute. PowerState
- com.
public class PowerState extends ExpandableStringEnum
Possible power states of a virtual machine.
Field Summary
Modifier and Type | Field and Description |
---|---|
final Power |
DEALLOCATED
Static value PowerState/deallocated for PowerState. |
final Power |
DEALLOCATING
Static value PowerState/deallocating for PowerState. |
final Power |
RUNNING
Static value PowerState/running for PowerState. |
final Power |
STARTING
Static value PowerState/starting for PowerState. |
final Power |
STOPPED
Static value PowerState/stopped for PowerState. |
final Power |
STOPPING
Static value PowerState/stopping for PowerState. |
final Power |
UNKNOWN
Static value PowerState/unknown for PowerState. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Power |
fromInstanceView(VirtualMachineInstanceView virtualMachineInstanceView)
Creates an instance of PowerState from the virtual machine instance view status entry corresponding to the power state. |
Power |
fromString(String name)
Finds or creates a PowerState value. |
Collection<Power |
values() |
Inherited Members
Field Details
DEALLOCATED
public static final PowerState DEALLOCATED= fromString("PowerState/deallocated")
Static value PowerState/deallocated for PowerState.
DEALLOCATING
public static final PowerState DEALLOCATING= fromString("PowerState/deallocating")
Static value PowerState/deallocating for PowerState.
RUNNING
public static final PowerState RUNNING= fromString("PowerState/running")
Static value PowerState/running for PowerState.
STARTING
public static final PowerState STARTING= fromString("PowerState/starting")
Static value PowerState/starting for PowerState.
STOPPED
public static final PowerState STOPPED= fromString("PowerState/stopped")
Static value PowerState/stopped for PowerState.
STOPPING
public static final PowerState STOPPING= fromString("PowerState/stopping")
Static value PowerState/stopping for PowerState.
UNKNOWN
public static final PowerState UNKNOWN= fromString("PowerState/unknown")
Static value PowerState/unknown for PowerState.
Method Details
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:
Returns:
fromString
public static PowerState fromString(String name)
Finds or creates a PowerState value.
Parameters:
Returns:
values
public static Collection
Returns:
Applies to
Azure SDK for Java