com.xebialabs.deployit.plugin.ec2.util
Enum EC2InstanceType
java.lang.Object
java.lang.Enum<EC2InstanceType>
com.xebialabs.deployit.plugin.ec2.util.EC2InstanceType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<EC2InstanceType>
public enum EC2InstanceType
- extends java.lang.Enum<EC2InstanceType>
Mirrors com.amazonaws.services.ec2.model.InstanceType because
it's name() and toString() methods are not consistent and we can not convert it from string it properly
when used in Deployit UI.
|
Method Summary |
java.lang.String |
getValue()
|
static EC2InstanceType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static EC2InstanceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
T1Micro
public static final EC2InstanceType T1Micro
M1Small
public static final EC2InstanceType M1Small
M1Medium
public static final EC2InstanceType M1Medium
M1Large
public static final EC2InstanceType M1Large
M1Xlarge
public static final EC2InstanceType M1Xlarge
M2Xlarge
public static final EC2InstanceType M2Xlarge
M22xlarge
public static final EC2InstanceType M22xlarge
M24xlarge
public static final EC2InstanceType M24xlarge
M3Xlarge
public static final EC2InstanceType M3Xlarge
M32xlarge
public static final EC2InstanceType M32xlarge
C1Medium
public static final EC2InstanceType C1Medium
C1Xlarge
public static final EC2InstanceType C1Xlarge
Hi14xlarge
public static final EC2InstanceType Hi14xlarge
Cc14xlarge
public static final EC2InstanceType Cc14xlarge
Cc28xlarge
public static final EC2InstanceType Cc28xlarge
Cg14xlarge
public static final EC2InstanceType Cg14xlarge
values
public static EC2InstanceType[] 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 (EC2InstanceType c : EC2InstanceType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static EC2InstanceType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
getValue
public java.lang.String getValue()