Class CfnRuleProps.Builder
java.lang.Object
software.amazon.awscdk.services.rbin.CfnRuleProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleProps>
- Enclosing interface:
CfnRuleProps
@Stability(Stable)
public static final class CfnRuleProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleProps>
A builder for
CfnRuleProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnRuleProps.getDescription()excludeResourceTags(List<? extends Object> excludeResourceTags) Sets the value ofCfnRuleProps.getExcludeResourceTags()excludeResourceTags(IResolvable excludeResourceTags) Sets the value ofCfnRuleProps.getExcludeResourceTags()lockConfiguration(IResolvable lockConfiguration) Sets the value ofCfnRuleProps.getLockConfiguration()lockConfiguration(CfnRule.UnlockDelayProperty lockConfiguration) Sets the value ofCfnRuleProps.getLockConfiguration()resourceTags(List<? extends Object> resourceTags) Sets the value ofCfnRuleProps.getResourceTags()resourceTags(IResolvable resourceTags) Sets the value ofCfnRuleProps.getResourceTags()resourceType(String resourceType) Sets the value ofCfnRuleProps.getResourceType()retentionPeriod(IResolvable retentionPeriod) Sets the value ofCfnRuleProps.getRetentionPeriod()retentionPeriod(CfnRule.RetentionPeriodProperty retentionPeriod) Sets the value ofCfnRuleProps.getRetentionPeriod()Sets the value ofCfnRuleProps.getStatus()Sets the value ofCfnRuleProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
resourceType
Sets the value ofCfnRuleProps.getResourceType()- Parameters:
resourceType- The resource type retained by the retention rule. This parameter is required.- Returns:
this
-
retentionPeriod
Sets the value ofCfnRuleProps.getRetentionPeriod()- Parameters:
retentionPeriod- The retention period of the rule. This parameter is required.- Returns:
this
-
retentionPeriod
@Stability(Stable) public CfnRuleProps.Builder retentionPeriod(CfnRule.RetentionPeriodProperty retentionPeriod) Sets the value ofCfnRuleProps.getRetentionPeriod()- Parameters:
retentionPeriod- The retention period of the rule. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnRuleProps.getDescription()- Parameters:
description- The description of the retention rule.- Returns:
this
-
excludeResourceTags
Sets the value ofCfnRuleProps.getExcludeResourceTags()- Parameters:
excludeResourceTags- Information about the exclude resource tags used to identify resources that are excluded by the retention rule.- Returns:
this
-
excludeResourceTags
@Stability(Stable) public CfnRuleProps.Builder excludeResourceTags(List<? extends Object> excludeResourceTags) Sets the value ofCfnRuleProps.getExcludeResourceTags()- Parameters:
excludeResourceTags- Information about the exclude resource tags used to identify resources that are excluded by the retention rule.- Returns:
this
-
lockConfiguration
Sets the value ofCfnRuleProps.getLockConfiguration()- Parameters:
lockConfiguration- the value to be set.- Returns:
this
-
lockConfiguration
@Stability(Stable) public CfnRuleProps.Builder lockConfiguration(CfnRule.UnlockDelayProperty lockConfiguration) Sets the value ofCfnRuleProps.getLockConfiguration()- Parameters:
lockConfiguration- the value to be set.- Returns:
this
-
resourceTags
Sets the value ofCfnRuleProps.getResourceTags()- Parameters:
resourceTags- Information about the resource tags used to identify resources that are retained by the retention rule.- Returns:
this
-
resourceTags
Sets the value ofCfnRuleProps.getResourceTags()- Parameters:
resourceTags- Information about the resource tags used to identify resources that are retained by the retention rule.- Returns:
this
-
status
Sets the value ofCfnRuleProps.getStatus()- Parameters:
status- The state of the retention rule. Only retention rules that are in the available state retain resources.- Returns:
this
-
tags
Sets the value ofCfnRuleProps.getTags()- Parameters:
tags- Information about the tags assigned to the retention rule.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRuleProps>- Returns:
- a new instance of
CfnRuleProps - Throws:
NullPointerException- if any required attribute was not provided
-