public class ImageAttribute extends Object implements Serializable, Cloneable
Describes an image attribute.
Constructor and Description |
---|
ImageAttribute() |
Modifier and Type | Method and 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()
The value to use for a resource attribute.
|
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)
The value to use for a resource attribute.
|
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(Collection<LaunchPermission> launchPermissions)
One or more launch permissions.
|
ImageAttribute |
withLaunchPermissions(LaunchPermission... launchPermissions)
One or more launch permissions.
|
ImageAttribute |
withProductCodes(Collection<ProductCode> productCodes)
One or more product codes.
|
ImageAttribute |
withProductCodes(ProductCode... productCodes)
One or more product codes.
|
ImageAttribute |
withRamdiskId(String ramdiskId)
The RAM disk ID.
|
ImageAttribute |
withSriovNetSupport(String sriovNetSupport)
The value to use for a resource attribute.
|
public String getImageId()
public void setImageId(String imageId)
imageId
- The ID of the AMI.public ImageAttribute withImageId(String imageId)
Returns a reference to this object so that method calls can be chained together.
imageId
- The ID of the AMI.public List<LaunchPermission> getLaunchPermissions()
public void setLaunchPermissions(Collection<LaunchPermission> launchPermissions)
launchPermissions
- One or more launch permissions.public ImageAttribute withLaunchPermissions(LaunchPermission... launchPermissions)
NOTE: This method appends the values to the existing list (if
any). Use setLaunchPermissions(java.util.Collection)
or
withLaunchPermissions(java.util.Collection)
if you want to
override the existing values.
Returns a reference to this object so that method calls can be chained together.
launchPermissions
- One or more launch permissions.public ImageAttribute withLaunchPermissions(Collection<LaunchPermission> launchPermissions)
Returns a reference to this object so that method calls can be chained together.
launchPermissions
- One or more launch permissions.public List<ProductCode> getProductCodes()
public void setProductCodes(Collection<ProductCode> productCodes)
productCodes
- One or more product codes.public ImageAttribute withProductCodes(ProductCode... productCodes)
NOTE: This method appends the values to the existing list (if
any). Use setProductCodes(java.util.Collection)
or withProductCodes(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
productCodes
- One or more product codes.public ImageAttribute withProductCodes(Collection<ProductCode> productCodes)
Returns a reference to this object so that method calls can be chained together.
productCodes
- One or more product codes.public String getKernelId()
public void setKernelId(String kernelId)
kernelId
- The kernel ID.public ImageAttribute withKernelId(String kernelId)
Returns a reference to this object so that method calls can be chained together.
kernelId
- The kernel ID.public String getRamdiskId()
public void setRamdiskId(String ramdiskId)
ramdiskId
- The RAM disk ID.public ImageAttribute withRamdiskId(String ramdiskId)
Returns a reference to this object so that method calls can be chained together.
ramdiskId
- The RAM disk ID.public String getDescription()
public void setDescription(String description)
description
- A description for the AMI.public ImageAttribute withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
description
- A description for the AMI.public String getSriovNetSupport()
public void setSriovNetSupport(String sriovNetSupport)
sriovNetSupport
- The value to use for a resource attribute.public ImageAttribute withSriovNetSupport(String sriovNetSupport)
Returns a reference to this object so that method calls can be chained together.
sriovNetSupport
- The value to use for a resource attribute.public List<BlockDeviceMapping> getBlockDeviceMappings()
public void setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
blockDeviceMappings
- One or more block device mapping entries.public ImageAttribute withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
NOTE: This method appends the values to the existing list (if
any). Use setBlockDeviceMappings(java.util.Collection)
or
withBlockDeviceMappings(java.util.Collection)
if you want to
override the existing values.
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings
- One or more block device mapping entries.public ImageAttribute withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings
- One or more block device mapping entries.public String toString()
toString
in class Object
Object.toString()
public ImageAttribute clone()
Copyright © 2015. All rights reserved.