public final class PowerState extends com.azure.core.util.ExpandableStringEnum<PowerState>
Modifier and Type | Field and Description |
---|---|
static PowerState |
DEALLOCATED
Static value PowerState/deallocated for PowerState.
|
static PowerState |
DEALLOCATING
Static value PowerState/deallocating for PowerState.
|
static PowerState |
RUNNING
Static value PowerState/running for PowerState.
|
static PowerState |
STARTING
Static value PowerState/starting for PowerState.
|
static PowerState |
STOPPED
Static value PowerState/stopped for PowerState.
|
static PowerState |
STOPPING
Static value PowerState/stopping for PowerState.
|
static PowerState |
UNKNOWN
Static value PowerState/unknown for PowerState.
|
Constructor and Description |
---|
PowerState() |
Modifier and Type | Method and Description |
---|---|
static 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() |
public static final PowerState RUNNING
public static final PowerState DEALLOCATING
public static final PowerState DEALLOCATED
public static final PowerState STARTING
public static final PowerState STOPPED
public static final PowerState STOPPING
public static final PowerState UNKNOWN
public static PowerState fromInstanceView(VirtualMachineInstanceView virtualMachineInstanceView)
virtualMachineInstanceView
- the virtual machine instance viewpublic static Collection<PowerState> values()
public static PowerState fromString(String name)
name
- the value of the power stateCopyright © 2020 Microsoft Corporation. All rights reserved.