Class DnsRecordSetRoutingPolicyWrr.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.dns_record_set.DnsRecordSetRoutingPolicyWrr.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DnsRecordSetRoutingPolicyWrr>
- Enclosing interface:
- DnsRecordSetRoutingPolicyWrr
@Stability(Stable) public static final class DnsRecordSetRoutingPolicyWrr.Builder extends Object implements software.amazon.jsii.Builder<DnsRecordSetRoutingPolicyWrr>
A builder forDnsRecordSetRoutingPolicyWrr
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DnsRecordSetRoutingPolicyWrrbuild()Builds the configured instance.DnsRecordSetRoutingPolicyWrr.BuilderhealthCheckedTargets(DnsRecordSetRoutingPolicyWrrHealthCheckedTargets healthCheckedTargets)Sets the value ofDnsRecordSetRoutingPolicyWrr.getHealthCheckedTargets()DnsRecordSetRoutingPolicyWrr.Builderrrdatas(List<String> rrdatas)Sets the value ofDnsRecordSetRoutingPolicyWrr.getRrdatas()DnsRecordSetRoutingPolicyWrr.Builderweight(Number weight)Sets the value ofDnsRecordSetRoutingPolicyWrr.getWeight()
-
-
-
Method Detail
-
weight
@Stability(Stable) public DnsRecordSetRoutingPolicyWrr.Builder weight(Number weight)
Sets the value ofDnsRecordSetRoutingPolicyWrr.getWeight()- Parameters:
weight- The ratio of traffic routed to the target. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_record_set#weight DnsRecordSet#weight}- Returns:
this
-
healthCheckedTargets
@Stability(Stable) public DnsRecordSetRoutingPolicyWrr.Builder healthCheckedTargets(DnsRecordSetRoutingPolicyWrrHealthCheckedTargets healthCheckedTargets)
Sets the value ofDnsRecordSetRoutingPolicyWrr.getHealthCheckedTargets()- Parameters:
healthCheckedTargets- health_checked_targets block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_record_set#health_checked_targets DnsRecordSet#health_checked_targets}- Returns:
this
-
rrdatas
@Stability(Stable) public DnsRecordSetRoutingPolicyWrr.Builder rrdatas(List<String> rrdatas)
Sets the value ofDnsRecordSetRoutingPolicyWrr.getRrdatas()- Parameters:
rrdatas- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_record_set#rrdatas DnsRecordSet#rrdatas}.- Returns:
this
-
build
@Stability(Stable) public DnsRecordSetRoutingPolicyWrr build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DnsRecordSetRoutingPolicyWrr>- Returns:
- a new instance of
DnsRecordSetRoutingPolicyWrr - Throws:
NullPointerException- if any required attribute was not provided
-
-