Class LifecyclePolicyAction.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.alpha.LifecyclePolicyAction.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LifecyclePolicyAction>
- Enclosing interface:
LifecyclePolicyAction
@Stability(Experimental)
public static final class LifecyclePolicyAction.Builder
extends Object
implements software.amazon.jsii.Builder<LifecyclePolicyAction>
A builder for
LifecyclePolicyAction-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.includeAmis(Boolean includeAmis) Sets the value ofLifecyclePolicyAction.getIncludeAmis()includeContainers(Boolean includeContainers) Sets the value ofLifecyclePolicyAction.getIncludeContainers()includeSnapshots(Boolean includeSnapshots) Sets the value ofLifecyclePolicyAction.getIncludeSnapshots()Sets the value ofLifecyclePolicyAction.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofLifecyclePolicyAction.getType()- Parameters:
type- The action to perform on the resources selected in the lifecycle policy rule. This parameter is required.- Returns:
this
-
includeAmis
Sets the value ofLifecyclePolicyAction.getIncludeAmis()- Parameters:
includeAmis- Whether to include AMIs in the scope of the lifecycle rule.- Returns:
this
-
includeContainers
@Stability(Experimental) public LifecyclePolicyAction.Builder includeContainers(Boolean includeContainers) Sets the value ofLifecyclePolicyAction.getIncludeContainers()- Parameters:
includeContainers- Whether to include containers in the scope of the lifecycle rule.- Returns:
this
-
includeSnapshots
@Stability(Experimental) public LifecyclePolicyAction.Builder includeSnapshots(Boolean includeSnapshots) Sets the value ofLifecyclePolicyAction.getIncludeSnapshots()- Parameters:
includeSnapshots- Whether to include snapshots in the scope of the lifecycle rule.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LifecyclePolicyAction>- Returns:
- a new instance of
LifecyclePolicyAction - Throws:
NullPointerException- if any required attribute was not provided
-