com.xerox.amazonws.ec2
Enum InstanceType

java.lang.Object
  extended by java.lang.Enum<InstanceType>
      extended by com.xerox.amazonws.ec2.InstanceType
All Implemented Interfaces:
Serializable, Comparable<InstanceType>

public enum InstanceType
extends Enum<InstanceType>

This enumeration represents different instance types that can be launched.


Enum Constant Summary
DEFAULT
           
LARGE
           
MEDIUM_HCPU
           
XLARGE
           
XLARGE_CLUSTER_COMPUTE
           
XLARGE_DOUBLE_HMEM
           
XLARGE_HCPU
           
XLARGE_HMEM
           
XLARGE_QUAD_HMEM
           
 
Method Summary
static InstanceType getTypeFromString(String val)
           
 String getTypeId()
           
static InstanceType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static InstanceType[] 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
 

Enum Constant Detail

DEFAULT

public static final InstanceType DEFAULT

LARGE

public static final InstanceType LARGE

XLARGE

public static final InstanceType XLARGE

MEDIUM_HCPU

public static final InstanceType MEDIUM_HCPU

XLARGE_HCPU

public static final InstanceType XLARGE_HCPU

XLARGE_HMEM

public static final InstanceType XLARGE_HMEM

XLARGE_DOUBLE_HMEM

public static final InstanceType XLARGE_DOUBLE_HMEM

XLARGE_QUAD_HMEM

public static final InstanceType XLARGE_QUAD_HMEM

XLARGE_CLUSTER_COMPUTE

public static final InstanceType XLARGE_CLUSTER_COMPUTE
Method Detail

values

public static InstanceType[] 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 (InstanceType c : InstanceType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static InstanceType 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

getTypeId

public String getTypeId()

getTypeFromString

public static InstanceType getTypeFromString(String val)