Class SteeringPolicyLimitRule.Builder
- java.lang.Object
-
- com.oracle.bmc.dns.model.SteeringPolicyLimitRule.Builder
-
- Enclosing class:
- SteeringPolicyLimitRule
public static class SteeringPolicyLimitRule.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SteeringPolicyLimitRule
build()
SteeringPolicyLimitRule.Builder
cases(List<SteeringPolicyLimitRuleCase> cases)
An array of caseConditions.SteeringPolicyLimitRule.Builder
copy(SteeringPolicyLimitRule model)
SteeringPolicyLimitRule.Builder
defaultCount(Integer defaultCount)
Defines a default count if cases is not defined for the rule or a matching case does not define count.SteeringPolicyLimitRule.Builder
description(String description)
-
-
-
Method Detail
-
description
public SteeringPolicyLimitRule.Builder description(String description)
-
cases
public SteeringPolicyLimitRule.Builder cases(List<SteeringPolicyLimitRuleCase> 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.
- Parameters:
cases
- the value to set- Returns:
- this builder
-
defaultCount
public SteeringPolicyLimitRule.Builder defaultCount(Integer defaultCount)
Defines a default count if cases is not defined for the rule or a matching case does not define count.defaultCount is not applied if cases is defined and there are no matching cases. In this scenario, the next rule will be processed. If no rules remain to be processed, the answer will be chosen from the remaining list of answers.
- Parameters:
defaultCount
- the value to set- Returns:
- this builder
-
build
public SteeringPolicyLimitRule build()
-
copy
public SteeringPolicyLimitRule.Builder copy(SteeringPolicyLimitRule model)
-
-