com.xerox.amazonws.ec2
Class ImageListAttribute
java.lang.Object
com.xerox.amazonws.ec2.ImageAttribute
com.xerox.amazonws.ec2.ImageListAttribute
- Direct Known Subclasses:
- LaunchPermissionAttribute, ProductCodesAttribute
public abstract class ImageListAttribute
- extends ImageAttribute
The base class for all AMI list attributes.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageListAttribute
public ImageListAttribute(ImageAttribute.ImageAttributeType _type)
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