Interface GatingRule.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<GatingRule.Builder,
,GatingRule> SdkBuilder<GatingRule.Builder,
,GatingRule> SdkPojo
- Enclosing class:
GatingRule
-
Method Summary
Modifier and TypeMethodDescriptioncontrolPanelArn
(String controlPanelArn) The Amazon Resource Name (ARN) of the control panel.gatingControls
(String... gatingControls) An array of gating routing control Amazon Resource Names (ARNs).gatingControls
(Collection<String> gatingControls) An array of gating routing control Amazon Resource Names (ARNs).The name for the gating rule.The Amazon Web Services account ID of the gating rule owner.default GatingRule.Builder
ruleConfig
(Consumer<RuleConfig.Builder> ruleConfig) The criteria that you set for gating routing controls that designate how many of the routing control states must be ON to allow you to update target routing control states.ruleConfig
(RuleConfig ruleConfig) The criteria that you set for gating routing controls that designate how many of the routing control states must be ON to allow you to update target routing control states.safetyRuleArn
(String safetyRuleArn) The Amazon Resource Name (ARN) of the gating rule.The deployment status of a gating rule.The deployment status of a gating rule.targetControls
(String... 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.targetControls
(Collection<String> 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.waitPeriodMs
(Integer waitPeriodMs) An evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
controlPanelArn
The Amazon Resource Name (ARN) of the control panel.
- Parameters:
controlPanelArn
- The Amazon Resource Name (ARN) of the control panel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name for the gating rule. You can use any non-white space character in the name.
- Parameters:
name
- The name for the gating rule. You can use any non-white space character in the name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleConfig
The criteria that you set for gating routing controls that designate how many of the routing control states must be ON to allow you to update target routing control states.
- Parameters:
ruleConfig
- The criteria that you set for gating routing controls that designate how many of the routing control states must be ON to allow you to update target routing control states.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleConfig
The criteria that you set for gating routing controls that designate how many of the routing control states must be ON to allow you to update target routing control states.
This is a convenience method that creates an instance of theRuleConfig.Builder
avoiding the need to create one manually viaRuleConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toruleConfig(RuleConfig)
.- Parameters:
ruleConfig
- a consumer that will call methods onRuleConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
safetyRuleArn
The Amazon Resource Name (ARN) of the gating rule.
- Parameters:
safetyRuleArn
- The Amazon Resource Name (ARN) of the gating rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The deployment status of a gating rule. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.
- Parameters:
status
- The deployment status of a gating rule. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The deployment status of a gating rule. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.
- Parameters:
status
- The deployment status of a gating rule. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
owner
The Amazon Web Services account ID of the gating rule owner.
- Parameters:
owner
- The Amazon Web Services account ID of the gating rule owner.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-