PowerState Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. developer. devcenter. models. PowerState
- com.
- com.
public final class PowerState
extends ExpandableStringEnum<PowerState>
The power states of a Dev Box.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
static final
Power |
DEALLOCATED
The Dev Box is deallocated. |
|
static final
Power |
HIBERNATED
The Dev Box is hibernated. |
|
static final
Power |
POWERED_OFF
The Dev Box is powered off. |
|
static final
Power |
RUNNING
The Dev Box is running. |
|
static final
Power |
UNKNOWN
The Dev Box power state is not known. |
Constructor Summary
| Constructor | Description |
|---|---|
| PowerState() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Power |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Power |
fromString(String name)
Creates or finds a Power |
|
static
Collection<Power |
values()
Gets known Power |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
DEALLOCATED
public static final PowerState DEALLOCATED
The Dev Box is deallocated.
HIBERNATED
public static final PowerState HIBERNATED
The Dev Box is hibernated.
POWERED_OFF
public static final PowerState POWERED_OFF
The Dev Box is powered off.
RUNNING
public static final PowerState RUNNING
The Dev Box is running.
UNKNOWN
public static final PowerState UNKNOWN
The Dev Box power state is not known.
Constructor Details
PowerState
@Deprecated
public PowerState()
Deprecated
Creates a new instance of PowerState value.
Method Details
fromString
public static PowerState fromString(String name)
Creates or finds a PowerState from its string representation.
Parameters:
Returns:
values
public static Collection<PowerState> values()
Gets known PowerState values.
Returns: