public static interface Rule.Builder extends SdkPojo, CopyableBuilder<Rule.Builder,Rule>
| Modifier and Type | Method and Description |
|---|---|
Rule.Builder |
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 |
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.
|
default Rule.Builder |
gating(Consumer<GatingRule.Builder> gating)
A gating rule verifies that a gating routing control or set of gating rounting controls, evaluates as true,
based on a rule configuration that you specify, which allows a set of routing control state changes to
complete.
|
Rule.Builder |
gating(GatingRule gating)
A gating rule verifies that a gating routing control or set of gating rounting controls, evaluates as true,
based on a rule configuration that you specify, which allows a set of routing control state changes to
complete.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildRule.Builder assertion(AssertionRule 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 transation so that traffic continues to flow to at least one cell for the application. This ensures that you avoid a fail-open scenario.
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 transation so that
traffic continues to flow to at least one cell for the application. This ensures that you avoid a
fail-open scenario.default 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. 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 transation 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 via AssertionRule.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to assertion(AssertionRule).
assertion - a consumer that will call methods on AssertionRule.Builderassertion(AssertionRule)Rule.Builder gating(GatingRule gating)
A gating rule verifies that a gating routing control or set of gating rounting 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.
gating - A gating rule verifies that a gating routing control or set of gating rounting 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.
default Rule.Builder gating(Consumer<GatingRule.Builder> gating)
A gating rule verifies that a gating routing control or set of gating rounting 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 via GatingRule.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to gating(GatingRule).
gating - a consumer that will call methods on GatingRule.Buildergating(GatingRule)Copyright © 2022. All rights reserved.