Class CfnImageRecipe.LatestVersionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnImageRecipe.LatestVersionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnImageRecipe.LatestVersionProperty>
- Enclosing interface:
CfnImageRecipe.LatestVersionProperty
@Stability(Stable)
public static final class CfnImageRecipe.LatestVersionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnImageRecipe.LatestVersionProperty>
A builder for
CfnImageRecipe.LatestVersionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnImageRecipe.LatestVersionProperty.getArn()build()Builds the configured instance.Sets the value ofCfnImageRecipe.LatestVersionProperty.getMajor()Sets the value ofCfnImageRecipe.LatestVersionProperty.getMinor()Sets the value ofCfnImageRecipe.LatestVersionProperty.getPatch()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arn
Sets the value ofCfnImageRecipe.LatestVersionProperty.getArn()- Parameters:
arn- The Amazon Resource Name (ARN) of the image recipe.- Returns:
this
-
major
Sets the value ofCfnImageRecipe.LatestVersionProperty.getMajor()- Parameters:
major- The latest version ARN of the created image recipe, with the same major version.- Returns:
this
-
minor
Sets the value ofCfnImageRecipe.LatestVersionProperty.getMinor()- Parameters:
minor- The latest version ARN of the created image recipe, with the same minor version.- Returns:
this
-
patch
Sets the value ofCfnImageRecipe.LatestVersionProperty.getPatch()- Parameters:
patch- The latest version ARN of the created image recipe, with the same patch version.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnImageRecipe.LatestVersionProperty>- Returns:
- a new instance of
CfnImageRecipe.LatestVersionProperty - Throws:
NullPointerException- if any required attribute was not provided
-