Class 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 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).

    • Method Detail

      • 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
      • 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 class com.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 class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel