Class ImageAttribute
- java.lang.Object
-
- com.amazonaws.services.ec2.model.ImageAttribute
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ImageAttribute extends Object implements Serializable, Cloneable
Describes an image attribute.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImageAttribute()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageAttributeclone()booleanequals(Object obj)List<BlockDeviceMapping>getBlockDeviceMappings()One or more block device mapping entries.StringgetDescription()A description for the AMI.StringgetImageId()The ID of the AMI.StringgetKernelId()The kernel ID.List<LaunchPermission>getLaunchPermissions()One or more launch permissions.List<ProductCode>getProductCodes()One or more product codes.StringgetRamdiskId()The RAM disk ID.StringgetSriovNetSupport()inthashCode()voidsetBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)One or more block device mapping entries.voidsetDescription(String description)A description for the AMI.voidsetImageId(String imageId)The ID of the AMI.voidsetKernelId(String kernelId)The kernel ID.voidsetLaunchPermissions(Collection<LaunchPermission> launchPermissions)One or more launch permissions.voidsetProductCodes(Collection<ProductCode> productCodes)One or more product codes.voidsetRamdiskId(String ramdiskId)The RAM disk ID.voidsetSriovNetSupport(String sriovNetSupport)StringtoString()Returns a string representation of this object; useful for testing and debugging.ImageAttributewithBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)One or more block device mapping entries.ImageAttributewithBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)One or more block device mapping entries.ImageAttributewithDescription(String description)A description for the AMI.ImageAttributewithImageId(String imageId)The ID of the AMI.ImageAttributewithKernelId(String kernelId)The kernel ID.ImageAttributewithLaunchPermissions(LaunchPermission... launchPermissions)One or more launch permissions.ImageAttributewithLaunchPermissions(Collection<LaunchPermission> launchPermissions)One or more launch permissions.ImageAttributewithProductCodes(ProductCode... productCodes)One or more product codes.ImageAttributewithProductCodes(Collection<ProductCode> productCodes)One or more product codes.ImageAttributewithRamdiskId(String ramdiskId)The RAM disk ID.ImageAttributewithSriovNetSupport(String sriovNetSupport)
-
-
-
Method Detail
-
setImageId
public void setImageId(String imageId)
The ID of the AMI.
- Parameters:
imageId- The ID of the AMI.
-
getImageId
public String getImageId()
The ID of the AMI.
- Returns:
- The ID of the AMI.
-
withImageId
public ImageAttribute withImageId(String imageId)
The ID of the AMI.
- Parameters:
imageId- The ID of the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getLaunchPermissions
public List<LaunchPermission> getLaunchPermissions()
One or more launch permissions.
- Returns:
- One or more launch permissions.
-
setLaunchPermissions
public void setLaunchPermissions(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.
NOTE: This method appends the values to the existing list (if any). Use
setLaunchPermissions(java.util.Collection)orwithLaunchPermissions(java.util.Collection)if you want to override the existing values.- Parameters:
launchPermissions- One or more launch permissions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withLaunchPermissions
public ImageAttribute withLaunchPermissions(Collection<LaunchPermission> launchPermissions)
One or more launch permissions.
- Parameters:
launchPermissions- One or more launch permissions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getProductCodes
public List<ProductCode> getProductCodes()
One or more product codes.
- Returns:
- One or more product codes.
-
setProductCodes
public void setProductCodes(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.
NOTE: This method appends the values to the existing list (if any). Use
setProductCodes(java.util.Collection)orwithProductCodes(java.util.Collection)if you want to override the existing values.- Parameters:
productCodes- One or more product codes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withProductCodes
public ImageAttribute withProductCodes(Collection<ProductCode> productCodes)
One or more product codes.
- Parameters:
productCodes- One or more product codes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setKernelId
public void setKernelId(String kernelId)
The kernel ID.
- Parameters:
kernelId- The kernel ID.
-
getKernelId
public String getKernelId()
The kernel ID.
- Returns:
- The kernel ID.
-
withKernelId
public ImageAttribute withKernelId(String kernelId)
The kernel ID.
- Parameters:
kernelId- The kernel ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRamdiskId
public void setRamdiskId(String ramdiskId)
The RAM disk ID.
- Parameters:
ramdiskId- The RAM disk ID.
-
getRamdiskId
public String getRamdiskId()
The RAM disk ID.
- Returns:
- The RAM disk ID.
-
withRamdiskId
public ImageAttribute withRamdiskId(String ramdiskId)
The RAM disk ID.
- Parameters:
ramdiskId- The RAM disk ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
public void setDescription(String description)
A description for the AMI.
- Parameters:
description- A description for the AMI.
-
getDescription
public String getDescription()
A description for the AMI.
- Returns:
- A description for the AMI.
-
withDescription
public ImageAttribute withDescription(String description)
A description for the AMI.
- Parameters:
description- A description for the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSriovNetSupport
public void setSriovNetSupport(String sriovNetSupport)
- Parameters:
sriovNetSupport-
-
getSriovNetSupport
public String getSriovNetSupport()
- Returns:
-
withSriovNetSupport
public ImageAttribute withSriovNetSupport(String sriovNetSupport)
- Parameters:
sriovNetSupport-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getBlockDeviceMappings
public List<BlockDeviceMapping> getBlockDeviceMappings()
One or more block device mapping entries.
- Returns:
- One or more block device mapping entries.
-
setBlockDeviceMappings
public void setBlockDeviceMappings(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.
NOTE: This method appends the values to the existing list (if any). Use
setBlockDeviceMappings(java.util.Collection)orwithBlockDeviceMappings(java.util.Collection)if you want to override the existing values.- Parameters:
blockDeviceMappings- One or more block device mapping entries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withBlockDeviceMappings
public ImageAttribute withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
One or more block device mapping entries.
- Parameters:
blockDeviceMappings- One or more block device mapping entries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ImageAttribute clone()
-
-