Class CfnLifecyclePolicy.PolicyDetailProperty.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnLifecyclePolicy.PolicyDetailProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicy.PolicyDetailProperty>
- Enclosing interface:
CfnLifecyclePolicy.PolicyDetailProperty
@Stability(Stable)
public static final class CfnLifecyclePolicy.PolicyDetailProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicy.PolicyDetailProperty>
A builder for
CfnLifecyclePolicy.PolicyDetailProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaction
(IResolvable action) Sets the value ofCfnLifecyclePolicy.PolicyDetailProperty.getAction()
Sets the value ofCfnLifecyclePolicy.PolicyDetailProperty.getAction()
build()
Builds the configured instance.exclusionRules
(IResolvable exclusionRules) Sets the value ofCfnLifecyclePolicy.PolicyDetailProperty.getExclusionRules()
exclusionRules
(CfnLifecyclePolicy.ExclusionRulesProperty exclusionRules) Sets the value ofCfnLifecyclePolicy.PolicyDetailProperty.getExclusionRules()
filter
(IResolvable filter) Sets the value ofCfnLifecyclePolicy.PolicyDetailProperty.getFilter()
Sets the value ofCfnLifecyclePolicy.PolicyDetailProperty.getFilter()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
action
@Stability(Stable) public CfnLifecyclePolicy.PolicyDetailProperty.Builder action(IResolvable action) Sets the value ofCfnLifecyclePolicy.PolicyDetailProperty.getAction()
- Parameters:
action
- Configuration details for the policy action. This parameter is required.- Returns:
this
-
action
@Stability(Stable) public CfnLifecyclePolicy.PolicyDetailProperty.Builder action(CfnLifecyclePolicy.ActionProperty action) Sets the value ofCfnLifecyclePolicy.PolicyDetailProperty.getAction()
- Parameters:
action
- Configuration details for the policy action. This parameter is required.- Returns:
this
-
filter
@Stability(Stable) public CfnLifecyclePolicy.PolicyDetailProperty.Builder filter(IResolvable filter) Sets the value ofCfnLifecyclePolicy.PolicyDetailProperty.getFilter()
- Parameters:
filter
- Specifies the resources that the lifecycle policy applies to. This parameter is required.- Returns:
this
-
filter
@Stability(Stable) public CfnLifecyclePolicy.PolicyDetailProperty.Builder filter(CfnLifecyclePolicy.FilterProperty filter) Sets the value ofCfnLifecyclePolicy.PolicyDetailProperty.getFilter()
- Parameters:
filter
- Specifies the resources that the lifecycle policy applies to. This parameter is required.- Returns:
this
-
exclusionRules
@Stability(Stable) public CfnLifecyclePolicy.PolicyDetailProperty.Builder exclusionRules(IResolvable exclusionRules) Sets the value ofCfnLifecyclePolicy.PolicyDetailProperty.getExclusionRules()
- Parameters:
exclusionRules
- Additional rules to specify resources that should be exempt from policy actions.- Returns:
this
-
exclusionRules
@Stability(Stable) public CfnLifecyclePolicy.PolicyDetailProperty.Builder exclusionRules(CfnLifecyclePolicy.ExclusionRulesProperty exclusionRules) Sets the value ofCfnLifecyclePolicy.PolicyDetailProperty.getExclusionRules()
- Parameters:
exclusionRules
- Additional rules to specify resources that should be exempt from policy actions.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicy.PolicyDetailProperty>
- Returns:
- a new instance of
CfnLifecyclePolicy.PolicyDetailProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-