public static class SteeringPolicyAnswer.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SteeringPolicyAnswer |
build() |
SteeringPolicyAnswer.Builder |
copy(SteeringPolicyAnswer model) |
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. |
SteeringPolicyAnswer.Builder |
name(String name)
A user-friendly name for the answer, unique within the steering policy.
|
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”.
|
SteeringPolicyAnswer.Builder |
rdata(String rdata)
The record’s data, as whitespace-delimited tokens in type-specific presentation format.
|
SteeringPolicyAnswer.Builder |
rtype(String rtype)
The type of DNS record, such as A or CNAME.
|
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 } ] } ]
name
- the value to setpublic SteeringPolicyAnswer.Builder rtype(String rtype)
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.
rtype
- the value to setpublic 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.
rdata
- the value to setpublic 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 } ] } ]
pool
- the value to setpublic 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 } ] },
isDisabled
- the value to setpublic SteeringPolicyAnswer build()
public SteeringPolicyAnswer.Builder copy(SteeringPolicyAnswer model)
Copyright © 2016–2024. All rights reserved.