com.xerox.amazonws.ec2
Class ImageListAttribute

java.lang.Object
  extended by com.xerox.amazonws.ec2.ImageAttribute
      extended by com.xerox.amazonws.ec2.ImageListAttribute
Direct Known Subclasses:
LaunchPermissionAttribute, ProductCodesAttribute

public abstract class ImageListAttribute
extends ImageAttribute

The base class for all AMI list attributes.


Nested Class Summary
static class ImageListAttribute.ImageListAttributeItemType
          Enumerates image list attribute item types.
 
Nested classes/interfaces inherited from class com.xerox.amazonws.ec2.ImageAttribute
ImageAttribute.ImageAttributeType
 
Constructor Summary
ImageListAttribute(ImageAttribute.ImageAttributeType _type)
           
 
Method Summary
 boolean addImageListAttributeItem(ImageListAttribute.ImageListAttributeItemType type, String value)
          Add an item to the attribute's list of key-value pairs.
 Set<ImageListAttributeItem> getImageListAttributeItems()
           
abstract  boolean itemTypeCompatible(ImageListAttribute.ImageListAttributeItemType type)
          Indicates if the list attribute may contain items of the given type.
 
Methods inherited from class com.xerox.amazonws.ec2.ImageAttribute
getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageListAttribute

public ImageListAttribute(ImageAttribute.ImageAttributeType _type)
Method Detail

addImageListAttributeItem

public boolean addImageListAttributeItem(ImageListAttribute.ImageListAttributeItemType type,
                                         String value)
Add an item to the attribute's list of key-value pairs.

Parameters:
type - The type of list attribute item to add.
value - The value of the item.
Returns:
True if the item was successfully added to the list, false if the operation failed.

getImageListAttributeItems

public Set<ImageListAttributeItem> getImageListAttributeItems()

itemTypeCompatible

public abstract boolean itemTypeCompatible(ImageListAttribute.ImageListAttributeItemType type)
Indicates if the list attribute may contain items of the given type.

Parameters:
type - The list item type to test if membership is valid for this list attribute.
Returns:
true if the item type is admissable, false otherwise