Class DnsRecordSetConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.dns_record_set.DnsRecordSetConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DnsRecordSetConfig>
- Enclosing interface:
- DnsRecordSetConfig
@Stability(Stable) public static final class DnsRecordSetConfig.Builder extends Object implements software.amazon.jsii.Builder<DnsRecordSetConfig>
A builder forDnsRecordSetConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DnsRecordSetConfigbuild()Builds the configured instance.DnsRecordSetConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()DnsRecordSetConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()DnsRecordSetConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()DnsRecordSetConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()DnsRecordSetConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()DnsRecordSetConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()DnsRecordSetConfig.Builderid(String id)Sets the value ofDnsRecordSetConfig.getId()DnsRecordSetConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()DnsRecordSetConfig.BuildermanagedZone(String managedZone)Sets the value ofDnsRecordSetConfig.getManagedZone()DnsRecordSetConfig.Buildername(String name)Sets the value ofDnsRecordSetConfig.getName()DnsRecordSetConfig.Builderproject(String project)Sets the value ofDnsRecordSetConfig.getProject()DnsRecordSetConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()DnsRecordSetConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()DnsRecordSetConfig.BuilderroutingPolicy(DnsRecordSetRoutingPolicy routingPolicy)Sets the value ofDnsRecordSetConfig.getRoutingPolicy()DnsRecordSetConfig.Builderrrdatas(List<String> rrdatas)Sets the value ofDnsRecordSetConfig.getRrdatas()DnsRecordSetConfig.Builderttl(Number ttl)Sets the value ofDnsRecordSetConfig.getTtl()DnsRecordSetConfig.Buildertype(String type)Sets the value ofDnsRecordSetConfig.getType()
-
-
-
Method Detail
-
managedZone
@Stability(Stable) public DnsRecordSetConfig.Builder managedZone(String managedZone)
Sets the value ofDnsRecordSetConfig.getManagedZone()- Parameters:
managedZone- The name of the zone in which this record set will reside. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_record_set#managed_zone DnsRecordSet#managed_zone}- Returns:
this
-
name
@Stability(Stable) public DnsRecordSetConfig.Builder name(String name)
Sets the value ofDnsRecordSetConfig.getName()- Parameters:
name- The DNS name this record set will apply to. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_record_set#name DnsRecordSet#name}- Returns:
this
-
type
@Stability(Stable) public DnsRecordSetConfig.Builder type(String type)
Sets the value ofDnsRecordSetConfig.getType()- Parameters:
type- The DNS record set type. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_record_set#type DnsRecordSet#type}- Returns:
this
-
id
@Stability(Stable) public DnsRecordSetConfig.Builder id(String id)
Sets the value ofDnsRecordSetConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_record_set#id DnsRecordSet#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.- Returns:
this
-
project
@Stability(Stable) public DnsRecordSetConfig.Builder project(String project)
Sets the value ofDnsRecordSetConfig.getProject()- Parameters:
project- The ID of the project in which the resource belongs. If it is not provided, the provider project is used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_record_set#project DnsRecordSet#project}- Returns:
this
-
routingPolicy
@Stability(Stable) public DnsRecordSetConfig.Builder routingPolicy(DnsRecordSetRoutingPolicy routingPolicy)
Sets the value ofDnsRecordSetConfig.getRoutingPolicy()- Parameters:
routingPolicy- routing_policy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_record_set#routing_policy DnsRecordSet#routing_policy}- Returns:
this
-
rrdatas
@Stability(Stable) public DnsRecordSetConfig.Builder rrdatas(List<String> rrdatas)
Sets the value ofDnsRecordSetConfig.getRrdatas()- Parameters:
rrdatas- The string data for the records in this record set whose meaning depends on the DNS type. For TXT record, if the string data contains spaces, add surrounding " if you don't want your string to get split on spaces. To specify a single record value longer than 255 characters such as a TXT record for DKIM, add "" inside the Terraform configuration string (e.g. "first255characters""morecharacters"). 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
-
ttl
@Stability(Stable) public DnsRecordSetConfig.Builder ttl(Number ttl)
Sets the value ofDnsRecordSetConfig.getTtl()- Parameters:
ttl- The time-to-live of this record set (seconds). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_record_set#ttl DnsRecordSet#ttl}- Returns:
this
-
connection
@Stability(Experimental) public DnsRecordSetConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public DnsRecordSetConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DnsRecordSetConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DnsRecordSetConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public DnsRecordSetConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public DnsRecordSetConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public DnsRecordSetConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public DnsRecordSetConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public DnsRecordSetConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public DnsRecordSetConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DnsRecordSetConfig>- Returns:
- a new instance of
DnsRecordSetConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-