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 ImageAttribute
clone()
boolean
equals(Object obj)
List<BlockDeviceMapping>
getBlockDeviceMappings()
One or more block device mapping entries.String
getDescription()
A description for the AMI.String
getImageId()
The ID of the AMI.String
getKernelId()
The kernel ID.List<LaunchPermission>
getLaunchPermissions()
One or more launch permissions.List<ProductCode>
getProductCodes()
One or more product codes.String
getRamdiskId()
The RAM disk ID.String
getSriovNetSupport()
int
hashCode()
void
setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
One or more block device mapping entries.void
setDescription(String description)
A description for the AMI.void
setImageId(String imageId)
The ID of the AMI.void
setKernelId(String kernelId)
The kernel ID.void
setLaunchPermissions(Collection<LaunchPermission> launchPermissions)
One or more launch permissions.void
setProductCodes(Collection<ProductCode> productCodes)
One or more product codes.void
setRamdiskId(String ramdiskId)
The RAM disk ID.void
setSriovNetSupport(String sriovNetSupport)
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(Collection<BlockDeviceMapping> blockDeviceMappings)
One or more block device mapping entries.ImageAttribute
withDescription(String description)
A description for the AMI.ImageAttribute
withImageId(String imageId)
The ID of the AMI.ImageAttribute
withKernelId(String kernelId)
The kernel ID.ImageAttribute
withLaunchPermissions(LaunchPermission... launchPermissions)
One or more launch permissions.ImageAttribute
withLaunchPermissions(Collection<LaunchPermission> launchPermissions)
One or more launch permissions.ImageAttribute
withProductCodes(ProductCode... productCodes)
One or more product codes.ImageAttribute
withProductCodes(Collection<ProductCode> productCodes)
One or more product codes.ImageAttribute
withRamdiskId(String ramdiskId)
The RAM disk ID.ImageAttribute
withSriovNetSupport(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ImageAttribute clone()
-
-