Class CfnContainerRecipeMixinProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.imagebuilder.mixins.CfnContainerRecipeMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContainerRecipeMixinProps>
- Enclosing interface:
CfnContainerRecipeMixinProps
@Stability(Stable)
public static final class CfnContainerRecipeMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContainerRecipeMixinProps>
A builder for
CfnContainerRecipeMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.components(List<? extends Object> components) Sets the value ofCfnContainerRecipeMixinProps.getComponents()components(IResolvable components) Sets the value ofCfnContainerRecipeMixinProps.getComponents()containerType(String containerType) Sets the value ofCfnContainerRecipeMixinProps.getContainerType()description(String description) Sets the value ofCfnContainerRecipeMixinProps.getDescription()dockerfileTemplateData(String dockerfileTemplateData) Sets the value ofCfnContainerRecipeMixinProps.getDockerfileTemplateData()dockerfileTemplateUri(String dockerfileTemplateUri) Sets the value ofCfnContainerRecipeMixinProps.getDockerfileTemplateUri()imageOsVersionOverride(String imageOsVersionOverride) Sets the value ofCfnContainerRecipeMixinProps.getImageOsVersionOverride()instanceConfiguration(IResolvable instanceConfiguration) Sets the value ofCfnContainerRecipeMixinProps.getInstanceConfiguration()instanceConfiguration(CfnContainerRecipePropsMixin.InstanceConfigurationProperty instanceConfiguration) Sets the value ofCfnContainerRecipeMixinProps.getInstanceConfiguration()Sets the value ofCfnContainerRecipeMixinProps.getKmsKeyId()Sets the value ofCfnContainerRecipeMixinProps.getName()parentImage(String parentImage) Sets the value ofCfnContainerRecipeMixinProps.getParentImage()platformOverride(String platformOverride) Sets the value ofCfnContainerRecipeMixinProps.getPlatformOverride()Sets the value ofCfnContainerRecipeMixinProps.getTags()targetRepository(IResolvable targetRepository) Sets the value ofCfnContainerRecipeMixinProps.getTargetRepository()Sets the value ofCfnContainerRecipeMixinProps.getTargetRepository()Sets the value ofCfnContainerRecipeMixinProps.getVersion()workingDirectory(String workingDirectory) Sets the value ofCfnContainerRecipeMixinProps.getWorkingDirectory()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
components
Sets the value ofCfnContainerRecipeMixinProps.getComponents()- Parameters:
components- Build and test components that are included in the container recipe. Recipes require a minimum of one build component, and can have a maximum of 20 build and test components in any combination.- Returns:
this
-
components
@Stability(Stable) public CfnContainerRecipeMixinProps.Builder components(List<? extends Object> components) Sets the value ofCfnContainerRecipeMixinProps.getComponents()- Parameters:
components- Build and test components that are included in the container recipe. Recipes require a minimum of one build component, and can have a maximum of 20 build and test components in any combination.- Returns:
this
-
containerType
Sets the value ofCfnContainerRecipeMixinProps.getContainerType()- Parameters:
containerType- Specifies the type of container, such as Docker.- Returns:
this
-
description
Sets the value ofCfnContainerRecipeMixinProps.getDescription()- Parameters:
description- The description of the container recipe.- Returns:
this
-
dockerfileTemplateData
@Stability(Stable) public CfnContainerRecipeMixinProps.Builder dockerfileTemplateData(String dockerfileTemplateData) Sets the value ofCfnContainerRecipeMixinProps.getDockerfileTemplateData()- Parameters:
dockerfileTemplateData- Dockerfiles are text documents that are used to build Docker containers, and ensure that they contain all of the elements required by the application running inside. The template data consists of contextual variables where Image Builder places build information or scripts, based on your container image recipe.- Returns:
this
-
dockerfileTemplateUri
@Stability(Stable) public CfnContainerRecipeMixinProps.Builder dockerfileTemplateUri(String dockerfileTemplateUri) Sets the value ofCfnContainerRecipeMixinProps.getDockerfileTemplateUri()- Parameters:
dockerfileTemplateUri- The S3 URI for the Dockerfile that will be used to build your container image.- Returns:
this
-
imageOsVersionOverride
@Stability(Stable) public CfnContainerRecipeMixinProps.Builder imageOsVersionOverride(String imageOsVersionOverride) Sets the value ofCfnContainerRecipeMixinProps.getImageOsVersionOverride()- Parameters:
imageOsVersionOverride- Specifies the operating system version for the base image.- Returns:
this
-
instanceConfiguration
@Stability(Stable) public CfnContainerRecipeMixinProps.Builder instanceConfiguration(IResolvable instanceConfiguration) Sets the value ofCfnContainerRecipeMixinProps.getInstanceConfiguration()- Parameters:
instanceConfiguration- A group of options that can be used to configure an instance for building and testing container images.- Returns:
this
-
instanceConfiguration
@Stability(Stable) public CfnContainerRecipeMixinProps.Builder instanceConfiguration(CfnContainerRecipePropsMixin.InstanceConfigurationProperty instanceConfiguration) Sets the value ofCfnContainerRecipeMixinProps.getInstanceConfiguration()- Parameters:
instanceConfiguration- A group of options that can be used to configure an instance for building and testing container images.- Returns:
this
-
kmsKeyId
Sets the value ofCfnContainerRecipeMixinProps.getKmsKeyId()- Parameters:
kmsKeyId- The Amazon Resource Name (ARN) that uniquely identifies which KMS key is used to encrypt the container image for distribution to the target Region. This can be either the Key ARN or the Alias ARN. For more information, see Key identifiers (KeyId) in the AWS Key Management Service Developer Guide .- Returns:
this
-
name
Sets the value ofCfnContainerRecipeMixinProps.getName()- Parameters:
name- The name of the container recipe.- Returns:
this
-
parentImage
Sets the value ofCfnContainerRecipeMixinProps.getParentImage()- Parameters:
parentImage- The base image for customizations specified in the container recipe. This can contain an Image Builder image resource ARN or a container image URI, for exampleamazonlinux:latest.- Returns:
this
-
platformOverride
@Stability(Stable) public CfnContainerRecipeMixinProps.Builder platformOverride(String platformOverride) Sets the value ofCfnContainerRecipeMixinProps.getPlatformOverride()- Parameters:
platformOverride- Specifies the operating system platform when you use a custom base image.- Returns:
this
-
tags
Sets the value ofCfnContainerRecipeMixinProps.getTags()- Parameters:
tags- Tags that are attached to the container recipe.- Returns:
this
-
targetRepository
@Stability(Stable) public CfnContainerRecipeMixinProps.Builder targetRepository(IResolvable targetRepository) Sets the value ofCfnContainerRecipeMixinProps.getTargetRepository()- Parameters:
targetRepository- The destination repository for the container image.- Returns:
this
-
targetRepository
@Stability(Stable) public CfnContainerRecipeMixinProps.Builder targetRepository(CfnContainerRecipePropsMixin.TargetContainerRepositoryProperty targetRepository) Sets the value ofCfnContainerRecipeMixinProps.getTargetRepository()- Parameters:
targetRepository- The destination repository for the container image.- Returns:
this
-
version
Sets the value ofCfnContainerRecipeMixinProps.getVersion()- Parameters:
version- The semantic version of the container recipe. This version follows the semantic version syntax.The semantic version has four nodes:
. . / . You can assign values for the first three, and can filter on all of them. Assignment: For the first three nodes you can assign any positive integer value, including zero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the build number to the fourth node.
Patterns: You can use any numeric pattern that adheres to the assignment requirements for the nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or a date, such as 2021.01.01.
- Returns:
this
-
workingDirectory
@Stability(Stable) public CfnContainerRecipeMixinProps.Builder workingDirectory(String workingDirectory) Sets the value ofCfnContainerRecipeMixinProps.getWorkingDirectory()- Parameters:
workingDirectory- The working directory for use during build and test workflows.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnContainerRecipeMixinProps>- Returns:
- a new instance of
CfnContainerRecipeMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-