Interface LifecyclePolicyResourceSelection.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<LifecyclePolicyResourceSelection.Builder,
,LifecyclePolicyResourceSelection> SdkBuilder<LifecyclePolicyResourceSelection.Builder,
,LifecyclePolicyResourceSelection> SdkPojo
- Enclosing class:
LifecyclePolicyResourceSelection
public static interface LifecyclePolicyResourceSelection.Builder
extends SdkPojo, CopyableBuilder<LifecyclePolicyResourceSelection.Builder,LifecyclePolicyResourceSelection>
-
Method Summary
Modifier and TypeMethodDescriptionA list of recipes that are used as selection criteria for the output images that the lifecycle policy applies to.A list of recipes that are used as selection criteria for the output images that the lifecycle policy applies to.recipes
(LifecyclePolicyResourceSelectionRecipe... recipes) A list of recipes that are used as selection criteria for the output images that the lifecycle policy applies to.A list of tags that are used as selection criteria for the Image Builder image resources that the lifecycle policy applies to.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
recipes
LifecyclePolicyResourceSelection.Builder recipes(Collection<LifecyclePolicyResourceSelectionRecipe> recipes) A list of recipes that are used as selection criteria for the output images that the lifecycle policy applies to.
- Parameters:
recipes
- A list of recipes that are used as selection criteria for the output images that the lifecycle policy applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recipes
A list of recipes that are used as selection criteria for the output images that the lifecycle policy applies to.
- Parameters:
recipes
- A list of recipes that are used as selection criteria for the output images that the lifecycle policy applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recipes
LifecyclePolicyResourceSelection.Builder recipes(Consumer<LifecyclePolicyResourceSelectionRecipe.Builder>... recipes) A list of recipes that are used as selection criteria for the output images that the lifecycle policy applies to.
This is a convenience method that creates an instance of theLifecyclePolicyResourceSelectionRecipe.Builder
avoiding the need to create one manually viaLifecyclePolicyResourceSelectionRecipe.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torecipes(List<LifecyclePolicyResourceSelectionRecipe>)
.- Parameters:
recipes
- a consumer that will call methods onLifecyclePolicyResourceSelectionRecipe.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tagMap
A list of tags that are used as selection criteria for the Image Builder image resources that the lifecycle policy applies to.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-