Class CfnSafetyRulePropsMixin.AssertionRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.route53recoverycontrol.CfnSafetyRulePropsMixin.AssertionRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSafetyRulePropsMixin.AssertionRuleProperty>
- Enclosing interface:
CfnSafetyRulePropsMixin.AssertionRuleProperty
@Stability(Stable)
public static final class CfnSafetyRulePropsMixin.AssertionRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSafetyRulePropsMixin.AssertionRuleProperty>
A builder for
CfnSafetyRulePropsMixin.AssertionRuleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassertedControls(List<? extends Object> assertedControls) Sets the value ofCfnSafetyRulePropsMixin.AssertionRuleProperty.getAssertedControls()build()Builds the configured instance.waitPeriodMs(Number waitPeriodMs) Sets the value ofCfnSafetyRulePropsMixin.AssertionRuleProperty.getWaitPeriodMs()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
assertedControls
@Stability(Stable) public CfnSafetyRulePropsMixin.AssertionRuleProperty.Builder assertedControls(List<? extends Object> assertedControls) Sets the value ofCfnSafetyRulePropsMixin.AssertionRuleProperty.getAssertedControls()- Parameters:
assertedControls- The routing controls that are part of transactions that are evaluated to determine if a request to change a routing control state is allowed. For example, you might include three routing controls, one for each of three AWS Regions.- Returns:
this
-
waitPeriodMs
@Stability(Stable) public CfnSafetyRulePropsMixin.AssertionRuleProperty.Builder waitPeriodMs(Number waitPeriodMs) Sets the value ofCfnSafetyRulePropsMixin.AssertionRuleProperty.getWaitPeriodMs()- Parameters:
waitPeriodMs- An evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. This helps prevent flapping of state. The wait period is 5000 ms by default, but you can choose a custom value.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSafetyRulePropsMixin.AssertionRuleProperty>- Returns:
- a new instance of
CfnSafetyRulePropsMixin.AssertionRuleProperty - Throws:
NullPointerException- if any required attribute was not provided
-