Package com.oracle.bmc.dns.model
Class SteeringPolicyLimitRuleCase.Builder
- java.lang.Object
-
- com.oracle.bmc.dns.model.SteeringPolicyLimitRuleCase.Builder
-
- Enclosing class:
- SteeringPolicyLimitRuleCase
public static class SteeringPolicyLimitRuleCase.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SteeringPolicyLimitRuleCase
build()
SteeringPolicyLimitRuleCase.Builder
caseCondition(String caseCondition)
An expression that uses conditions at the time of a DNS query to indicate whether a case matches.SteeringPolicyLimitRuleCase.Builder
copy(SteeringPolicyLimitRuleCase model)
SteeringPolicyLimitRuleCase.Builder
count(Integer count)
The number of answers allowed to remain after the limit rule has been processed, keeping only the first of the remaining answers in the list.
-
-
-
Method Detail
-
caseCondition
public SteeringPolicyLimitRuleCase.Builder caseCondition(String caseCondition)
An expression that uses conditions at the time of a DNS query to indicate whether a case matches.Conditions may include the geographical location, IP subnet, or ASN the DNS query originated. Example: If you have an office that uses the subnet 192.0.2.0/24 you could use a caseCondition expression query.client.address in (‘192.0.2.0/24’) to define a case that matches queries from that office.
- Parameters:
caseCondition
- the value to set- Returns:
- this builder
-
count
public SteeringPolicyLimitRuleCase.Builder count(Integer count)
The number of answers allowed to remain after the limit rule has been processed, keeping only the first of the remaining answers in the list.Example: If the count property is set to 2 and four answers remain before the limit rule is processed, only the first two answers in the list will remain after the limit rule has been processed.
- Parameters:
count
- the value to set- Returns:
- this builder
-
build
public SteeringPolicyLimitRuleCase build()
-
copy
public SteeringPolicyLimitRuleCase.Builder copy(SteeringPolicyLimitRuleCase model)
-
-