Class CfnLifecyclePolicy.ResourceSelectionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnLifecyclePolicy.ResourceSelectionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicy.ResourceSelectionProperty>
- Enclosing interface:
CfnLifecyclePolicy.ResourceSelectionProperty
@Stability(Stable)
public static final class CfnLifecyclePolicy.ResourceSelectionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicy.ResourceSelectionProperty>
A builder for
CfnLifecyclePolicy.ResourceSelectionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnLifecyclePolicy.ResourceSelectionProperty.getRecipes()
recipes
(IResolvable recipes) Sets the value ofCfnLifecyclePolicy.ResourceSelectionProperty.getRecipes()
Sets the value ofCfnLifecyclePolicy.ResourceSelectionProperty.getTagMap()
tagMap
(IResolvable tagMap) Sets the value ofCfnLifecyclePolicy.ResourceSelectionProperty.getTagMap()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
recipes
@Stability(Stable) public CfnLifecyclePolicy.ResourceSelectionProperty.Builder recipes(IResolvable recipes) Sets the value ofCfnLifecyclePolicy.ResourceSelectionProperty.getRecipes()
- Parameters:
recipes
- A list of recipes that are used as selection criteria for the output images that the lifecycle policy applies to.- Returns:
this
-
recipes
@Stability(Stable) public CfnLifecyclePolicy.ResourceSelectionProperty.Builder recipes(List<? extends Object> recipes) Sets the value ofCfnLifecyclePolicy.ResourceSelectionProperty.getRecipes()
- Parameters:
recipes
- A list of recipes that are used as selection criteria for the output images that the lifecycle policy applies to.- Returns:
this
-
tagMap
@Stability(Stable) public CfnLifecyclePolicy.ResourceSelectionProperty.Builder tagMap(IResolvable tagMap) Sets the value ofCfnLifecyclePolicy.ResourceSelectionProperty.getTagMap()
- Parameters:
tagMap
- A list of tags that are used as selection criteria for the Image Builder image resources that the lifecycle policy applies to.- Returns:
this
-
tagMap
@Stability(Stable) public CfnLifecyclePolicy.ResourceSelectionProperty.Builder tagMap(Map<String, String> tagMap) Sets the value ofCfnLifecyclePolicy.ResourceSelectionProperty.getTagMap()
- Parameters:
tagMap
- A list of tags that are used as selection criteria for the Image Builder image resources that the lifecycle policy applies to.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicy.ResourceSelectionProperty>
- Returns:
- a new instance of
CfnLifecyclePolicy.ResourceSelectionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-