@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public enum EC2InstanceState extends Enum<EC2InstanceState>
Enum Constant and Description |
---|
NOT_FOUND |
PENDING |
RUNNING |
SHUTTINGDOWN |
STOPPED |
STOPPING |
TERMINATED |
Modifier and Type | Method and Description |
---|---|
static EC2InstanceState |
fromValue(String value)
Use this in place of valueOf.
|
String |
toString() |
static EC2InstanceState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EC2InstanceState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EC2InstanceState PENDING
public static final EC2InstanceState RUNNING
public static final EC2InstanceState STOPPING
public static final EC2InstanceState STOPPED
public static final EC2InstanceState SHUTTINGDOWN
public static final EC2InstanceState TERMINATED
public static final EC2InstanceState NOT_FOUND
public static EC2InstanceState[] values()
for (EC2InstanceState c : EC2InstanceState.values()) System.out.println(c);
public static EC2InstanceState 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 String toString()
toString
in class Enum<EC2InstanceState>
public static EC2InstanceState fromValue(String value)
value
- real valueIllegalArgumentException
- If the specified value does not map to one of the known values in this enum.