Class CfnSafetyRulePropsMixin.GatingRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.route53recoverycontrol.CfnSafetyRulePropsMixin.GatingRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSafetyRulePropsMixin.GatingRuleProperty>
- Enclosing interface:
CfnSafetyRulePropsMixin.GatingRuleProperty
@Stability(Stable)
public static final class CfnSafetyRulePropsMixin.GatingRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSafetyRulePropsMixin.GatingRuleProperty>
A builder for
CfnSafetyRulePropsMixin.GatingRuleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.gatingControls(List<String> gatingControls) Sets the value ofCfnSafetyRulePropsMixin.GatingRuleProperty.getGatingControls()targetControls(List<String> targetControls) Sets the value ofCfnSafetyRulePropsMixin.GatingRuleProperty.getTargetControls()waitPeriodMs(Number waitPeriodMs) Sets the value ofCfnSafetyRulePropsMixin.GatingRuleProperty.getWaitPeriodMs()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
gatingControls
@Stability(Stable) public CfnSafetyRulePropsMixin.GatingRuleProperty.Builder gatingControls(List<String> gatingControls) Sets the value ofCfnSafetyRulePropsMixin.GatingRuleProperty.getGatingControls()- Parameters:
gatingControls- An array of gating routing control Amazon Resource Names (ARNs). For a simple on-off switch, specify the ARN for one routing control. The gating routing controls are evaluated by the rule configuration that you specify to determine if the target routing control states can be changed.- Returns:
this
-
targetControls
@Stability(Stable) public CfnSafetyRulePropsMixin.GatingRuleProperty.Builder targetControls(List<String> targetControls) Sets the value ofCfnSafetyRulePropsMixin.GatingRuleProperty.getTargetControls()- Parameters:
targetControls- An array of target routing control Amazon Resource Names (ARNs) for which the states can only be updated if the rule configuration that you specify evaluates to true for the gating routing control. As a simple example, if you have a single gating control, it acts as an overall on-off switch for a set of target routing controls. You can use this to manually override automated failover, for example.- Returns:
this
-
waitPeriodMs
@Stability(Stable) public CfnSafetyRulePropsMixin.GatingRuleProperty.Builder waitPeriodMs(Number waitPeriodMs) Sets the value ofCfnSafetyRulePropsMixin.GatingRuleProperty.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.GatingRuleProperty>- Returns:
- a new instance of
CfnSafetyRulePropsMixin.GatingRuleProperty - Throws:
NullPointerException- if any required attribute was not provided
-