Class LifecyclePolicyResourceSelection.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.alpha.LifecyclePolicyResourceSelection.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LifecyclePolicyResourceSelection>
- Enclosing interface:
LifecyclePolicyResourceSelection
@Stability(Experimental)
public static final class LifecyclePolicyResourceSelection.Builder
extends Object
implements software.amazon.jsii.Builder<LifecyclePolicyResourceSelection>
A builder for
LifecyclePolicyResourceSelection-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.recipes(List<? extends IRecipeBase> recipes) Sets the value ofLifecyclePolicyResourceSelection.getRecipes()Sets the value ofLifecyclePolicyResourceSelection.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
recipes
@Stability(Experimental) public LifecyclePolicyResourceSelection.Builder recipes(List<? extends IRecipeBase> recipes) Sets the value ofLifecyclePolicyResourceSelection.getRecipes()- Parameters:
recipes- The list of image recipes or container recipes to apply the lifecycle policy to.- Returns:
this
-
tags
@Stability(Experimental) public LifecyclePolicyResourceSelection.Builder tags(Map<String, String> tags) Sets the value ofLifecyclePolicyResourceSelection.getTags()- Parameters:
tags- Selects EC2 Image Builder images containing any of the provided tags.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LifecyclePolicyResourceSelection>- Returns:
- a new instance of
LifecyclePolicyResourceSelection - Throws:
NullPointerException- if any required attribute was not provided
-