Interface Rule.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Rule.Builder,
,Rule> SdkBuilder<Rule.Builder,
,Rule> SdkPojo
- Enclosing class:
Rule
-
Method Summary
Modifier and TypeMethodDescriptiondefault Rule.Builder
assertion
(Consumer<AssertionRule.Builder> assertion) An assertion rule enforces that, when a routing control state is changed, the criteria set by the rule configuration is met.assertion
(AssertionRule assertion) An assertion rule enforces that, when a routing control state is changed, the criteria set by the rule configuration is met.default Rule.Builder
gating
(Consumer<GatingRule.Builder> gating) A gating rule verifies that a gating routing control or set of gating routing controls, evaluates as true, based on a rule configuration that you specify, which allows a set of routing control state changes to complete.gating
(GatingRule gating) A gating rule verifies that a gating routing control or set of gating routing controls, evaluates as true, based on a rule configuration that you specify, which allows a set of routing control state changes to complete.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
-
assertion
An assertion rule enforces that, when a routing control state is changed, the criteria set by the rule configuration is met. Otherwise, the change to the routing control state is not accepted. For example, the criteria might be that at least one routing control state is On after the transaction so that traffic continues to flow to at least one cell for the application. This ensures that you avoid a fail-open scenario.
- Parameters:
assertion
- An assertion rule enforces that, when a routing control state is changed, the criteria set by the rule configuration is met. Otherwise, the change to the routing control state is not accepted. For example, the criteria might be that at least one routing control state is On after the transaction so that traffic continues to flow to at least one cell for the application. This ensures that you avoid a fail-open scenario.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assertion
An assertion rule enforces that, when a routing control state is changed, the criteria set by the rule configuration is met. Otherwise, the change to the routing control state is not accepted. For example, the criteria might be that at least one routing control state is On after the transaction so that traffic continues to flow to at least one cell for the application. This ensures that you avoid a fail-open scenario.
This is a convenience method that creates an instance of theAssertionRule.Builder
avoiding the need to create one manually viaAssertionRule.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toassertion(AssertionRule)
.- Parameters:
assertion
- a consumer that will call methods onAssertionRule.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
gating
A gating rule verifies that a gating routing control or set of gating routing controls, evaluates as true, based on a rule configuration that you specify, which allows a set of routing control state changes to complete.
For example, if you specify one gating routing control and you set the Type in the rule configuration to OR, that indicates that you must set the gating routing control to On for the rule to evaluate as true; that is, for the gating control "switch" to be "On". When you do that, then you can update the routing control states for the target routing controls that you specify in the gating rule.
- Parameters:
gating
- A gating rule verifies that a gating routing control or set of gating routing controls, evaluates as true, based on a rule configuration that you specify, which allows a set of routing control state changes to complete.For example, if you specify one gating routing control and you set the Type in the rule configuration to OR, that indicates that you must set the gating routing control to On for the rule to evaluate as true; that is, for the gating control "switch" to be "On". When you do that, then you can update the routing control states for the target routing controls that you specify in the gating rule.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gating
A gating rule verifies that a gating routing control or set of gating routing controls, evaluates as true, based on a rule configuration that you specify, which allows a set of routing control state changes to complete.
For example, if you specify one gating routing control and you set the Type in the rule configuration to OR, that indicates that you must set the gating routing control to On for the rule to evaluate as true; that is, for the gating control "switch" to be "On". When you do that, then you can update the routing control states for the target routing controls that you specify in the gating rule.
This is a convenience method that creates an instance of theGatingRule.Builder
avoiding the need to create one manually viaGatingRule.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togating(GatingRule)
.- Parameters:
gating
- a consumer that will call methods onGatingRule.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-