public static class SteeringPolicyFilterRule.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SteeringPolicyFilterRule |
build() |
SteeringPolicyFilterRule.Builder |
cases(List<SteeringPolicyFilterRuleCase> cases)
An array of
caseConditions . |
SteeringPolicyFilterRule.Builder |
copy(SteeringPolicyFilterRule model) |
SteeringPolicyFilterRule.Builder |
defaultAnswerData(List<SteeringPolicyFilterAnswerData> defaultAnswerData)
Defines a default set of answer conditions and values that are applied to an answer when
cases is not defined for the rule, or a matching case does not have any matching
answerCondition s in its answerData . |
SteeringPolicyFilterRule.Builder |
description(String description) |
public SteeringPolicyFilterRule.Builder description(String description)
public SteeringPolicyFilterRule.Builder cases(List<SteeringPolicyFilterRuleCase> cases)
An array of caseConditions
. A rule may optionally include a sequence of cases
defining alternate configurations for how it should behave during processing for any
given DNS query. When a rule has no sequence of cases
, it is always evaluated
with the same configuration during processing. When a rule has an empty sequence of
cases
, it is always ignored during processing. When a rule has a non-empty
sequence of cases
, its behavior during processing is configured by the first
matching case
in the sequence. When a rule has no matching cases the rule is
ignored. A rule case with no caseCondition
always matches. A rule case with a
caseCondition
matches only when that expression evaluates to true for the given
query.
cases
- the value to setpublic SteeringPolicyFilterRule.Builder defaultAnswerData(List<SteeringPolicyFilterAnswerData> defaultAnswerData)
Defines a default set of answer conditions and values that are applied to an answer when
cases
is not defined for the rule, or a matching case does not have any matching
answerCondition
s in its answerData
. defaultAnswerData
is not
applied if cases
is defined and there are no matching cases. In this scenario,
the next rule will be processed.
defaultAnswerData
- the value to setpublic SteeringPolicyFilterRule build()
public SteeringPolicyFilterRule.Builder copy(SteeringPolicyFilterRule model)
Copyright © 2016–2024. All rights reserved.