PowerState Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. compute. models. PowerState
- com.
- com.
public final class PowerState
extends ExpandableStringEnum<PowerState>
Possible power states of a virtual machine.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final
Power |
DEALLOCATED
Static value Power |
static final
Power |
DEALLOCATING
Static value Power |
static final
Power |
RUNNING
Static value Power |
static final
Power |
STARTING
Static value Power |
static final
Power |
STOPPED
Static value Power |
static final
Power |
STOPPING
Static value Power |
static final
Power |
UNKNOWN
Static value Power |
Constructor Summary
Constructor | Description | |
---|---|---|
PowerState() |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Power |
fromInstanceView(VirtualMachineInstanceView virtualMachineInstanceView)
Creates an instance of Power |
static
Power |
fromString(String name)
Finds or creates a Power |
static
Collection<Power |
values() |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
DEALLOCATED
public static final PowerState DEALLOCATED
Static value PowerState/deallocated for PowerState.
DEALLOCATING
public static final PowerState DEALLOCATING
Static value PowerState/deallocating for PowerState.
RUNNING
public static final PowerState RUNNING
Static value PowerState/running 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.
Constructor Details
PowerState
public 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