Class SteeringPolicyPriorityRule
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.dns.model.SteeringPolicyRule
-
- com.oracle.bmc.dns.model.SteeringPolicyPriorityRule
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20180115") public final class SteeringPolicyPriorityRule extends SteeringPolicyRule
Note: Objects should always be created or deserialized using theSteeringPolicyPriorityRule.Builder
.This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the
SteeringPolicyPriorityRule.Builder
, which maintain a set of all explicitly set fields calledSteeringPolicyPriorityRule.Builder.__explicitlySet__
. ThehashCode()
andequals(Object)
methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SteeringPolicyPriorityRule.Builder
-
Nested classes/interfaces inherited from class com.oracle.bmc.dns.model.SteeringPolicyRule
SteeringPolicyRule.RuleType
-
-
Constructor Summary
Constructors Constructor Description SteeringPolicyPriorityRule(String description, List<SteeringPolicyPriorityRuleCase> cases, List<SteeringPolicyPriorityAnswerData> defaultAnswerData)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SteeringPolicyPriorityRule.Builder
builder()
Create a new builder.boolean
equals(Object o)
List<SteeringPolicyPriorityRuleCase>
getCases()
An array of caseConditions.List<SteeringPolicyPriorityAnswerData>
getDefaultAnswerData()
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 answerConditions in its answerData.int
hashCode()
SteeringPolicyPriorityRule.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.-
Methods inherited from class com.oracle.bmc.dns.model.SteeringPolicyRule
getDescription
-
-
-
-
Constructor Detail
-
SteeringPolicyPriorityRule
@Deprecated public SteeringPolicyPriorityRule(String description, List<SteeringPolicyPriorityRuleCase> cases, List<SteeringPolicyPriorityAnswerData> defaultAnswerData)
Deprecated.
-
-
Method Detail
-
builder
public static SteeringPolicyPriorityRule.Builder builder()
Create a new builder.
-
toBuilder
public SteeringPolicyPriorityRule.Builder toBuilder()
-
getCases
public List<SteeringPolicyPriorityRuleCase> getCases()
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.
- Returns:
- the value
-
getDefaultAnswerData
public List<SteeringPolicyPriorityAnswerData> getDefaultAnswerData()
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 answerConditions 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.
- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classSteeringPolicyRule
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toString
in classSteeringPolicyRule
- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classSteeringPolicyRule
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classSteeringPolicyRule
-
-