Class CfnLifecyclePolicy.IncludeResourcesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnLifecyclePolicy.IncludeResourcesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicy.IncludeResourcesProperty>
- Enclosing interface:
CfnLifecyclePolicy.IncludeResourcesProperty
@Stability(Stable)
public static final class CfnLifecyclePolicy.IncludeResourcesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicy.IncludeResourcesProperty>
A builder for
CfnLifecyclePolicy.IncludeResourcesProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnLifecyclePolicy.IncludeResourcesProperty.getAmis()amis(IResolvable amis) Sets the value ofCfnLifecyclePolicy.IncludeResourcesProperty.getAmis()build()Builds the configured instance.containers(Boolean containers) Sets the value ofCfnLifecyclePolicy.IncludeResourcesProperty.getContainers()containers(IResolvable containers) Sets the value ofCfnLifecyclePolicy.IncludeResourcesProperty.getContainers()Sets the value ofCfnLifecyclePolicy.IncludeResourcesProperty.getSnapshots()snapshots(IResolvable snapshots) Sets the value ofCfnLifecyclePolicy.IncludeResourcesProperty.getSnapshots()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
amis
Sets the value ofCfnLifecyclePolicy.IncludeResourcesProperty.getAmis()- Parameters:
amis- Specifies whether the lifecycle action should apply to distributed AMIs.- Returns:
this
-
amis
@Stability(Stable) public CfnLifecyclePolicy.IncludeResourcesProperty.Builder amis(IResolvable amis) Sets the value ofCfnLifecyclePolicy.IncludeResourcesProperty.getAmis()- Parameters:
amis- Specifies whether the lifecycle action should apply to distributed AMIs.- Returns:
this
-
containers
@Stability(Stable) public CfnLifecyclePolicy.IncludeResourcesProperty.Builder containers(Boolean containers) Sets the value ofCfnLifecyclePolicy.IncludeResourcesProperty.getContainers()- Parameters:
containers- Specifies whether the lifecycle action should apply to distributed containers.- Returns:
this
-
containers
@Stability(Stable) public CfnLifecyclePolicy.IncludeResourcesProperty.Builder containers(IResolvable containers) Sets the value ofCfnLifecyclePolicy.IncludeResourcesProperty.getContainers()- Parameters:
containers- Specifies whether the lifecycle action should apply to distributed containers.- Returns:
this
-
snapshots
@Stability(Stable) public CfnLifecyclePolicy.IncludeResourcesProperty.Builder snapshots(Boolean snapshots) Sets the value ofCfnLifecyclePolicy.IncludeResourcesProperty.getSnapshots()- Parameters:
snapshots- Specifies whether the lifecycle action should apply to snapshots associated with distributed AMIs.- Returns:
this
-
snapshots
@Stability(Stable) public CfnLifecyclePolicy.IncludeResourcesProperty.Builder snapshots(IResolvable snapshots) Sets the value ofCfnLifecyclePolicy.IncludeResourcesProperty.getSnapshots()- Parameters:
snapshots- Specifies whether the lifecycle action should apply to snapshots associated with distributed AMIs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicy.IncludeResourcesProperty>- Returns:
- a new instance of
CfnLifecyclePolicy.IncludeResourcesProperty - Throws:
NullPointerException- if any required attribute was not provided
-