com.atlassian.aws.ec2.awssdk
Enum AwsSupportConstants.InstanceStateName
java.lang.Object
java.lang.Enum<AwsSupportConstants.InstanceStateName>
com.atlassian.aws.ec2.awssdk.AwsSupportConstants.InstanceStateName
- All Implemented Interfaces:
- Serializable, Comparable<AwsSupportConstants.InstanceStateName>
- Enclosing class:
- AwsSupportConstants
public static enum AwsSupportConstants.InstanceStateName
- extends Enum<AwsSupportConstants.InstanceStateName>
This enum extends AWS SDK's own enum by adding EBS states and spot request states (we want to treat
spot requests like instances)
SpotOpen
public static final AwsSupportConstants.InstanceStateName SpotOpen
SpotActive
public static final AwsSupportConstants.InstanceStateName SpotActive
SpotCancelled
public static final AwsSupportConstants.InstanceStateName SpotCancelled
SpotClosed
public static final AwsSupportConstants.InstanceStateName SpotClosed
SpotFailed
public static final AwsSupportConstants.InstanceStateName SpotFailed
Pending
public static final AwsSupportConstants.InstanceStateName Pending
Running
public static final AwsSupportConstants.InstanceStateName Running
ShuttingDown
public static final AwsSupportConstants.InstanceStateName ShuttingDown
Terminated
public static final AwsSupportConstants.InstanceStateName Terminated
Stopping
public static final AwsSupportConstants.InstanceStateName Stopping
Stopped
public static final AwsSupportConstants.InstanceStateName Stopped
UNIDENTIFIED
public static final AwsSupportConstants.InstanceStateName UNIDENTIFIED
values
public static AwsSupportConstants.InstanceStateName[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (AwsSupportConstants.InstanceStateName c : AwsSupportConstants.InstanceStateName.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static AwsSupportConstants.InstanceStateName valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
toString
public String toString()
- Overrides:
toString in class Enum<AwsSupportConstants.InstanceStateName>
fromValue
public static AwsSupportConstants.InstanceStateName fromValue(String value)
is
public boolean is(@NotNull
com.amazonaws.services.ec2.model.InstanceState state)
Copyright © 2015 Atlassian. All rights reserved.