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