public static interface Image.Builder extends SdkPojo, CopyableBuilder<Image.Builder,Image>
Modifier and Type | Method and Description |
---|---|
Image.Builder |
arn(String arn)
The Amazon Resource Name (ARN) of the image.
|
default Image.Builder |
containerRecipe(Consumer<ContainerRecipe.Builder> containerRecipe)
The container recipe used to create the container image type.
|
Image.Builder |
containerRecipe(ContainerRecipe containerRecipe)
The container recipe used to create the container image type.
|
Image.Builder |
dateCreated(String dateCreated)
The date on which this image was created.
|
default Image.Builder |
distributionConfiguration(Consumer<DistributionConfiguration.Builder> distributionConfiguration)
The distribution configuration used when creating this image.
|
Image.Builder |
distributionConfiguration(DistributionConfiguration distributionConfiguration)
The distribution configuration used when creating this image.
|
Image.Builder |
enhancedImageMetadataEnabled(Boolean enhancedImageMetadataEnabled)
Collects additional information about the image being created, including the operating system (OS) version
and package list.
|
default Image.Builder |
imageRecipe(Consumer<ImageRecipe.Builder> imageRecipe)
The image recipe used when creating the image.
|
Image.Builder |
imageRecipe(ImageRecipe imageRecipe)
The image recipe used when creating the image.
|
default Image.Builder |
imageTestsConfiguration(Consumer<ImageTestsConfiguration.Builder> imageTestsConfiguration)
The image tests configuration used when creating this image.
|
Image.Builder |
imageTestsConfiguration(ImageTestsConfiguration imageTestsConfiguration)
The image tests configuration used when creating this image.
|
default Image.Builder |
infrastructureConfiguration(Consumer<InfrastructureConfiguration.Builder> infrastructureConfiguration)
The infrastructure used when creating this image.
|
Image.Builder |
infrastructureConfiguration(InfrastructureConfiguration infrastructureConfiguration)
The infrastructure used when creating this image.
|
Image.Builder |
name(String name)
The name of the image.
|
Image.Builder |
osVersion(String osVersion)
The operating system version of the instance.
|
default Image.Builder |
outputResources(Consumer<OutputResources.Builder> outputResources)
The output resources produced when creating this image.
|
Image.Builder |
outputResources(OutputResources outputResources)
The output resources produced when creating this image.
|
Image.Builder |
platform(Platform platform)
The platform of the image.
|
Image.Builder |
platform(String platform)
The platform of the image.
|
Image.Builder |
sourcePipelineArn(String sourcePipelineArn)
The Amazon Resource Name (ARN) of the image pipeline that created this image.
|
Image.Builder |
sourcePipelineName(String sourcePipelineName)
The name of the image pipeline that created this image.
|
default Image.Builder |
state(Consumer<ImageState.Builder> state)
The state of the image.
|
Image.Builder |
state(ImageState state)
The state of the image.
|
Image.Builder |
tags(Map<String,String> tags)
The tags of the image.
|
Image.Builder |
type(ImageType type)
Specifies whether this is an AMI or container image.
|
Image.Builder |
type(String type)
Specifies whether this is an AMI or container image.
|
Image.Builder |
version(String version)
The semantic version of the image.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
Image.Builder arn(String arn)
The Amazon Resource Name (ARN) of the image.
arn
- The Amazon Resource Name (ARN) of the image.Image.Builder type(String type)
Specifies whether this is an AMI or container image.
Image.Builder type(ImageType type)
Specifies whether this is an AMI or container image.
Image.Builder name(String name)
The name of the image.
name
- The name of the image.Image.Builder version(String version)
The semantic version of the image.
version
- The semantic version of the image.Image.Builder platform(String platform)
The platform of the image.
Image.Builder platform(Platform platform)
The platform of the image.
Image.Builder enhancedImageMetadataEnabled(Boolean enhancedImageMetadataEnabled)
Collects additional information about the image being created, including the operating system (OS) version and package list. This information is used to enhance the overall experience of using EC2 Image Builder. Enabled by default.
enhancedImageMetadataEnabled
- Collects additional information about the image being created, including the operating system (OS)
version and package list. This information is used to enhance the overall experience of using EC2
Image Builder. Enabled by default.Image.Builder osVersion(String osVersion)
The operating system version of the instance. For example, Amazon Linux 2, Ubuntu 18, or Microsoft Windows Server 2019.
osVersion
- The operating system version of the instance. For example, Amazon Linux 2, Ubuntu 18, or Microsoft
Windows Server 2019.Image.Builder state(ImageState state)
The state of the image.
state
- The state of the image.default Image.Builder state(Consumer<ImageState.Builder> state)
The state of the image.
This is a convenience that creates an instance of theImageState.Builder
avoiding the need to create
one manually via ImageState.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to state(ImageState)
.state
- a consumer that will call methods on ImageState.Builder
state(ImageState)
Image.Builder imageRecipe(ImageRecipe imageRecipe)
The image recipe used when creating the image.
imageRecipe
- The image recipe used when creating the image.default Image.Builder imageRecipe(Consumer<ImageRecipe.Builder> imageRecipe)
The image recipe used when creating the image.
This is a convenience that creates an instance of theImageRecipe.Builder
avoiding the need to create
one manually via ImageRecipe.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to imageRecipe(ImageRecipe)
.imageRecipe
- a consumer that will call methods on ImageRecipe.Builder
imageRecipe(ImageRecipe)
Image.Builder containerRecipe(ContainerRecipe containerRecipe)
The container recipe used to create the container image type.
containerRecipe
- The container recipe used to create the container image type.default Image.Builder containerRecipe(Consumer<ContainerRecipe.Builder> containerRecipe)
The container recipe used to create the container image type.
This is a convenience that creates an instance of theContainerRecipe.Builder
avoiding the need to
create one manually via ContainerRecipe.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to containerRecipe(ContainerRecipe)
.containerRecipe
- a consumer that will call methods on ContainerRecipe.Builder
containerRecipe(ContainerRecipe)
Image.Builder sourcePipelineName(String sourcePipelineName)
The name of the image pipeline that created this image.
sourcePipelineName
- The name of the image pipeline that created this image.Image.Builder sourcePipelineArn(String sourcePipelineArn)
The Amazon Resource Name (ARN) of the image pipeline that created this image.
sourcePipelineArn
- The Amazon Resource Name (ARN) of the image pipeline that created this image.Image.Builder infrastructureConfiguration(InfrastructureConfiguration infrastructureConfiguration)
The infrastructure used when creating this image.
infrastructureConfiguration
- The infrastructure used when creating this image.default Image.Builder infrastructureConfiguration(Consumer<InfrastructureConfiguration.Builder> infrastructureConfiguration)
The infrastructure used when creating this image.
This is a convenience that creates an instance of theInfrastructureConfiguration.Builder
avoiding
the need to create one manually via InfrastructureConfiguration.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to infrastructureConfiguration(InfrastructureConfiguration)
.infrastructureConfiguration
- a consumer that will call methods on InfrastructureConfiguration.Builder
infrastructureConfiguration(InfrastructureConfiguration)
Image.Builder distributionConfiguration(DistributionConfiguration distributionConfiguration)
The distribution configuration used when creating this image.
distributionConfiguration
- The distribution configuration used when creating this image.default Image.Builder distributionConfiguration(Consumer<DistributionConfiguration.Builder> distributionConfiguration)
The distribution configuration used when creating this image.
This is a convenience that creates an instance of theDistributionConfiguration.Builder
avoiding the
need to create one manually via DistributionConfiguration.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to distributionConfiguration(DistributionConfiguration)
.distributionConfiguration
- a consumer that will call methods on DistributionConfiguration.Builder
distributionConfiguration(DistributionConfiguration)
Image.Builder imageTestsConfiguration(ImageTestsConfiguration imageTestsConfiguration)
The image tests configuration used when creating this image.
imageTestsConfiguration
- The image tests configuration used when creating this image.default Image.Builder imageTestsConfiguration(Consumer<ImageTestsConfiguration.Builder> imageTestsConfiguration)
The image tests configuration used when creating this image.
This is a convenience that creates an instance of theImageTestsConfiguration.Builder
avoiding the
need to create one manually via ImageTestsConfiguration.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to imageTestsConfiguration(ImageTestsConfiguration)
.imageTestsConfiguration
- a consumer that will call methods on ImageTestsConfiguration.Builder
imageTestsConfiguration(ImageTestsConfiguration)
Image.Builder dateCreated(String dateCreated)
The date on which this image was created.
dateCreated
- The date on which this image was created.Image.Builder outputResources(OutputResources outputResources)
The output resources produced when creating this image.
outputResources
- The output resources produced when creating this image.default Image.Builder outputResources(Consumer<OutputResources.Builder> outputResources)
The output resources produced when creating this image.
This is a convenience that creates an instance of theOutputResources.Builder
avoiding the need to
create one manually via OutputResources.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to outputResources(OutputResources)
.outputResources
- a consumer that will call methods on OutputResources.Builder
outputResources(OutputResources)
Image.Builder tags(Map<String,String> tags)
The tags of the image.
tags
- The tags of the image.