Class CfnLifecyclePolicy.RecipeSelectionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnLifecyclePolicy.RecipeSelectionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicy.RecipeSelectionProperty>
- Enclosing interface:
CfnLifecyclePolicy.RecipeSelectionProperty
@Stability(Stable)
public static final class CfnLifecyclePolicy.RecipeSelectionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicy.RecipeSelectionProperty>
A builder for
CfnLifecyclePolicy.RecipeSelectionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnLifecyclePolicy.RecipeSelectionProperty.getName()semanticVersion(String semanticVersion) Sets the value ofCfnLifecyclePolicy.RecipeSelectionProperty.getSemanticVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnLifecyclePolicy.RecipeSelectionProperty.getName()- Parameters:
name- The name of an Image Builder recipe that the lifecycle policy uses for resource selection. This parameter is required.- Returns:
this
-
semanticVersion
@Stability(Stable) public CfnLifecyclePolicy.RecipeSelectionProperty.Builder semanticVersion(String semanticVersion) Sets the value ofCfnLifecyclePolicy.RecipeSelectionProperty.getSemanticVersion()- Parameters:
semanticVersion- The version of the Image Builder recipe specified by thenamefield. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicy.RecipeSelectionProperty>- Returns:
- a new instance of
CfnLifecyclePolicy.RecipeSelectionProperty - Throws:
NullPointerException- if any required attribute was not provided
-