public static interface Image.Builder extends SdkPojo, CopyableBuilder<Image.Builder,Image>
| Modifier and Type | Method and Description |
|---|---|
Image.Builder |
architecture(ArchitectureValues architecture)
The architecture of the image.
|
Image.Builder |
architecture(String architecture)
The architecture of the image.
|
Image.Builder |
blockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
Any block device mapping entries.
|
Image.Builder |
blockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
Any block device mapping entries.
|
Image.Builder |
blockDeviceMappings(Consumer<BlockDeviceMapping.Builder>... blockDeviceMappings)
Any block device mapping entries.
|
Image.Builder |
bootMode(BootModeValues bootMode)
The boot mode of the image.
|
Image.Builder |
bootMode(String bootMode)
The boot mode of the image.
|
Image.Builder |
creationDate(String creationDate)
The date and time the image was created.
|
Image.Builder |
deprecationTime(String deprecationTime)
The date and time to deprecate the AMI, in UTC, in the following format:
YYYY-MM-DDTHH:MM:SSZ.
|
Image.Builder |
description(String description)
The description of the AMI that was provided during image creation.
|
Image.Builder |
enaSupport(Boolean enaSupport)
Specifies whether enhanced networking with ENA is enabled.
|
Image.Builder |
hypervisor(HypervisorType hypervisor)
The hypervisor type of the image.
|
Image.Builder |
hypervisor(String hypervisor)
The hypervisor type of the image.
|
Image.Builder |
imageId(String imageId)
The ID of the AMI.
|
Image.Builder |
imageLocation(String imageLocation)
The location of the AMI.
|
Image.Builder |
imageOwnerAlias(String imageOwnerAlias)
The Amazon Web Services account alias (for example,
amazon, self) or the Amazon Web
Services account ID of the AMI owner. |
Image.Builder |
imageType(ImageTypeValues imageType)
The type of image.
|
Image.Builder |
imageType(String imageType)
The type of image.
|
Image.Builder |
imdsSupport(ImdsSupportValues imdsSupport)
If
v2.0, it indicates that IMDSv2 is specified in the AMI. |
Image.Builder |
imdsSupport(String imdsSupport)
If
v2.0, it indicates that IMDSv2 is specified in the AMI. |
Image.Builder |
kernelId(String kernelId)
The kernel associated with the image, if any.
|
Image.Builder |
name(String name)
The name of the AMI that was provided during image creation.
|
Image.Builder |
ownerId(String ownerId)
The ID of the Amazon Web Services account that owns the image.
|
Image.Builder |
platform(PlatformValues platform)
This value is set to
windows for Windows AMIs; otherwise, it is blank. |
Image.Builder |
platform(String platform)
This value is set to
windows for Windows AMIs; otherwise, it is blank. |
Image.Builder |
platformDetails(String platformDetails)
The platform details associated with the billing code of the AMI.
|
Image.Builder |
productCodes(Collection<ProductCode> productCodes)
Any product codes associated with the AMI.
|
Image.Builder |
productCodes(Consumer<ProductCode.Builder>... productCodes)
Any product codes associated with the AMI.
|
Image.Builder |
productCodes(ProductCode... productCodes)
Any product codes associated with the AMI.
|
Image.Builder |
publicLaunchPermissions(Boolean publicLaunchPermissions)
Indicates whether the image has public launch permissions.
|
Image.Builder |
ramdiskId(String ramdiskId)
The RAM disk associated with the image, if any.
|
Image.Builder |
rootDeviceName(String rootDeviceName)
The device name of the root device volume (for example,
/dev/sda1). |
Image.Builder |
rootDeviceType(DeviceType rootDeviceType)
The type of root device used by the AMI.
|
Image.Builder |
rootDeviceType(String rootDeviceType)
The type of root device used by the AMI.
|
Image.Builder |
sriovNetSupport(String sriovNetSupport)
Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
|
Image.Builder |
state(ImageState state)
The current state of the AMI.
|
Image.Builder |
state(String state)
The current state of the AMI.
|
default Image.Builder |
stateReason(Consumer<StateReason.Builder> stateReason)
The reason for the state change.
|
Image.Builder |
stateReason(StateReason stateReason)
The reason for the state change.
|
Image.Builder |
tags(Collection<Tag> tags)
Any tags assigned to the image.
|
Image.Builder |
tags(Consumer<Tag.Builder>... tags)
Any tags assigned to the image.
|
Image.Builder |
tags(Tag... tags)
Any tags assigned to the image.
|
Image.Builder |
tpmSupport(String tpmSupport)
If the image is configured for NitroTPM support, the value is
v2.0. |
Image.Builder |
tpmSupport(TpmSupportValues tpmSupport)
If the image is configured for NitroTPM support, the value is
v2.0. |
Image.Builder |
usageOperation(String usageOperation)
The operation of the Amazon EC2 instance and the billing code that is associated with the AMI.
|
Image.Builder |
virtualizationType(String virtualizationType)
The type of virtualization of the AMI.
|
Image.Builder |
virtualizationType(VirtualizationType virtualizationType)
The type of virtualization of the AMI.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildImage.Builder architecture(String architecture)
The architecture of the image.
architecture - The architecture of the image.ArchitectureValues,
ArchitectureValuesImage.Builder architecture(ArchitectureValues architecture)
The architecture of the image.
architecture - The architecture of the image.ArchitectureValues,
ArchitectureValuesImage.Builder creationDate(String creationDate)
The date and time the image was created.
creationDate - The date and time the image was created.Image.Builder imageId(String imageId)
The ID of the AMI.
imageId - The ID of the AMI.Image.Builder imageLocation(String imageLocation)
The location of the AMI.
imageLocation - The location of the AMI.Image.Builder imageType(String imageType)
The type of image.
imageType - The type of image.ImageTypeValues,
ImageTypeValuesImage.Builder imageType(ImageTypeValues imageType)
The type of image.
imageType - The type of image.ImageTypeValues,
ImageTypeValuesImage.Builder kernelId(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.Image.Builder ownerId(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.Image.Builder platform(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,
PlatformValuesImage.Builder platform(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,
PlatformValuesImage.Builder platformDetails(String platformDetails)
The platform details associated with the billing code of the AMI. For more information, see Understand AMI billing information in the Amazon Elastic Compute Cloud 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 Elastic Compute Cloud User Guide.Image.Builder usageOperation(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.Image.Builder productCodes(Collection<ProductCode> productCodes)
Any product codes associated with the AMI.
productCodes - Any product codes associated with the AMI.Image.Builder productCodes(ProductCode... productCodes)
Any product codes associated with the AMI.
productCodes - Any product codes associated with the AMI.Image.Builder productCodes(Consumer<ProductCode.Builder>... productCodes)
Any product codes associated with the AMI.
This is a convenience method that creates an instance of theProductCode.Builder avoiding the need to create one
manually via ProductCode.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #productCodes(List.
productCodes - a consumer that will call methods on
ProductCode.Builder#productCodes(java.util.Collection) Image.Builder ramdiskId(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.Image.Builder state(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,
ImageStateImage.Builder state(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,
ImageStateImage.Builder blockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
Any block device mapping entries.
blockDeviceMappings - Any block device mapping entries.Image.Builder blockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
Any block device mapping entries.
blockDeviceMappings - Any block device mapping entries.Image.Builder blockDeviceMappings(Consumer<BlockDeviceMapping.Builder>... blockDeviceMappings)
Any block device mapping entries.
This is a convenience method that creates an instance of theBlockDeviceMapping.Builder avoiding the need to create one
manually via BlockDeviceMapping.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #blockDeviceMappings(List.
blockDeviceMappings - a consumer that will call methods on
BlockDeviceMapping.Builder#blockDeviceMappings(java.util.Collection) Image.Builder description(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.Image.Builder enaSupport(Boolean enaSupport)
Specifies whether enhanced networking with ENA is enabled.
enaSupport - Specifies whether enhanced networking with ENA is enabled.Image.Builder hypervisor(String hypervisor)
The hypervisor type of the image.
hypervisor - The hypervisor type of the image.HypervisorType,
HypervisorTypeImage.Builder hypervisor(HypervisorType hypervisor)
The hypervisor type of the image.
hypervisor - The hypervisor type of the image.HypervisorType,
HypervisorTypeImage.Builder imageOwnerAlias(String imageOwnerAlias)
The Amazon Web Services account alias (for example, amazon, self) or the Amazon Web
Services account ID of the AMI owner.
imageOwnerAlias - The Amazon Web Services account alias (for example, amazon, self) or the
Amazon Web Services account ID of the AMI owner.Image.Builder name(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.Image.Builder rootDeviceName(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).Image.Builder rootDeviceType(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,
DeviceTypeImage.Builder rootDeviceType(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,
DeviceTypeImage.Builder sriovNetSupport(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.Image.Builder stateReason(StateReason stateReason)
The reason for the state change.
stateReason - The reason for the state change.default Image.Builder stateReason(Consumer<StateReason.Builder> stateReason)
The reason for the state change.
This is a convenience method that creates an instance of theStateReason.Builder avoiding the need to
create one manually via StateReason.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to stateReason(StateReason).
stateReason - a consumer that will call methods on StateReason.BuilderstateReason(StateReason)Image.Builder tags(Collection<Tag> tags)
Any tags assigned to the image.
tags - Any tags assigned to the image.Image.Builder tags(Tag... tags)
Any tags assigned to the image.
tags - Any tags assigned to the image.Image.Builder tags(Consumer<Tag.Builder>... tags)
Any tags assigned to the image.
This is a convenience method that creates an instance of theTag.Builder avoiding the need to create one manually via
Tag.builder().
When the Consumer completes, SdkBuilder.build() is
called immediately and its result is passed to #tags(List.
tags - a consumer that will call methods on Tag.Builder#tags(java.util.Collection) Image.Builder virtualizationType(String virtualizationType)
The type of virtualization of the AMI.
virtualizationType - The type of virtualization of the AMI.VirtualizationType,
VirtualizationTypeImage.Builder virtualizationType(VirtualizationType virtualizationType)
The type of virtualization of the AMI.
virtualizationType - The type of virtualization of the AMI.VirtualizationType,
VirtualizationTypeImage.Builder bootMode(String bootMode)
The boot mode of the image. For more information, see Boot modes in the Amazon Elastic Compute Cloud User Guide.
bootMode - The boot mode of the image. For more information, see Boot modes in the
Amazon Elastic Compute Cloud User Guide.BootModeValues,
BootModeValuesImage.Builder bootMode(BootModeValues bootMode)
The boot mode of the image. For more information, see Boot modes in the Amazon Elastic Compute Cloud User Guide.
bootMode - The boot mode of the image. For more information, see Boot modes in the
Amazon Elastic Compute Cloud User Guide.BootModeValues,
BootModeValuesImage.Builder tpmSupport(String tpmSupport)
If the image is configured for NitroTPM support, the value is v2.0. For more information, see NitroTPM in the Amazon
Elastic Compute Cloud User Guide.
tpmSupport - If the image is configured for NitroTPM support, the value is v2.0. For more information,
see NitroTPM in the
Amazon Elastic Compute Cloud User Guide.TpmSupportValues,
TpmSupportValuesImage.Builder tpmSupport(TpmSupportValues tpmSupport)
If the image is configured for NitroTPM support, the value is v2.0. For more information, see NitroTPM in the Amazon
Elastic Compute Cloud User Guide.
tpmSupport - If the image is configured for NitroTPM support, the value is v2.0. For more information,
see NitroTPM in the
Amazon Elastic Compute Cloud User Guide.TpmSupportValues,
TpmSupportValuesImage.Builder deprecationTime(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.Image.Builder imdsSupport(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 Elastic Compute Cloud 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 Elastic Compute Cloud User Guide.ImdsSupportValues,
ImdsSupportValuesImage.Builder imdsSupport(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 Elastic Compute Cloud 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 Elastic Compute Cloud User Guide.ImdsSupportValues,
ImdsSupportValuesImage.Builder publicLaunchPermissions(Boolean publicLaunchPermissions)
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.
publicLaunchPermissions - 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.Copyright © 2022. All rights reserved.