Class CfnLifecyclePolicyPropsMixin.AmiExclusionRulesProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.imagebuilder.CfnLifecyclePolicyPropsMixin.AmiExclusionRulesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicyPropsMixin.AmiExclusionRulesProperty>
- Enclosing interface:
CfnLifecyclePolicyPropsMixin.AmiExclusionRulesProperty
@Stability(Stable)
public static final class CfnLifecyclePolicyPropsMixin.AmiExclusionRulesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicyPropsMixin.AmiExclusionRulesProperty>
A builder for
CfnLifecyclePolicyPropsMixin.AmiExclusionRulesProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnLifecyclePolicyPropsMixin.AmiExclusionRulesProperty.getIsPublic()isPublic(IResolvable isPublic) Sets the value ofCfnLifecyclePolicyPropsMixin.AmiExclusionRulesProperty.getIsPublic()Sets the value ofCfnLifecyclePolicyPropsMixin.AmiExclusionRulesProperty.getLastLaunched()lastLaunched(IResolvable lastLaunched) Sets the value ofCfnLifecyclePolicyPropsMixin.AmiExclusionRulesProperty.getLastLaunched()Sets the value ofCfnLifecyclePolicyPropsMixin.AmiExclusionRulesProperty.getRegions()sharedAccounts(List<String> sharedAccounts) Sets the value ofCfnLifecyclePolicyPropsMixin.AmiExclusionRulesProperty.getTagMap()tagMap(IResolvable tagMap) Sets the value ofCfnLifecyclePolicyPropsMixin.AmiExclusionRulesProperty.getTagMap()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
isPublic
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.AmiExclusionRulesProperty.Builder isPublic(Boolean isPublic) Sets the value ofCfnLifecyclePolicyPropsMixin.AmiExclusionRulesProperty.getIsPublic()- Parameters:
isPublic- Configures whether public AMIs are excluded from the lifecycle action.- Returns:
this
-
isPublic
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.AmiExclusionRulesProperty.Builder isPublic(IResolvable isPublic) Sets the value ofCfnLifecyclePolicyPropsMixin.AmiExclusionRulesProperty.getIsPublic()- Parameters:
isPublic- Configures whether public AMIs are excluded from the lifecycle action.- Returns:
this
-
lastLaunched
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.AmiExclusionRulesProperty.Builder lastLaunched(IResolvable lastLaunched) Sets the value ofCfnLifecyclePolicyPropsMixin.AmiExclusionRulesProperty.getLastLaunched()- Parameters:
lastLaunched- Specifies configuration details for Image Builder to exclude the most recent resources from lifecycle actions.- Returns:
this
-
lastLaunched
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.AmiExclusionRulesProperty.Builder lastLaunched(CfnLifecyclePolicyPropsMixin.LastLaunchedProperty lastLaunched) Sets the value ofCfnLifecyclePolicyPropsMixin.AmiExclusionRulesProperty.getLastLaunched()- Parameters:
lastLaunched- Specifies configuration details for Image Builder to exclude the most recent resources from lifecycle actions.- Returns:
this
-
regions
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.AmiExclusionRulesProperty.Builder regions(List<String> regions) Sets the value ofCfnLifecyclePolicyPropsMixin.AmiExclusionRulesProperty.getRegions()- Parameters:
regions- Configures AWS Region s that are excluded from the lifecycle action.- Returns:
this
-
tagMap
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.AmiExclusionRulesProperty.Builder tagMap(Map<String, String> tagMap) Sets the value ofCfnLifecyclePolicyPropsMixin.AmiExclusionRulesProperty.getTagMap()- Parameters:
tagMap- Lists tags that should be excluded from lifecycle actions for the AMIs that have them.- Returns:
this
-
tagMap
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.AmiExclusionRulesProperty.Builder tagMap(IResolvable tagMap) Sets the value ofCfnLifecyclePolicyPropsMixin.AmiExclusionRulesProperty.getTagMap()- Parameters:
tagMap- Lists tags that should be excluded from lifecycle actions for the AMIs that have them.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicyPropsMixin.AmiExclusionRulesProperty>- Returns:
- a new instance of
CfnLifecyclePolicyPropsMixin.AmiExclusionRulesProperty - Throws:
NullPointerException- if any required attribute was not provided
-