Class DnsRecordSetRoutingPolicy.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.dns_record_set.DnsRecordSetRoutingPolicy.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DnsRecordSetRoutingPolicy>
- Enclosing interface:
- DnsRecordSetRoutingPolicy
@Stability(Stable) public static final class DnsRecordSetRoutingPolicy.Builder extends Object implements software.amazon.jsii.Builder<DnsRecordSetRoutingPolicy>
A builder forDnsRecordSetRoutingPolicy
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
enableGeoFencing
@Stability(Stable) public DnsRecordSetRoutingPolicy.Builder enableGeoFencing(Boolean enableGeoFencing)
Sets the value ofDnsRecordSetRoutingPolicy.getEnableGeoFencing()- Parameters:
enableGeoFencing- Specifies whether to enable fencing for geo queries. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_record_set#enable_geo_fencing DnsRecordSet#enable_geo_fencing}- Returns:
this
-
enableGeoFencing
@Stability(Stable) public DnsRecordSetRoutingPolicy.Builder enableGeoFencing(com.hashicorp.cdktf.IResolvable enableGeoFencing)
Sets the value ofDnsRecordSetRoutingPolicy.getEnableGeoFencing()- Parameters:
enableGeoFencing- Specifies whether to enable fencing for geo queries. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_record_set#enable_geo_fencing DnsRecordSet#enable_geo_fencing}- Returns:
this
-
geo
@Stability(Stable) public DnsRecordSetRoutingPolicy.Builder geo(com.hashicorp.cdktf.IResolvable geo)
Sets the value ofDnsRecordSetRoutingPolicy.getGeo()- Parameters:
geo- geo block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_record_set#geo DnsRecordSet#geo}- Returns:
this
-
geo
@Stability(Stable) public DnsRecordSetRoutingPolicy.Builder geo(List<? extends DnsRecordSetRoutingPolicyGeo> geo)
Sets the value ofDnsRecordSetRoutingPolicy.getGeo()- Parameters:
geo- geo block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_record_set#geo DnsRecordSet#geo}- Returns:
this
-
primaryBackup
@Stability(Stable) public DnsRecordSetRoutingPolicy.Builder primaryBackup(DnsRecordSetRoutingPolicyPrimaryBackup primaryBackup)
Sets the value ofDnsRecordSetRoutingPolicy.getPrimaryBackup()- Parameters:
primaryBackup- primary_backup block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_record_set#primary_backup DnsRecordSet#primary_backup}- Returns:
this
-
wrr
@Stability(Stable) public DnsRecordSetRoutingPolicy.Builder wrr(com.hashicorp.cdktf.IResolvable wrr)
Sets the value ofDnsRecordSetRoutingPolicy.getWrr()- Parameters:
wrr- wrr block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_record_set#wrr DnsRecordSet#wrr}- Returns:
this
-
wrr
@Stability(Stable) public DnsRecordSetRoutingPolicy.Builder wrr(List<? extends DnsRecordSetRoutingPolicyWrr> wrr)
Sets the value ofDnsRecordSetRoutingPolicy.getWrr()- Parameters:
wrr- wrr block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_record_set#wrr DnsRecordSet#wrr}- Returns:
this
-
build
@Stability(Stable) public DnsRecordSetRoutingPolicy build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DnsRecordSetRoutingPolicy>- Returns:
- a new instance of
DnsRecordSetRoutingPolicy - Throws:
NullPointerException- if any required attribute was not provided
-
-