Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.ec2.model
Class ImageAttribute

java.lang.Object
  extended by com.amazonaws.services.ec2.model.ImageAttribute
All Implemented Interfaces:
java.io.Serializable

public class ImageAttribute
extends java.lang.Object
implements java.io.Serializable

Represents an attribute of an Amazon Machine Image (AMI).

See Also:
Serialized Form

Constructor Summary
ImageAttribute()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.List<BlockDeviceMapping> getBlockDeviceMappings()
          Block device mappings for the associated AMI.
 java.lang.String getDescription()
          User-created description of the associated AMI.
 java.lang.String getImageId()
          The ID of the associated AMI.
 java.lang.String getKernelId()
          Kernel ID of the associated AMI.
 java.util.List<LaunchPermission> getLaunchPermissions()
          Launch permissions for the associated AMI.
 java.util.List<ProductCode> getProductCodes()
          Product codes for the associated AMI.
 java.lang.String getRamdiskId()
          Ramdisk ID of the associated AMI.
 int hashCode()
           
 void setBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)
          Block device mappings for the associated AMI.
 void setDescription(java.lang.String description)
          User-created description of the associated AMI.
 void setImageId(java.lang.String imageId)
          The ID of the associated AMI.
 void setKernelId(java.lang.String kernelId)
          Kernel ID of the associated AMI.
 void setLaunchPermissions(java.util.Collection<LaunchPermission> launchPermissions)
          Launch permissions for the associated AMI.
 void setProductCodes(java.util.Collection<ProductCode> productCodes)
          Product codes for the associated AMI.
 void setRamdiskId(java.lang.String ramdiskId)
          Ramdisk ID of the associated AMI.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 ImageAttribute withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
          Block device mappings for the associated AMI.
 ImageAttribute withBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)
          Block device mappings for the associated AMI.
 ImageAttribute withDescription(java.lang.String description)
          User-created description of the associated AMI.
 ImageAttribute withImageId(java.lang.String imageId)
          The ID of the associated AMI.
 ImageAttribute withKernelId(java.lang.String kernelId)
          Kernel ID of the associated AMI.
 ImageAttribute withLaunchPermissions(java.util.Collection<LaunchPermission> launchPermissions)
          Launch permissions for the associated AMI.
 ImageAttribute withLaunchPermissions(LaunchPermission... launchPermissions)
          Launch permissions for the associated AMI.
 ImageAttribute withProductCodes(java.util.Collection<ProductCode> productCodes)
          Product codes for the associated AMI.
 ImageAttribute withProductCodes(ProductCode... productCodes)
          Product codes for the associated AMI.
 ImageAttribute withRamdiskId(java.lang.String ramdiskId)
          Ramdisk ID of the associated AMI.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImageAttribute

public ImageAttribute()
Method Detail

getImageId

public java.lang.String getImageId()
The ID of the associated AMI.

Returns:
The ID of the associated AMI.

setImageId

public void setImageId(java.lang.String imageId)
The ID of the associated AMI.

Parameters:
imageId - The ID of the associated AMI.

withImageId

public ImageAttribute withImageId(java.lang.String imageId)
The ID of the associated AMI.

Returns a reference to this object so that method calls can be chained together.

Parameters:
imageId - The ID of the associated AMI.

getLaunchPermissions

public java.util.List<LaunchPermission> getLaunchPermissions()
Launch permissions for the associated AMI.

Returns:
Launch permissions for the associated AMI.

setLaunchPermissions

public void setLaunchPermissions(java.util.Collection<LaunchPermission> launchPermissions)
Launch permissions for the associated AMI.

Parameters:
launchPermissions - Launch permissions for the associated AMI.

withLaunchPermissions

public ImageAttribute withLaunchPermissions(LaunchPermission... launchPermissions)
Launch permissions for the associated AMI.

Returns a reference to this object so that method calls can be chained together.

Parameters:
launchPermissions - Launch permissions for the associated AMI.

withLaunchPermissions

public ImageAttribute withLaunchPermissions(java.util.Collection<LaunchPermission> launchPermissions)
Launch permissions for the associated AMI.

Returns a reference to this object so that method calls can be chained together.

Parameters:
launchPermissions - Launch permissions for the associated AMI.

getProductCodes

public java.util.List<ProductCode> getProductCodes()
Product codes for the associated AMI.

Returns:
Product codes for the associated AMI.

setProductCodes

public void setProductCodes(java.util.Collection<ProductCode> productCodes)
Product codes for the associated AMI.

Parameters:
productCodes - Product codes for the associated AMI.

withProductCodes

public ImageAttribute withProductCodes(ProductCode... productCodes)
Product codes for the associated AMI.

Returns a reference to this object so that method calls can be chained together.

Parameters:
productCodes - Product codes for the associated AMI.

withProductCodes

public ImageAttribute withProductCodes(java.util.Collection<ProductCode> productCodes)
Product codes for the associated AMI.

Returns a reference to this object so that method calls can be chained together.

Parameters:
productCodes - Product codes for the associated AMI.

getKernelId

public java.lang.String getKernelId()
Kernel ID of the associated AMI.

Returns:
Kernel ID of the associated AMI.

setKernelId

public void setKernelId(java.lang.String kernelId)
Kernel ID of the associated AMI.

Parameters:
kernelId - Kernel ID of the associated AMI.

withKernelId

public ImageAttribute withKernelId(java.lang.String kernelId)
Kernel ID of the associated AMI.

Returns a reference to this object so that method calls can be chained together.

Parameters:
kernelId - Kernel ID of the associated AMI.

getRamdiskId

public java.lang.String getRamdiskId()
Ramdisk ID of the associated AMI.

Returns:
Ramdisk ID of the associated AMI.

setRamdiskId

public void setRamdiskId(java.lang.String ramdiskId)
Ramdisk ID of the associated AMI.

Parameters:
ramdiskId - Ramdisk ID of the associated AMI.

withRamdiskId

public ImageAttribute withRamdiskId(java.lang.String ramdiskId)
Ramdisk ID of the associated AMI.

Returns a reference to this object so that method calls can be chained together.

Parameters:
ramdiskId - Ramdisk ID of the associated AMI.

getDescription

public java.lang.String getDescription()
User-created description of the associated AMI.

Returns:
User-created description of the associated AMI.

setDescription

public void setDescription(java.lang.String description)
User-created description of the associated AMI.

Parameters:
description - User-created description of the associated AMI.

withDescription

public ImageAttribute withDescription(java.lang.String description)
User-created description of the associated AMI.

Returns a reference to this object so that method calls can be chained together.

Parameters:
description - User-created description of the associated AMI.

getBlockDeviceMappings

public java.util.List<BlockDeviceMapping> getBlockDeviceMappings()
Block device mappings for the associated AMI.

Returns:
Block device mappings for the associated AMI.

setBlockDeviceMappings

public void setBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)
Block device mappings for the associated AMI.

Parameters:
blockDeviceMappings - Block device mappings for the associated AMI.

withBlockDeviceMappings

public ImageAttribute withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
Block device mappings for the associated AMI.

Returns a reference to this object so that method calls can be chained together.

Parameters:
blockDeviceMappings - Block device mappings for the associated AMI.

withBlockDeviceMappings

public ImageAttribute withBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)
Block device mappings for the associated AMI.

Returns a reference to this object so that method calls can be chained together.

Parameters:
blockDeviceMappings - Block device mappings for the associated AMI.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.