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