Class SteeringPolicyAnswer.Builder
- java.lang.Object
-
- com.oracle.bmc.dns.model.SteeringPolicyAnswer.Builder
-
- Enclosing class:
- SteeringPolicyAnswer
public static class SteeringPolicyAnswer.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
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
-
rtype
public 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.
- Parameters:
rtype
- 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
-
build
public SteeringPolicyAnswer build()
-
copy
public SteeringPolicyAnswer.Builder copy(SteeringPolicyAnswer model)
-
-