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