Class CfnReplicationConfigurationTemplatePropsMixin.PITPolicyRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.drs.CfnReplicationConfigurationTemplatePropsMixin.PITPolicyRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnReplicationConfigurationTemplatePropsMixin.PITPolicyRuleProperty>
- Enclosing interface:
CfnReplicationConfigurationTemplatePropsMixin.PITPolicyRuleProperty
@Stability(Stable)
public static final class CfnReplicationConfigurationTemplatePropsMixin.PITPolicyRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnReplicationConfigurationTemplatePropsMixin.PITPolicyRuleProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.enabled(IResolvable enabled) retentionDuration(Number retentionDuration)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnReplicationConfigurationTemplatePropsMixin.PITPolicyRuleProperty.Builder enabled(Boolean enabled) - Parameters:
enabled- Whether this rule is enabled or not.- Returns:
this
-
enabled
@Stability(Stable) public CfnReplicationConfigurationTemplatePropsMixin.PITPolicyRuleProperty.Builder enabled(IResolvable enabled) - Parameters:
enabled- Whether this rule is enabled or not.- Returns:
this
-
interval
@Stability(Stable) public CfnReplicationConfigurationTemplatePropsMixin.PITPolicyRuleProperty.Builder interval(Number interval) - Parameters:
interval- How often, in the chosen units, a snapshot should be taken.- Returns:
this
-
retentionDuration
@Stability(Stable) public CfnReplicationConfigurationTemplatePropsMixin.PITPolicyRuleProperty.Builder retentionDuration(Number retentionDuration) Sets the value ofCfnReplicationConfigurationTemplatePropsMixin.PITPolicyRuleProperty.getRetentionDuration()- Parameters:
retentionDuration- The duration to retain a snapshot for, in the chosen units.- Returns:
this
-
ruleId
@Stability(Stable) public CfnReplicationConfigurationTemplatePropsMixin.PITPolicyRuleProperty.Builder ruleId(Number ruleId) - Parameters:
ruleId- The ID of the rule.- Returns:
this
-
units
@Stability(Stable) public CfnReplicationConfigurationTemplatePropsMixin.PITPolicyRuleProperty.Builder units(String units) - Parameters:
units- The units used to measure the interval and retentionDuration.- Returns:
this
-
build
@Stability(Stable) public CfnReplicationConfigurationTemplatePropsMixin.PITPolicyRuleProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnReplicationConfigurationTemplatePropsMixin.PITPolicyRuleProperty>- Returns:
- a new instance of
CfnReplicationConfigurationTemplatePropsMixin.PITPolicyRuleProperty - Throws:
NullPointerException- if any required attribute was not provided
-