@Generated(value="OracleSDKGenerator", comments="API Version: 20180115") public final class SteeringPolicyAnswer extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
DNS record data with metadata for processing in a steering policy.
**Warning:** Oracle recommends that you avoid using any confidential information when you
supply string values using the API.
Note: Objects should always be created or deserialized using the SteeringPolicyAnswer.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 SteeringPolicyAnswer.Builder
, which maintain a
set of all explicitly set fields called SteeringPolicyAnswer.Builder.__explicitlySet__
. The hashCode()
and equals(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
).
Modifier and Type | Class and Description |
---|---|
static class |
SteeringPolicyAnswer.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
SteeringPolicyAnswer(String name,
String rtype,
String rdata,
String pool,
Boolean isDisabled)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static SteeringPolicyAnswer.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Boolean |
getIsDisabled()
Set this property to
true to indicate that the answer is administratively disabled,
such as when the corresponding server is down for maintenance. |
String |
getName()
A user-friendly name for the answer, unique within the steering policy.
|
String |
getPool()
The freeform name of a group of one or more records in which this record is included, such as
“LAX data center”.
|
String |
getRdata()
The record’s data, as whitespace-delimited tokens in type-specific presentation format.
|
String |
getRtype()
The type of DNS record, such as A or CNAME.
|
int |
hashCode() |
SteeringPolicyAnswer.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"name","rtype","rdata","pool","isDisabled"}) public SteeringPolicyAnswer(String name, String rtype, String rdata, String pool, Boolean isDisabled)
public static SteeringPolicyAnswer.Builder builder()
Create a new builder.
public SteeringPolicyAnswer.Builder toBuilder()
public String getName()
A user-friendly name for the answer, unique within the steering policy. An answer’s name
property can be referenced in answerCondition
properties of rules using answer.name
.
*Example:**
"rules": [ { "ruleType": "FILTER", "defaultAnswerData": [ { "answerCondition": "answer.name == 'server 1'", "shouldKeep": true } ] } ]
public String getRtype()
The type of DNS record, such as A or CNAME. Only A, AAAA, and CNAME are supported. For more information, see Supported DNS Resource Record Types.
public String getRdata()
The record’s data, as whitespace-delimited tokens in type-specific presentation format. All RDATA is normalized and the returned presentation of your RDATA may differ from its initial input. For more information about RDATA, see Supported DNS Resource Record Types.
public String getPool()
The freeform name of a group of one or more records in which this record is included, such as
“LAX data center”. An answer’s pool
property can be referenced in answerCondition
properties of rules using answer.pool
.
*Example:**
"rules": [ { "ruleType": "FILTER", "defaultAnswerData": [ { "answerCondition": "answer.pool == 'US East Servers'", "shouldKeep": true } ] } ]
public Boolean getIsDisabled()
Set this property to true
to indicate that the answer is administratively disabled,
such as when the corresponding server is down for maintenance. An answer’s isDisabled
property can be referenced in answerCondition
properties in rules using answer.isDisabled
.
*Example:** "rules": [ { "ruleType": "FILTER", "defaultAnswerData": [ { "answerCondition": "answer.isDisabled != true", "shouldKeep": true } ] },
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.