Class PowerState
java.lang.Object
com.azure.core.util.ExpandableStringEnum<PowerState>
com.azure.developer.devcenter.models.PowerState
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
The power states of a Dev Box.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PowerState
The Dev Box is deallocated.static final PowerState
The Dev Box is hibernated.static final PowerState
The Dev Box is powered off.static final PowerState
The Dev Box is running.static final PowerState
The Dev Box power state is not known. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PowerState
fromString
(String name) Creates or finds a PowerState from its string representation.static Collection
<PowerState> values()
Gets known PowerState values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
UNKNOWN
The Dev Box power state is not known. -
RUNNING
The Dev Box is running. -
DEALLOCATED
The Dev Box is deallocated. -
POWERED_OFF
The Dev Box is powered off. -
HIBERNATED
The Dev Box is hibernated.
-
-
Constructor Details
-
PowerState
Deprecated.Use thefromString(String)
factory method.Creates a new instance of PowerState value.
-
-
Method Details
-
fromString
Creates or finds a PowerState from its string representation.- Parameters:
name
- a name to look for.- Returns:
- the corresponding PowerState.
-
values
Gets known PowerState values.- Returns:
- known PowerState values.
-
fromString(String)
factory method.