Class ContainerRecipeAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.alpha.ContainerRecipeAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ContainerRecipeAttributes>
- Enclosing interface:
ContainerRecipeAttributes
@Stability(Experimental)
public static final class ContainerRecipeAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<ContainerRecipeAttributes>
A builder for
ContainerRecipeAttributes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.containerRecipeArn(String containerRecipeArn) Sets the value ofContainerRecipeAttributes.getContainerRecipeArn()containerRecipeName(String containerRecipeName) Sets the value ofContainerRecipeAttributes.getContainerRecipeName()containerRecipeVersion(String containerRecipeVersion) Sets the value ofContainerRecipeAttributes.getContainerRecipeVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerRecipeArn
@Stability(Experimental) public ContainerRecipeAttributes.Builder containerRecipeArn(String containerRecipeArn) Sets the value ofContainerRecipeAttributes.getContainerRecipeArn()- Parameters:
containerRecipeArn- The ARN of the container recipe.- Returns:
this
-
containerRecipeName
@Stability(Experimental) public ContainerRecipeAttributes.Builder containerRecipeName(String containerRecipeName) Sets the value ofContainerRecipeAttributes.getContainerRecipeName()- Parameters:
containerRecipeName- The name of the container recipe.- Returns:
this
-
containerRecipeVersion
@Stability(Experimental) public ContainerRecipeAttributes.Builder containerRecipeVersion(String containerRecipeVersion) Sets the value ofContainerRecipeAttributes.getContainerRecipeVersion()- Parameters:
containerRecipeVersion- The version of the container recipe.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ContainerRecipeAttributes>- Returns:
- a new instance of
ContainerRecipeAttributes - Throws:
NullPointerException- if any required attribute was not provided
-