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

Describes an image attribute.

See Also:
Serialized Form

Constructor Summary
ImageAttribute()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.List<BlockDeviceMapping> getBlockDeviceMappings()
          One or more block device mapping entries.
 java.lang.String getDescription()
          A description for the AMI.
 java.lang.String getImageId()
          The ID of the AMI.
 java.lang.String getKernelId()
          The kernel ID.
 java.util.List<LaunchPermission> getLaunchPermissions()
          One or more launch permissions.
 java.util.List<ProductCode> getProductCodes()
          One or more product codes.
 java.lang.String getRamdiskId()
          The RAM disk ID.
 java.lang.String getSriovNetSupport()
           
 int hashCode()
           
 void setBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)
          One or more block device mapping entries.
 void setDescription(java.lang.String description)
          A description for the AMI.
 void setImageId(java.lang.String imageId)
          The ID of the AMI.
 void setKernelId(java.lang.String kernelId)
          The kernel ID.
 void setLaunchPermissions(java.util.Collection<LaunchPermission> launchPermissions)
          One or more launch permissions.
 void setProductCodes(java.util.Collection<ProductCode> productCodes)
          One or more product codes.
 void setRamdiskId(java.lang.String ramdiskId)
          The RAM disk ID.
 void setSriovNetSupport(java.lang.String sriovNetSupport)
           
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 ImageAttribute withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
          One or more block device mapping entries.
 ImageAttribute withBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)
          One or more block device mapping entries.
 ImageAttribute withDescription(java.lang.String description)
          A description for the AMI.
 ImageAttribute withImageId(java.lang.String imageId)
          The ID of the AMI.
 ImageAttribute withKernelId(java.lang.String kernelId)
          The kernel ID.
 ImageAttribute withLaunchPermissions(java.util.Collection<LaunchPermission> launchPermissions)
          One or more launch permissions.
 ImageAttribute withLaunchPermissions(LaunchPermission... launchPermissions)
          One or more launch permissions.
 ImageAttribute withProductCodes(java.util.Collection<ProductCode> productCodes)
          One or more product codes.
 ImageAttribute withProductCodes(ProductCode... productCodes)
          One or more product codes.
 ImageAttribute withRamdiskId(java.lang.String ramdiskId)
          The RAM disk ID.
 ImageAttribute withSriovNetSupport(java.lang.String sriovNetSupport)
           Returns a reference to this object so that method calls can be chained together.
 
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 AMI.

Returns:
The ID of the AMI.

setImageId

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

Parameters:
imageId - The ID of the AMI.

withImageId

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

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

Parameters:
imageId - The ID of the AMI.
Returns:
A reference to this updated object so that method calls can be chained together.

getLaunchPermissions

public java.util.List<LaunchPermission> getLaunchPermissions()
One or more launch permissions.

Returns:
One or more launch permissions.

setLaunchPermissions

public void setLaunchPermissions(java.util.Collection<LaunchPermission> launchPermissions)
One or more launch permissions.

Parameters:
launchPermissions - One or more launch permissions.

withLaunchPermissions

public ImageAttribute withLaunchPermissions(LaunchPermission... launchPermissions)
One or more launch permissions.

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

Parameters:
launchPermissions - One or more launch permissions.
Returns:
A reference to this updated object so that method calls can be chained together.

withLaunchPermissions

public ImageAttribute withLaunchPermissions(java.util.Collection<LaunchPermission> launchPermissions)
One or more launch permissions.

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

Parameters:
launchPermissions - One or more launch permissions.
Returns:
A reference to this updated object so that method calls can be chained together.

getProductCodes

public java.util.List<ProductCode> getProductCodes()
One or more product codes.

Returns:
One or more product codes.

setProductCodes

public void setProductCodes(java.util.Collection<ProductCode> productCodes)
One or more product codes.

Parameters:
productCodes - One or more product codes.

withProductCodes

public ImageAttribute withProductCodes(ProductCode... productCodes)
One or more product codes.

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

Parameters:
productCodes - One or more product codes.
Returns:
A reference to this updated object so that method calls can be chained together.

withProductCodes

public ImageAttribute withProductCodes(java.util.Collection<ProductCode> productCodes)
One or more product codes.

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

Parameters:
productCodes - One or more product codes.
Returns:
A reference to this updated object so that method calls can be chained together.

getKernelId

public java.lang.String getKernelId()
The kernel ID.

Returns:
The kernel ID.

setKernelId

public void setKernelId(java.lang.String kernelId)
The kernel ID.

Parameters:
kernelId - The kernel ID.

withKernelId

public ImageAttribute withKernelId(java.lang.String kernelId)
The kernel ID.

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

Parameters:
kernelId - The kernel ID.
Returns:
A reference to this updated object so that method calls can be chained together.

getRamdiskId

public java.lang.String getRamdiskId()
The RAM disk ID.

Returns:
The RAM disk ID.

setRamdiskId

public void setRamdiskId(java.lang.String ramdiskId)
The RAM disk ID.

Parameters:
ramdiskId - The RAM disk ID.

withRamdiskId

public ImageAttribute withRamdiskId(java.lang.String ramdiskId)
The RAM disk ID.

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

Parameters:
ramdiskId - The RAM disk ID.
Returns:
A reference to this updated object so that method calls can be chained together.

getDescription

public java.lang.String getDescription()
A description for the AMI.

Returns:
A description for the AMI.

setDescription

public void setDescription(java.lang.String description)
A description for the AMI.

Parameters:
description - A description for the AMI.

withDescription

public ImageAttribute withDescription(java.lang.String description)
A description for the AMI.

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

Parameters:
description - A description for the AMI.
Returns:
A reference to this updated object so that method calls can be chained together.

getSriovNetSupport

public java.lang.String getSriovNetSupport()
Returns:

setSriovNetSupport

public void setSriovNetSupport(java.lang.String sriovNetSupport)
Parameters:
sriovNetSupport -

withSriovNetSupport

public ImageAttribute withSriovNetSupport(java.lang.String sriovNetSupport)

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

Parameters:
sriovNetSupport -
Returns:
A reference to this updated object so that method calls can be chained together.

getBlockDeviceMappings

public java.util.List<BlockDeviceMapping> getBlockDeviceMappings()
One or more block device mapping entries.

Returns:
One or more block device mapping entries.

setBlockDeviceMappings

public void setBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)
One or more block device mapping entries.

Parameters:
blockDeviceMappings - One or more block device mapping entries.

withBlockDeviceMappings

public ImageAttribute withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
One or more block device mapping entries.

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

Parameters:
blockDeviceMappings - One or more block device mapping entries.
Returns:
A reference to this updated object so that method calls can be chained together.

withBlockDeviceMappings

public ImageAttribute withBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)
One or more block device mapping entries.

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

Parameters:
blockDeviceMappings - One or more block device mapping entries.
Returns:
A reference to this updated object so that method calls can be chained together.

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.