@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Image extends Object implements Serializable, Cloneable
Describes an image.
Constructor and Description |
---|
Image() |
Modifier and Type | Method and Description |
---|---|
Image |
clone() |
boolean |
equals(Object obj) |
String |
getArchitecture()
The architecture of the image.
|
List<BlockDeviceMapping> |
getBlockDeviceMappings()
Any block device mapping entries.
|
String |
getBootMode()
The boot mode of the image.
|
String |
getCreationDate()
The date and time the image was created.
|
String |
getDeprecationTime()
The date and time to deprecate the AMI, in UTC, in the following format:
YYYY-MM-DDTHH:MM:SSZ.
|
String |
getDeregistrationProtection()
Indicates whether deregistration protection is enabled for the AMI.
|
String |
getDescription()
The description of the AMI that was provided during image creation.
|
Boolean |
getEnaSupport()
Specifies whether enhanced networking with ENA is enabled.
|
String |
getHypervisor()
The hypervisor type of the image.
|
String |
getImageId()
The ID of the AMI.
|
String |
getImageLocation()
The location of the AMI.
|
String |
getImageOwnerAlias()
The owner alias (
amazon | aws-marketplace ). |
String |
getImageType()
The type of image.
|
String |
getImdsSupport()
If
v2.0 , it indicates that IMDSv2 is specified in the AMI. |
String |
getKernelId()
The kernel associated with the image, if any.
|
String |
getLastLaunchedTime()
The date and time, in ISO 8601 date-time format, when the AMI was
last used to launch an EC2 instance.
|
String |
getName()
The name of the AMI that was provided during image creation.
|
String |
getOwnerId()
The ID of the Amazon Web Services account that owns the image.
|
String |
getPlatform()
This value is set to
windows for Windows AMIs; otherwise, it is blank. |
String |
getPlatformDetails()
The platform details associated with the billing code of the AMI.
|
List<ProductCode> |
getProductCodes()
Any product codes associated with the AMI.
|
Boolean |
getPublic()
Indicates whether the image has public launch permissions.
|
String |
getRamdiskId()
The RAM disk associated with the image, if any.
|
String |
getRootDeviceName()
The device name of the root device volume (for example,
/dev/sda1 ). |
String |
getRootDeviceType()
The type of root device used by the AMI.
|
String |
getSourceInstanceId()
The ID of the instance that the AMI was created from if the AMI was created using CreateImage.
|
String |
getSriovNetSupport()
Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
|
String |
getState()
The current state of the AMI.
|
StateReason |
getStateReason()
The reason for the state change.
|
List<Tag> |
getTags()
Any tags assigned to the image.
|
String |
getTpmSupport()
If the image is configured for NitroTPM support, the value is
v2.0 . |
String |
getUsageOperation()
The operation of the Amazon EC2 instance and the billing code that is associated with the AMI.
|
String |
getVirtualizationType()
The type of virtualization of the AMI.
|
int |
hashCode() |
Boolean |
isEnaSupport()
Specifies whether enhanced networking with ENA is enabled.
|
Boolean |
isPublic()
Indicates whether the image has public launch permissions.
|
void |
setArchitecture(ArchitectureValues architecture)
The architecture of the image.
|
void |
setArchitecture(String architecture)
The architecture of the image.
|
void |
setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
Any block device mapping entries.
|
void |
setBootMode(BootModeValues bootMode)
The boot mode of the image.
|
void |
setBootMode(String bootMode)
The boot mode of the image.
|
void |
setCreationDate(String creationDate)
The date and time the image was created.
|
void |
setDeprecationTime(String deprecationTime)
The date and time to deprecate the AMI, in UTC, in the following format:
YYYY-MM-DDTHH:MM:SSZ.
|
void |
setDeregistrationProtection(String deregistrationProtection)
Indicates whether deregistration protection is enabled for the AMI.
|
void |
setDescription(String description)
The description of the AMI that was provided during image creation.
|
void |
setEnaSupport(Boolean enaSupport)
Specifies whether enhanced networking with ENA is enabled.
|
void |
setHypervisor(HypervisorType hypervisor)
The hypervisor type of the image.
|
void |
setHypervisor(String hypervisor)
The hypervisor type of the image.
|
void |
setImageId(String imageId)
The ID of the AMI.
|
void |
setImageLocation(String imageLocation)
The location of the AMI.
|
void |
setImageOwnerAlias(String imageOwnerAlias)
The owner alias (
amazon | aws-marketplace ). |
void |
setImageType(ImageTypeValues imageType)
The type of image.
|
void |
setImageType(String imageType)
The type of image.
|
void |
setImdsSupport(ImdsSupportValues imdsSupport)
If
v2.0 , it indicates that IMDSv2 is specified in the AMI. |
void |
setImdsSupport(String imdsSupport)
If
v2.0 , it indicates that IMDSv2 is specified in the AMI. |
void |
setKernelId(String kernelId)
The kernel associated with the image, if any.
|
void |
setLastLaunchedTime(String lastLaunchedTime)
The date and time, in ISO 8601 date-time format, when the AMI was
last used to launch an EC2 instance.
|
void |
setName(String name)
The name of the AMI that was provided during image creation.
|
void |
setOwnerId(String ownerId)
The ID of the Amazon Web Services account that owns the image.
|
void |
setPlatform(PlatformValues platform)
This value is set to
windows for Windows AMIs; otherwise, it is blank. |
void |
setPlatform(String platform)
This value is set to
windows for Windows AMIs; otherwise, it is blank. |
void |
setPlatformDetails(String platformDetails)
The platform details associated with the billing code of the AMI.
|
void |
setProductCodes(Collection<ProductCode> productCodes)
Any product codes associated with the AMI.
|
void |
setPublic(Boolean publicValue)
Indicates whether the image has public launch permissions.
|
void |
setRamdiskId(String ramdiskId)
The RAM disk associated with the image, if any.
|
void |
setRootDeviceName(String rootDeviceName)
The device name of the root device volume (for example,
/dev/sda1 ). |
void |
setRootDeviceType(DeviceType rootDeviceType)
The type of root device used by the AMI.
|
void |
setRootDeviceType(String rootDeviceType)
The type of root device used by the AMI.
|
void |
setSourceInstanceId(String sourceInstanceId)
The ID of the instance that the AMI was created from if the AMI was created using CreateImage.
|
void |
setSriovNetSupport(String sriovNetSupport)
Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
|
void |
setState(ImageState state)
The current state of the AMI.
|
void |
setState(String state)
The current state of the AMI.
|
void |
setStateReason(StateReason stateReason)
The reason for the state change.
|
void |
setTags(Collection<Tag> tags)
Any tags assigned to the image.
|
void |
setTpmSupport(String tpmSupport)
If the image is configured for NitroTPM support, the value is
v2.0 . |
void |
setTpmSupport(TpmSupportValues tpmSupport)
If the image is configured for NitroTPM support, the value is
v2.0 . |
void |
setUsageOperation(String usageOperation)
The operation of the Amazon EC2 instance and the billing code that is associated with the AMI.
|
void |
setVirtualizationType(String virtualizationType)
The type of virtualization of the AMI.
|
void |
setVirtualizationType(VirtualizationType virtualizationType)
The type of virtualization of the AMI.
|
String |
toString()
Returns a string representation of this object.
|
Image |
withArchitecture(ArchitectureValues architecture)
The architecture of the image.
|
Image |
withArchitecture(String architecture)
The architecture of the image.
|
Image |
withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
Any block device mapping entries.
|
Image |
withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
Any block device mapping entries.
|
Image |
withBootMode(BootModeValues bootMode)
The boot mode of the image.
|
Image |
withBootMode(String bootMode)
The boot mode of the image.
|
Image |
withCreationDate(String creationDate)
The date and time the image was created.
|
Image |
withDeprecationTime(String deprecationTime)
The date and time to deprecate the AMI, in UTC, in the following format:
YYYY-MM-DDTHH:MM:SSZ.
|
Image |
withDeregistrationProtection(String deregistrationProtection)
Indicates whether deregistration protection is enabled for the AMI.
|
Image |
withDescription(String description)
The description of the AMI that was provided during image creation.
|
Image |
withEnaSupport(Boolean enaSupport)
Specifies whether enhanced networking with ENA is enabled.
|
Image |
withHypervisor(HypervisorType hypervisor)
The hypervisor type of the image.
|
Image |
withHypervisor(String hypervisor)
The hypervisor type of the image.
|
Image |
withImageId(String imageId)
The ID of the AMI.
|
Image |
withImageLocation(String imageLocation)
The location of the AMI.
|
Image |
withImageOwnerAlias(String imageOwnerAlias)
The owner alias (
amazon | aws-marketplace ). |
Image |
withImageType(ImageTypeValues imageType)
The type of image.
|
Image |
withImageType(String imageType)
The type of image.
|
Image |
withImdsSupport(ImdsSupportValues imdsSupport)
If
v2.0 , it indicates that IMDSv2 is specified in the AMI. |
Image |
withImdsSupport(String imdsSupport)
If
v2.0 , it indicates that IMDSv2 is specified in the AMI. |
Image |
withKernelId(String kernelId)
The kernel associated with the image, if any.
|
Image |
withLastLaunchedTime(String lastLaunchedTime)
The date and time, in ISO 8601 date-time format, when the AMI was
last used to launch an EC2 instance.
|
Image |
withName(String name)
The name of the AMI that was provided during image creation.
|
Image |
withOwnerId(String ownerId)
The ID of the Amazon Web Services account that owns the image.
|
Image |
withPlatform(PlatformValues platform)
This value is set to
windows for Windows AMIs; otherwise, it is blank. |
Image |
withPlatform(String platform)
This value is set to
windows for Windows AMIs; otherwise, it is blank. |
Image |
withPlatformDetails(String platformDetails)
The platform details associated with the billing code of the AMI.
|
Image |
withProductCodes(Collection<ProductCode> productCodes)
Any product codes associated with the AMI.
|
Image |
withProductCodes(ProductCode... productCodes)
Any product codes associated with the AMI.
|
Image |
withPublic(Boolean publicValue)
Indicates whether the image has public launch permissions.
|
Image |
withRamdiskId(String ramdiskId)
The RAM disk associated with the image, if any.
|
Image |
withRootDeviceName(String rootDeviceName)
The device name of the root device volume (for example,
/dev/sda1 ). |
Image |
withRootDeviceType(DeviceType rootDeviceType)
The type of root device used by the AMI.
|
Image |
withRootDeviceType(String rootDeviceType)
The type of root device used by the AMI.
|
Image |
withSourceInstanceId(String sourceInstanceId)
The ID of the instance that the AMI was created from if the AMI was created using CreateImage.
|
Image |
withSriovNetSupport(String sriovNetSupport)
Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
|
Image |
withState(ImageState state)
The current state of the AMI.
|
Image |
withState(String state)
The current state of the AMI.
|
Image |
withStateReason(StateReason stateReason)
The reason for the state change.
|
Image |
withTags(Collection<Tag> tags)
Any tags assigned to the image.
|
Image |
withTags(Tag... tags)
Any tags assigned to the image.
|
Image |
withTpmSupport(String tpmSupport)
If the image is configured for NitroTPM support, the value is
v2.0 . |
Image |
withTpmSupport(TpmSupportValues tpmSupport)
If the image is configured for NitroTPM support, the value is
v2.0 . |
Image |
withUsageOperation(String usageOperation)
The operation of the Amazon EC2 instance and the billing code that is associated with the AMI.
|
Image |
withVirtualizationType(String virtualizationType)
The type of virtualization of the AMI.
|
Image |
withVirtualizationType(VirtualizationType virtualizationType)
The type of virtualization of the AMI.
|
public void setArchitecture(String architecture)
The architecture of the image.
architecture
- The architecture of the image.ArchitectureValues
public String getArchitecture()
The architecture of the image.
ArchitectureValues
public Image withArchitecture(String architecture)
The architecture of the image.
architecture
- The architecture of the image.ArchitectureValues
public void setArchitecture(ArchitectureValues architecture)
The architecture of the image.
architecture
- The architecture of the image.ArchitectureValues
public Image withArchitecture(ArchitectureValues architecture)
The architecture of the image.
architecture
- The architecture of the image.ArchitectureValues
public void setCreationDate(String creationDate)
The date and time the image was created.
creationDate
- The date and time the image was created.public String getCreationDate()
The date and time the image was created.
public Image withCreationDate(String creationDate)
The date and time the image was created.
creationDate
- The date and time the image was created.public void setImageId(String imageId)
The ID of the AMI.
imageId
- The ID of the AMI.public String getImageId()
The ID of the AMI.
public Image withImageId(String imageId)
The ID of the AMI.
imageId
- The ID of the AMI.public void setImageLocation(String imageLocation)
The location of the AMI.
imageLocation
- The location of the AMI.public String getImageLocation()
The location of the AMI.
public Image withImageLocation(String imageLocation)
The location of the AMI.
imageLocation
- The location of the AMI.public void setImageType(String imageType)
The type of image.
imageType
- The type of image.ImageTypeValues
public String getImageType()
The type of image.
ImageTypeValues
public Image withImageType(String imageType)
The type of image.
imageType
- The type of image.ImageTypeValues
public void setImageType(ImageTypeValues imageType)
The type of image.
imageType
- The type of image.ImageTypeValues
public Image withImageType(ImageTypeValues imageType)
The type of image.
imageType
- The type of image.ImageTypeValues
public void setPublic(Boolean publicValue)
Indicates whether the image has public launch permissions. The value is true
if this image has
public launch permissions or false
if it has only implicit and explicit launch permissions.
publicValue
- Indicates whether the image has public launch permissions. The value is true
if this image
has public launch permissions or false
if it has only implicit and explicit launch
permissions.public Boolean getPublic()
Indicates whether the image has public launch permissions. The value is true
if this image has
public launch permissions or false
if it has only implicit and explicit launch permissions.
true
if this image
has public launch permissions or false
if it has only implicit and explicit launch
permissions.public Image withPublic(Boolean publicValue)
Indicates whether the image has public launch permissions. The value is true
if this image has
public launch permissions or false
if it has only implicit and explicit launch permissions.
publicValue
- Indicates whether the image has public launch permissions. The value is true
if this image
has public launch permissions or false
if it has only implicit and explicit launch
permissions.public Boolean isPublic()
Indicates whether the image has public launch permissions. The value is true
if this image has
public launch permissions or false
if it has only implicit and explicit launch permissions.
true
if this image
has public launch permissions or false
if it has only implicit and explicit launch
permissions.public void setKernelId(String kernelId)
The kernel associated with the image, if any. Only applicable for machine images.
kernelId
- The kernel associated with the image, if any. Only applicable for machine images.public String getKernelId()
The kernel associated with the image, if any. Only applicable for machine images.
public Image withKernelId(String kernelId)
The kernel associated with the image, if any. Only applicable for machine images.
kernelId
- The kernel associated with the image, if any. Only applicable for machine images.public void setOwnerId(String ownerId)
The ID of the Amazon Web Services account that owns the image.
ownerId
- The ID of the Amazon Web Services account that owns the image.public String getOwnerId()
The ID of the Amazon Web Services account that owns the image.
public Image withOwnerId(String ownerId)
The ID of the Amazon Web Services account that owns the image.
ownerId
- The ID of the Amazon Web Services account that owns the image.public void setPlatform(String platform)
This value is set to windows
for Windows AMIs; otherwise, it is blank.
platform
- This value is set to windows
for Windows AMIs; otherwise, it is blank.PlatformValues
public String getPlatform()
This value is set to windows
for Windows AMIs; otherwise, it is blank.
windows
for Windows AMIs; otherwise, it is blank.PlatformValues
public Image withPlatform(String platform)
This value is set to windows
for Windows AMIs; otherwise, it is blank.
platform
- This value is set to windows
for Windows AMIs; otherwise, it is blank.PlatformValues
public void setPlatform(PlatformValues platform)
This value is set to windows
for Windows AMIs; otherwise, it is blank.
platform
- This value is set to windows
for Windows AMIs; otherwise, it is blank.PlatformValues
public Image withPlatform(PlatformValues platform)
This value is set to windows
for Windows AMIs; otherwise, it is blank.
platform
- This value is set to windows
for Windows AMIs; otherwise, it is blank.PlatformValues
public void setPlatformDetails(String platformDetails)
The platform details associated with the billing code of the AMI. For more information, see Understand AMI billing information in the Amazon EC2 User Guide.
platformDetails
- The platform details associated with the billing code of the AMI. For more information, see Understand AMI billing
information in the Amazon EC2 User Guide.public String getPlatformDetails()
The platform details associated with the billing code of the AMI. For more information, see Understand AMI billing information in the Amazon EC2 User Guide.
public Image withPlatformDetails(String platformDetails)
The platform details associated with the billing code of the AMI. For more information, see Understand AMI billing information in the Amazon EC2 User Guide.
platformDetails
- The platform details associated with the billing code of the AMI. For more information, see Understand AMI billing
information in the Amazon EC2 User Guide.public void setUsageOperation(String usageOperation)
The operation of the Amazon EC2 instance and the billing code that is associated with the AMI.
usageOperation
corresponds to the lineitem/Operation column on your Amazon Web Services Cost and Usage Report and in the Amazon Web Services Price
List API. You can view these fields on the Instances or AMIs pages in the Amazon EC2 console,
or in the responses that are returned by the DescribeImages command
in the Amazon EC2 API, or the describe-images command in
the CLI.
usageOperation
- The operation of the Amazon EC2 instance and the billing code that is associated with the AMI.
usageOperation
corresponds to the lineitem/Operation column on your Amazon Web Services Cost and Usage Report and in the Amazon Web Services
Price List API. You can view these fields on the Instances or AMIs pages in the Amazon
EC2 console, or in the responses that are returned by the DescribeImages
command in the Amazon EC2 API, or the describe-images
command in the CLI.public String getUsageOperation()
The operation of the Amazon EC2 instance and the billing code that is associated with the AMI.
usageOperation
corresponds to the lineitem/Operation column on your Amazon Web Services Cost and Usage Report and in the Amazon Web Services Price
List API. You can view these fields on the Instances or AMIs pages in the Amazon EC2 console,
or in the responses that are returned by the DescribeImages command
in the Amazon EC2 API, or the describe-images command in
the CLI.
usageOperation
corresponds to the lineitem/Operation column on your Amazon Web Services Cost and Usage Report and in the Amazon Web
Services Price List API. You can view these fields on the Instances or AMIs pages in
the Amazon EC2 console, or in the responses that are returned by the DescribeImages
command in the Amazon EC2 API, or the describe-images
command in the CLI.public Image withUsageOperation(String usageOperation)
The operation of the Amazon EC2 instance and the billing code that is associated with the AMI.
usageOperation
corresponds to the lineitem/Operation column on your Amazon Web Services Cost and Usage Report and in the Amazon Web Services Price
List API. You can view these fields on the Instances or AMIs pages in the Amazon EC2 console,
or in the responses that are returned by the DescribeImages command
in the Amazon EC2 API, or the describe-images command in
the CLI.
usageOperation
- The operation of the Amazon EC2 instance and the billing code that is associated with the AMI.
usageOperation
corresponds to the lineitem/Operation column on your Amazon Web Services Cost and Usage Report and in the Amazon Web Services
Price List API. You can view these fields on the Instances or AMIs pages in the Amazon
EC2 console, or in the responses that are returned by the DescribeImages
command in the Amazon EC2 API, or the describe-images
command in the CLI.public List<ProductCode> getProductCodes()
Any product codes associated with the AMI.
public void setProductCodes(Collection<ProductCode> productCodes)
Any product codes associated with the AMI.
productCodes
- Any product codes associated with the AMI.public Image withProductCodes(ProductCode... productCodes)
Any product codes associated with the AMI.
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
- Any product codes associated with the AMI.public Image withProductCodes(Collection<ProductCode> productCodes)
Any product codes associated with the AMI.
productCodes
- Any product codes associated with the AMI.public void setRamdiskId(String ramdiskId)
The RAM disk associated with the image, if any. Only applicable for machine images.
ramdiskId
- The RAM disk associated with the image, if any. Only applicable for machine images.public String getRamdiskId()
The RAM disk associated with the image, if any. Only applicable for machine images.
public Image withRamdiskId(String ramdiskId)
The RAM disk associated with the image, if any. Only applicable for machine images.
ramdiskId
- The RAM disk associated with the image, if any. Only applicable for machine images.public void setState(String state)
The current state of the AMI. If the state is available
, the image is successfully registered and
can be used to launch an instance.
state
- The current state of the AMI. If the state is available
, the image is successfully registered
and can be used to launch an instance.ImageState
public String getState()
The current state of the AMI. If the state is available
, the image is successfully registered and
can be used to launch an instance.
available
, the image is successfully
registered and can be used to launch an instance.ImageState
public Image withState(String state)
The current state of the AMI. If the state is available
, the image is successfully registered and
can be used to launch an instance.
state
- The current state of the AMI. If the state is available
, the image is successfully registered
and can be used to launch an instance.ImageState
public void setState(ImageState state)
The current state of the AMI. If the state is available
, the image is successfully registered and
can be used to launch an instance.
state
- The current state of the AMI. If the state is available
, the image is successfully registered
and can be used to launch an instance.ImageState
public Image withState(ImageState state)
The current state of the AMI. If the state is available
, the image is successfully registered and
can be used to launch an instance.
state
- The current state of the AMI. If the state is available
, the image is successfully registered
and can be used to launch an instance.ImageState
public List<BlockDeviceMapping> getBlockDeviceMappings()
Any block device mapping entries.
public void setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
Any block device mapping entries.
blockDeviceMappings
- Any block device mapping entries.public Image withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
Any 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
- Any block device mapping entries.public Image withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
Any block device mapping entries.
blockDeviceMappings
- Any block device mapping entries.public void setDescription(String description)
The description of the AMI that was provided during image creation.
description
- The description of the AMI that was provided during image creation.public String getDescription()
The description of the AMI that was provided during image creation.
public Image withDescription(String description)
The description of the AMI that was provided during image creation.
description
- The description of the AMI that was provided during image creation.public void setEnaSupport(Boolean enaSupport)
Specifies whether enhanced networking with ENA is enabled.
enaSupport
- Specifies whether enhanced networking with ENA is enabled.public Boolean getEnaSupport()
Specifies whether enhanced networking with ENA is enabled.
public Image withEnaSupport(Boolean enaSupport)
Specifies whether enhanced networking with ENA is enabled.
enaSupport
- Specifies whether enhanced networking with ENA is enabled.public Boolean isEnaSupport()
Specifies whether enhanced networking with ENA is enabled.
public void setHypervisor(String hypervisor)
The hypervisor type of the image. Only xen
is supported. ovm
is not supported.
hypervisor
- The hypervisor type of the image. Only xen
is supported. ovm
is not supported.HypervisorType
public String getHypervisor()
The hypervisor type of the image. Only xen
is supported. ovm
is not supported.
xen
is supported. ovm
is not supported.HypervisorType
public Image withHypervisor(String hypervisor)
The hypervisor type of the image. Only xen
is supported. ovm
is not supported.
hypervisor
- The hypervisor type of the image. Only xen
is supported. ovm
is not supported.HypervisorType
public void setHypervisor(HypervisorType hypervisor)
The hypervisor type of the image. Only xen
is supported. ovm
is not supported.
hypervisor
- The hypervisor type of the image. Only xen
is supported. ovm
is not supported.HypervisorType
public Image withHypervisor(HypervisorType hypervisor)
The hypervisor type of the image. Only xen
is supported. ovm
is not supported.
hypervisor
- The hypervisor type of the image. Only xen
is supported. ovm
is not supported.HypervisorType
public void setImageOwnerAlias(String imageOwnerAlias)
The owner alias (amazon
| aws-marketplace
).
imageOwnerAlias
- The owner alias (amazon
| aws-marketplace
).public String getImageOwnerAlias()
The owner alias (amazon
| aws-marketplace
).
amazon
| aws-marketplace
).public Image withImageOwnerAlias(String imageOwnerAlias)
The owner alias (amazon
| aws-marketplace
).
imageOwnerAlias
- The owner alias (amazon
| aws-marketplace
).public void setName(String name)
The name of the AMI that was provided during image creation.
name
- The name of the AMI that was provided during image creation.public String getName()
The name of the AMI that was provided during image creation.
public Image withName(String name)
The name of the AMI that was provided during image creation.
name
- The name of the AMI that was provided during image creation.public void setRootDeviceName(String rootDeviceName)
The device name of the root device volume (for example, /dev/sda1
).
rootDeviceName
- The device name of the root device volume (for example, /dev/sda1
).public String getRootDeviceName()
The device name of the root device volume (for example, /dev/sda1
).
/dev/sda1
).public Image withRootDeviceName(String rootDeviceName)
The device name of the root device volume (for example, /dev/sda1
).
rootDeviceName
- The device name of the root device volume (for example, /dev/sda1
).public void setRootDeviceType(String rootDeviceType)
The type of root device used by the AMI. The AMI can use an Amazon EBS volume or an instance store volume.
rootDeviceType
- The type of root device used by the AMI. The AMI can use an Amazon EBS volume or an instance store volume.DeviceType
public String getRootDeviceType()
The type of root device used by the AMI. The AMI can use an Amazon EBS volume or an instance store volume.
DeviceType
public Image withRootDeviceType(String rootDeviceType)
The type of root device used by the AMI. The AMI can use an Amazon EBS volume or an instance store volume.
rootDeviceType
- The type of root device used by the AMI. The AMI can use an Amazon EBS volume or an instance store volume.DeviceType
public void setRootDeviceType(DeviceType rootDeviceType)
The type of root device used by the AMI. The AMI can use an Amazon EBS volume or an instance store volume.
rootDeviceType
- The type of root device used by the AMI. The AMI can use an Amazon EBS volume or an instance store volume.DeviceType
public Image withRootDeviceType(DeviceType rootDeviceType)
The type of root device used by the AMI. The AMI can use an Amazon EBS volume or an instance store volume.
rootDeviceType
- The type of root device used by the AMI. The AMI can use an Amazon EBS volume or an instance store volume.DeviceType
public void setSriovNetSupport(String sriovNetSupport)
Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
sriovNetSupport
- Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.public String getSriovNetSupport()
Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
public Image withSriovNetSupport(String sriovNetSupport)
Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
sriovNetSupport
- Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.public void setStateReason(StateReason stateReason)
The reason for the state change.
stateReason
- The reason for the state change.public StateReason getStateReason()
The reason for the state change.
public Image withStateReason(StateReason stateReason)
The reason for the state change.
stateReason
- The reason for the state change.public List<Tag> getTags()
Any tags assigned to the image.
public void setTags(Collection<Tag> tags)
Any tags assigned to the image.
tags
- Any tags assigned to the image.public Image withTags(Tag... tags)
Any tags assigned to the image.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- Any tags assigned to the image.public Image withTags(Collection<Tag> tags)
Any tags assigned to the image.
tags
- Any tags assigned to the image.public void setVirtualizationType(String virtualizationType)
The type of virtualization of the AMI.
virtualizationType
- The type of virtualization of the AMI.VirtualizationType
public String getVirtualizationType()
The type of virtualization of the AMI.
VirtualizationType
public Image withVirtualizationType(String virtualizationType)
The type of virtualization of the AMI.
virtualizationType
- The type of virtualization of the AMI.VirtualizationType
public void setVirtualizationType(VirtualizationType virtualizationType)
The type of virtualization of the AMI.
virtualizationType
- The type of virtualization of the AMI.VirtualizationType
public Image withVirtualizationType(VirtualizationType virtualizationType)
The type of virtualization of the AMI.
virtualizationType
- The type of virtualization of the AMI.VirtualizationType
public void setBootMode(String bootMode)
The boot mode of the image. For more information, see Boot modes in the Amazon EC2 User Guide.
bootMode
- The boot mode of the image. For more information, see Boot modes in the Amazon
EC2 User Guide.BootModeValues
public String getBootMode()
The boot mode of the image. For more information, see Boot modes in the Amazon EC2 User Guide.
BootModeValues
public Image withBootMode(String bootMode)
The boot mode of the image. For more information, see Boot modes in the Amazon EC2 User Guide.
bootMode
- The boot mode of the image. For more information, see Boot modes in the Amazon
EC2 User Guide.BootModeValues
public void setBootMode(BootModeValues bootMode)
The boot mode of the image. For more information, see Boot modes in the Amazon EC2 User Guide.
bootMode
- The boot mode of the image. For more information, see Boot modes in the Amazon
EC2 User Guide.BootModeValues
public Image withBootMode(BootModeValues bootMode)
The boot mode of the image. For more information, see Boot modes in the Amazon EC2 User Guide.
bootMode
- The boot mode of the image. For more information, see Boot modes in the Amazon
EC2 User Guide.BootModeValues
public void setTpmSupport(String tpmSupport)
If the image is configured for NitroTPM support, the value is v2.0
. For more information, see NitroTPM in the Amazon EC2 User
Guide.
tpmSupport
- If the image is configured for NitroTPM support, the value is v2.0
. For more information, see
NitroTPM in the Amazon
EC2 User Guide.TpmSupportValues
public String getTpmSupport()
If the image is configured for NitroTPM support, the value is v2.0
. For more information, see NitroTPM in the Amazon EC2 User
Guide.
v2.0
. For more information,
see NitroTPM in the
Amazon EC2 User Guide.TpmSupportValues
public Image withTpmSupport(String tpmSupport)
If the image is configured for NitroTPM support, the value is v2.0
. For more information, see NitroTPM in the Amazon EC2 User
Guide.
tpmSupport
- If the image is configured for NitroTPM support, the value is v2.0
. For more information, see
NitroTPM in the Amazon
EC2 User Guide.TpmSupportValues
public void setTpmSupport(TpmSupportValues tpmSupport)
If the image is configured for NitroTPM support, the value is v2.0
. For more information, see NitroTPM in the Amazon EC2 User
Guide.
tpmSupport
- If the image is configured for NitroTPM support, the value is v2.0
. For more information, see
NitroTPM in the Amazon
EC2 User Guide.TpmSupportValues
public Image withTpmSupport(TpmSupportValues tpmSupport)
If the image is configured for NitroTPM support, the value is v2.0
. For more information, see NitroTPM in the Amazon EC2 User
Guide.
tpmSupport
- If the image is configured for NitroTPM support, the value is v2.0
. For more information, see
NitroTPM in the Amazon
EC2 User Guide.TpmSupportValues
public void setDeprecationTime(String deprecationTime)
The date and time to deprecate the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ. If you specified a value for seconds, Amazon EC2 rounds the seconds to the nearest minute.
deprecationTime
- The date and time to deprecate the AMI, in UTC, in the following format:
YYYY-MM-DDTHH:MM:SSZ. If you specified a value for seconds,
Amazon EC2 rounds the seconds to the nearest minute.public String getDeprecationTime()
The date and time to deprecate the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ. If you specified a value for seconds, Amazon EC2 rounds the seconds to the nearest minute.
public Image withDeprecationTime(String deprecationTime)
The date and time to deprecate the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ. If you specified a value for seconds, Amazon EC2 rounds the seconds to the nearest minute.
deprecationTime
- The date and time to deprecate the AMI, in UTC, in the following format:
YYYY-MM-DDTHH:MM:SSZ. If you specified a value for seconds,
Amazon EC2 rounds the seconds to the nearest minute.public void setImdsSupport(String imdsSupport)
If v2.0
, it indicates that IMDSv2 is specified in the AMI. Instances launched from this AMI will
have HttpTokens
automatically set to required
so that, by default, the instance
requires that IMDSv2 is used when requesting instance metadata. In addition, HttpPutResponseHopLimit
is set to 2
. For more information, see Configure the AMI in the Amazon EC2 User Guide.
imdsSupport
- If v2.0
, it indicates that IMDSv2 is specified in the AMI. Instances launched from this AMI
will have HttpTokens
automatically set to required
so that, by default, the
instance requires that IMDSv2 is used when requesting instance metadata. In addition,
HttpPutResponseHopLimit
is set to 2
. For more information, see Configure the AMI in the Amazon EC2 User Guide.ImdsSupportValues
public String getImdsSupport()
If v2.0
, it indicates that IMDSv2 is specified in the AMI. Instances launched from this AMI will
have HttpTokens
automatically set to required
so that, by default, the instance
requires that IMDSv2 is used when requesting instance metadata. In addition, HttpPutResponseHopLimit
is set to 2
. For more information, see Configure the AMI in the Amazon EC2 User Guide.
v2.0
, it indicates that IMDSv2 is specified in the AMI. Instances launched from this AMI
will have HttpTokens
automatically set to required
so that, by default, the
instance requires that IMDSv2 is used when requesting instance metadata. In addition,
HttpPutResponseHopLimit
is set to 2
. For more information, see Configure the AMI in the Amazon EC2 User Guide.ImdsSupportValues
public Image withImdsSupport(String imdsSupport)
If v2.0
, it indicates that IMDSv2 is specified in the AMI. Instances launched from this AMI will
have HttpTokens
automatically set to required
so that, by default, the instance
requires that IMDSv2 is used when requesting instance metadata. In addition, HttpPutResponseHopLimit
is set to 2
. For more information, see Configure the AMI in the Amazon EC2 User Guide.
imdsSupport
- If v2.0
, it indicates that IMDSv2 is specified in the AMI. Instances launched from this AMI
will have HttpTokens
automatically set to required
so that, by default, the
instance requires that IMDSv2 is used when requesting instance metadata. In addition,
HttpPutResponseHopLimit
is set to 2
. For more information, see Configure the AMI in the Amazon EC2 User Guide.ImdsSupportValues
public void setImdsSupport(ImdsSupportValues imdsSupport)
If v2.0
, it indicates that IMDSv2 is specified in the AMI. Instances launched from this AMI will
have HttpTokens
automatically set to required
so that, by default, the instance
requires that IMDSv2 is used when requesting instance metadata. In addition, HttpPutResponseHopLimit
is set to 2
. For more information, see Configure the AMI in the Amazon EC2 User Guide.
imdsSupport
- If v2.0
, it indicates that IMDSv2 is specified in the AMI. Instances launched from this AMI
will have HttpTokens
automatically set to required
so that, by default, the
instance requires that IMDSv2 is used when requesting instance metadata. In addition,
HttpPutResponseHopLimit
is set to 2
. For more information, see Configure the AMI in the Amazon EC2 User Guide.ImdsSupportValues
public Image withImdsSupport(ImdsSupportValues imdsSupport)
If v2.0
, it indicates that IMDSv2 is specified in the AMI. Instances launched from this AMI will
have HttpTokens
automatically set to required
so that, by default, the instance
requires that IMDSv2 is used when requesting instance metadata. In addition, HttpPutResponseHopLimit
is set to 2
. For more information, see Configure the AMI in the Amazon EC2 User Guide.
imdsSupport
- If v2.0
, it indicates that IMDSv2 is specified in the AMI. Instances launched from this AMI
will have HttpTokens
automatically set to required
so that, by default, the
instance requires that IMDSv2 is used when requesting instance metadata. In addition,
HttpPutResponseHopLimit
is set to 2
. For more information, see Configure the AMI in the Amazon EC2 User Guide.ImdsSupportValues
public void setSourceInstanceId(String sourceInstanceId)
The ID of the instance that the AMI was created from if the AMI was created using CreateImage. This field only appears if the AMI was created using CreateImage.
sourceInstanceId
- The ID of the instance that the AMI was created from if the AMI was created using CreateImage. This
field only appears if the AMI was created using CreateImage.public String getSourceInstanceId()
The ID of the instance that the AMI was created from if the AMI was created using CreateImage. This field only appears if the AMI was created using CreateImage.
public Image withSourceInstanceId(String sourceInstanceId)
The ID of the instance that the AMI was created from if the AMI was created using CreateImage. This field only appears if the AMI was created using CreateImage.
sourceInstanceId
- The ID of the instance that the AMI was created from if the AMI was created using CreateImage. This
field only appears if the AMI was created using CreateImage.public void setDeregistrationProtection(String deregistrationProtection)
Indicates whether deregistration protection is enabled for the AMI.
deregistrationProtection
- Indicates whether deregistration protection is enabled for the AMI.public String getDeregistrationProtection()
Indicates whether deregistration protection is enabled for the AMI.
public Image withDeregistrationProtection(String deregistrationProtection)
Indicates whether deregistration protection is enabled for the AMI.
deregistrationProtection
- Indicates whether deregistration protection is enabled for the AMI.public void setLastLaunchedTime(String lastLaunchedTime)
The date and time, in ISO 8601 date-time format, when the AMI was last used to launch an EC2 instance. When the AMI is used to launch an instance, there is a 24-hour delay before that usage is reported.
lastLaunchedTime
data is available starting April 2017.
lastLaunchedTime
- The date and time, in ISO 8601 date-time format, when the AMI
was last used to launch an EC2 instance. When the AMI is used to launch an instance, there is a 24-hour
delay before that usage is reported.
lastLaunchedTime
data is available starting April 2017.
public String getLastLaunchedTime()
The date and time, in ISO 8601 date-time format, when the AMI was last used to launch an EC2 instance. When the AMI is used to launch an instance, there is a 24-hour delay before that usage is reported.
lastLaunchedTime
data is available starting April 2017.
lastLaunchedTime
data is available starting April 2017.
public Image withLastLaunchedTime(String lastLaunchedTime)
The date and time, in ISO 8601 date-time format, when the AMI was last used to launch an EC2 instance. When the AMI is used to launch an instance, there is a 24-hour delay before that usage is reported.
lastLaunchedTime
data is available starting April 2017.
lastLaunchedTime
- The date and time, in ISO 8601 date-time format, when the AMI
was last used to launch an EC2 instance. When the AMI is used to launch an instance, there is a 24-hour
delay before that usage is reported.
lastLaunchedTime
data is available starting April 2017.
public String toString()
toString
in class Object
Object.toString()