public class ImageAttribute
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes an image attribute.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<BlockDeviceMapping> |
blockDeviceMappings
One or more block device mapping entries.
|
private java.lang.String |
description
A description for the AMI.
|
private java.lang.String |
imageId
The ID of the AMI.
|
private java.lang.String |
kernelId
The kernel ID.
|
private SdkInternalList<LaunchPermission> |
launchPermissions
One or more launch permissions.
|
private SdkInternalList<ProductCode> |
productCodes
One or more product codes.
|
private java.lang.String |
ramdiskId
The RAM disk ID.
|
private java.lang.String |
sriovNetSupport |
Constructor and Description |
---|
ImageAttribute() |
Modifier and Type | Method and Description |
---|---|
ImageAttribute |
clone() |
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) |
private java.lang.String imageId
The ID of the AMI.
private SdkInternalList<LaunchPermission> launchPermissions
One or more launch permissions.
private SdkInternalList<ProductCode> productCodes
One or more product codes.
private java.lang.String kernelId
The kernel ID.
private java.lang.String ramdiskId
The RAM disk ID.
private java.lang.String description
A description for the AMI.
private java.lang.String sriovNetSupport
private SdkInternalList<BlockDeviceMapping> blockDeviceMappings
One or more block device mapping entries.
public void setImageId(java.lang.String imageId)
The ID of the AMI.
imageId
- The ID of the AMI.public java.lang.String getImageId()
The ID of the AMI.
public ImageAttribute withImageId(java.lang.String imageId)
The ID of the AMI.
imageId
- The ID of the AMI.public java.util.List<LaunchPermission> getLaunchPermissions()
One or more launch permissions.
public void setLaunchPermissions(java.util.Collection<LaunchPermission> launchPermissions)
One or more launch permissions.
launchPermissions
- One or more launch permissions.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)
or
withLaunchPermissions(java.util.Collection)
if you want to
override the existing values.
launchPermissions
- One or more launch permissions.public ImageAttribute withLaunchPermissions(java.util.Collection<LaunchPermission> launchPermissions)
One or more launch permissions.
launchPermissions
- One or more launch permissions.public java.util.List<ProductCode> getProductCodes()
One or more product codes.
public void setProductCodes(java.util.Collection<ProductCode> productCodes)
One or more product codes.
productCodes
- One or more product codes.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)
or
withProductCodes(java.util.Collection)
if you want to override
the existing values.
productCodes
- One or more product codes.public ImageAttribute withProductCodes(java.util.Collection<ProductCode> productCodes)
One or more product codes.
productCodes
- One or more product codes.public void setKernelId(java.lang.String kernelId)
The kernel ID.
kernelId
- The kernel ID.public java.lang.String getKernelId()
The kernel ID.
public ImageAttribute withKernelId(java.lang.String kernelId)
The kernel ID.
kernelId
- The kernel ID.public void setRamdiskId(java.lang.String ramdiskId)
The RAM disk ID.
ramdiskId
- The RAM disk ID.public java.lang.String getRamdiskId()
The RAM disk ID.
public ImageAttribute withRamdiskId(java.lang.String ramdiskId)
The RAM disk ID.
ramdiskId
- The RAM disk ID.public void setDescription(java.lang.String description)
A description for the AMI.
description
- A description for the AMI.public java.lang.String getDescription()
A description for the AMI.
public ImageAttribute withDescription(java.lang.String description)
A description for the AMI.
description
- A description for the AMI.public void setSriovNetSupport(java.lang.String sriovNetSupport)
sriovNetSupport
- public java.lang.String getSriovNetSupport()
public ImageAttribute withSriovNetSupport(java.lang.String sriovNetSupport)
sriovNetSupport
- public java.util.List<BlockDeviceMapping> getBlockDeviceMappings()
One or more block device mapping entries.
public void setBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)
One or more block device mapping entries.
blockDeviceMappings
- One or more block device mapping entries.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)
or
withBlockDeviceMappings(java.util.Collection)
if you want to
override the existing values.
blockDeviceMappings
- One or more block device mapping entries.public ImageAttribute withBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)
One or more block device mapping entries.
blockDeviceMappings
- One or more block device mapping entries.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ImageAttribute clone()
clone
in class java.lang.Object