Class SteeringPolicyAnswer.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • name

        public SteeringPolicyAnswer.Builder name​(String name)
        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 } ] } ]

        Parameters:
        name - the value to set
        Returns:
        this builder
      • rdata

        public SteeringPolicyAnswer.Builder rdata​(String rdata)
        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.

        Parameters:
        rdata - the value to set
        Returns:
        this builder
      • pool

        public SteeringPolicyAnswer.Builder pool​(String pool)
        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 } ] } ]

        Parameters:
        pool - the value to set
        Returns:
        this builder
      • isDisabled

        public SteeringPolicyAnswer.Builder isDisabled​(Boolean isDisabled)
        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 } ] },

        Parameters:
        isDisabled - the value to set
        Returns:
        this builder