Class SteeringPolicyAnswer
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.dns.model.SteeringPolicyAnswer
-
@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 theSteeringPolicyAnswer.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 theSteeringPolicyAnswer.Builder
, which maintain a set of all explicitly set fields calledSteeringPolicyAnswer.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
SteeringPolicyAnswer.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
SteeringPolicyAnswer
@Deprecated @ConstructorProperties({"name","rtype","rdata","pool","isDisabled"}) public SteeringPolicyAnswer(String name, String rtype, String rdata, String pool, Boolean isDisabled)
Deprecated.
-
-
Method Detail
-
builder
public static SteeringPolicyAnswer.Builder builder()
Create a new builder.
-
toBuilder
public SteeringPolicyAnswer.Builder toBuilder()
-
getName
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 } ] } ]
- Returns:
- the value
-
getRtype
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.
- Returns:
- the value
-
getRdata
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.
- Returns:
- the value
-
getPool
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 } ] } ]
- Returns:
- the value
-
getIsDisabled
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 } ] },
- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-