Class CfnLifecyclePolicy.ActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnLifecyclePolicy.ActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicy.ActionProperty>
- Enclosing interface:
CfnLifecyclePolicy.ActionProperty
@Stability(Stable)
public static final class CfnLifecyclePolicy.ActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicy.ActionProperty>
A builder for
CfnLifecyclePolicy.ActionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.includeResources
(IResolvable includeResources) Sets the value ofCfnLifecyclePolicy.ActionProperty.getIncludeResources()
includeResources
(CfnLifecyclePolicy.IncludeResourcesProperty includeResources) Sets the value ofCfnLifecyclePolicy.ActionProperty.getIncludeResources()
Sets the value ofCfnLifecyclePolicy.ActionProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnLifecyclePolicy.ActionProperty.getType()
- Parameters:
type
- Specifies the lifecycle action to take. This parameter is required.- Returns:
this
-
includeResources
@Stability(Stable) public CfnLifecyclePolicy.ActionProperty.Builder includeResources(IResolvable includeResources) Sets the value ofCfnLifecyclePolicy.ActionProperty.getIncludeResources()
- Parameters:
includeResources
- Specifies the resources that the lifecycle policy applies to.- Returns:
this
-
includeResources
@Stability(Stable) public CfnLifecyclePolicy.ActionProperty.Builder includeResources(CfnLifecyclePolicy.IncludeResourcesProperty includeResources) Sets the value ofCfnLifecyclePolicy.ActionProperty.getIncludeResources()
- Parameters:
includeResources
- Specifies the resources that the lifecycle policy applies to.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicy.ActionProperty>
- Returns:
- a new instance of
CfnLifecyclePolicy.ActionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-