org.jclouds.ec2.domain
Enum ImageAttribute

java.lang.Object
  extended by java.lang.Enum<ImageAttribute>
      extended by org.jclouds.ec2.domain.ImageAttribute
All Implemented Interfaces:
Serializable, Comparable<ImageAttribute>

public enum ImageAttribute
extends Enum<ImageAttribute>

An attribute of an AMI.

Author:
Adrian Cole
See Also:
EC2AsyncClient#modifyImageAttribute, EC2AsyncClient#resetImageAttribute, EC2AsyncClient#describeImageAttribute

Enum Constant Summary
BLOCK_DEVICE_MAPPING
          the mapping that defines native device names to use when exposing virtual devices.
KERNEL
          the ID of the kernel associated with the AMI.
LAUNCH_PERMISSION
          the launch permissions of the AMI.
PLATFORM
          the operating system platform.
PRODUCT_CODES
          the product code associated with the AMI.
RAMDISK
          the ID of the RAM disk associated with the AMI.
UNRECOGNIZED
           
 
Method Summary
static ImageAttribute fromValue(String attribute)
           
 String toString()
           
 String value()
           
static ImageAttribute valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ImageAttribute[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PRODUCT_CODES

public static final ImageAttribute PRODUCT_CODES
the product code associated with the AMI.


RAMDISK

public static final ImageAttribute RAMDISK
the ID of the RAM disk associated with the AMI.


KERNEL

public static final ImageAttribute KERNEL
the ID of the kernel associated with the AMI.


LAUNCH_PERMISSION

public static final ImageAttribute LAUNCH_PERMISSION
the launch permissions of the AMI.


PLATFORM

public static final ImageAttribute PLATFORM
the operating system platform.


BLOCK_DEVICE_MAPPING

public static final ImageAttribute BLOCK_DEVICE_MAPPING
the mapping that defines native device names to use when exposing virtual devices.


UNRECOGNIZED

public static final ImageAttribute UNRECOGNIZED
Method Detail

values

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

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

valueOf

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

value

public String value()

toString

public String toString()
Overrides:
toString in class Enum<ImageAttribute>

fromValue

public static ImageAttribute fromValue(String attribute)


Copyright © 2009-2011 jclouds. All Rights Reserved.