public enum PowerState extends Enum<PowerState>
| Enum Constant and Description |
|---|
DEALLOCATED
Enum value PowerState/deallocated.
|
DEALLOCATING
Enum value PowerState/deallocating.
|
RUNNING
Enum value PowerState/running.
|
STARTING
Enum value PowerState/starting.
|
| Modifier and Type | Method and Description |
|---|---|
static PowerState |
fromValue(String value)
Parses a string value to a PowerState instance.
|
String |
toString() |
static PowerState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PowerState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PowerState RUNNING
public static final PowerState DEALLOCATING
public static final PowerState DEALLOCATED
public static final PowerState STARTING
public static PowerState[] values()
for (PowerState c : PowerState.values()) System.out.println(c);
public static PowerState valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static PowerState fromValue(String value)
value - the string value to parse.public String toString()
toString in class Enum<PowerState>/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/