Class DnsPolicyConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.dns_policy.DnsPolicyConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DnsPolicyConfig>
- Enclosing interface:
- DnsPolicyConfig
@Stability(Stable) public static final class DnsPolicyConfig.Builder extends Object implements software.amazon.jsii.Builder<DnsPolicyConfig>
A builder forDnsPolicyConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DnsPolicyConfig.BuilderalternativeNameServerConfig(DnsPolicyAlternativeNameServerConfig alternativeNameServerConfig)Sets the value ofDnsPolicyConfig.getAlternativeNameServerConfig()DnsPolicyConfigbuild()Builds the configured instance.DnsPolicyConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()DnsPolicyConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()DnsPolicyConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()DnsPolicyConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()DnsPolicyConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()DnsPolicyConfig.Builderdescription(String description)Sets the value ofDnsPolicyConfig.getDescription()DnsPolicyConfig.BuilderenableInboundForwarding(com.hashicorp.cdktf.IResolvable enableInboundForwarding)Sets the value ofDnsPolicyConfig.getEnableInboundForwarding()DnsPolicyConfig.BuilderenableInboundForwarding(Boolean enableInboundForwarding)Sets the value ofDnsPolicyConfig.getEnableInboundForwarding()DnsPolicyConfig.BuilderenableLogging(com.hashicorp.cdktf.IResolvable enableLogging)Sets the value ofDnsPolicyConfig.getEnableLogging()DnsPolicyConfig.BuilderenableLogging(Boolean enableLogging)Sets the value ofDnsPolicyConfig.getEnableLogging()DnsPolicyConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()DnsPolicyConfig.Builderid(String id)Sets the value ofDnsPolicyConfig.getId()DnsPolicyConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()DnsPolicyConfig.Buildername(String name)Sets the value ofDnsPolicyConfig.getName()DnsPolicyConfig.Buildernetworks(com.hashicorp.cdktf.IResolvable networks)Sets the value ofDnsPolicyConfig.getNetworks()DnsPolicyConfig.Buildernetworks(List<? extends DnsPolicyNetworks> networks)Sets the value ofDnsPolicyConfig.getNetworks()DnsPolicyConfig.Builderproject(String project)Sets the value ofDnsPolicyConfig.getProject()DnsPolicyConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()DnsPolicyConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()DnsPolicyConfig.Buildertimeouts(DnsPolicyTimeouts timeouts)Sets the value ofDnsPolicyConfig.getTimeouts()
-
-
-
Method Detail
-
name
@Stability(Stable) public DnsPolicyConfig.Builder name(String name)
Sets the value ofDnsPolicyConfig.getName()- Parameters:
name- User assigned name for this policy. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_policy#name DnsPolicy#name}- Returns:
this
-
alternativeNameServerConfig
@Stability(Stable) public DnsPolicyConfig.Builder alternativeNameServerConfig(DnsPolicyAlternativeNameServerConfig alternativeNameServerConfig)
Sets the value ofDnsPolicyConfig.getAlternativeNameServerConfig()- Parameters:
alternativeNameServerConfig- alternative_name_server_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_policy#alternative_name_server_config DnsPolicy#alternative_name_server_config}- Returns:
this
-
description
@Stability(Stable) public DnsPolicyConfig.Builder description(String description)
Sets the value ofDnsPolicyConfig.getDescription()- Parameters:
description- A textual description field. Defaults to 'Managed by Terraform'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_policy#description DnsPolicy#description}- Returns:
this
-
enableInboundForwarding
@Stability(Stable) public DnsPolicyConfig.Builder enableInboundForwarding(Boolean enableInboundForwarding)
Sets the value ofDnsPolicyConfig.getEnableInboundForwarding()- Parameters:
enableInboundForwarding- Allows networks bound to this policy to receive DNS queries sent by VMs or applications over VPN connections. When enabled, a virtual IP address will be allocated from each of the sub-networks that are bound to this policy. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_policy#enable_inbound_forwarding DnsPolicy#enable_inbound_forwarding}- Returns:
this
-
enableInboundForwarding
@Stability(Stable) public DnsPolicyConfig.Builder enableInboundForwarding(com.hashicorp.cdktf.IResolvable enableInboundForwarding)
Sets the value ofDnsPolicyConfig.getEnableInboundForwarding()- Parameters:
enableInboundForwarding- Allows networks bound to this policy to receive DNS queries sent by VMs or applications over VPN connections. When enabled, a virtual IP address will be allocated from each of the sub-networks that are bound to this policy. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_policy#enable_inbound_forwarding DnsPolicy#enable_inbound_forwarding}- Returns:
this
-
enableLogging
@Stability(Stable) public DnsPolicyConfig.Builder enableLogging(Boolean enableLogging)
Sets the value ofDnsPolicyConfig.getEnableLogging()- Parameters:
enableLogging- Controls whether logging is enabled for the networks bound to this policy. Defaults to no logging if not set. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_policy#enable_logging DnsPolicy#enable_logging}- Returns:
this
-
enableLogging
@Stability(Stable) public DnsPolicyConfig.Builder enableLogging(com.hashicorp.cdktf.IResolvable enableLogging)
Sets the value ofDnsPolicyConfig.getEnableLogging()- Parameters:
enableLogging- Controls whether logging is enabled for the networks bound to this policy. Defaults to no logging if not set. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_policy#enable_logging DnsPolicy#enable_logging}- Returns:
this
-
id
@Stability(Stable) public DnsPolicyConfig.Builder id(String id)
Sets the value ofDnsPolicyConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_policy#id DnsPolicy#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
-
networks
@Stability(Stable) public DnsPolicyConfig.Builder networks(com.hashicorp.cdktf.IResolvable networks)
Sets the value ofDnsPolicyConfig.getNetworks()- Parameters:
networks- networks block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_policy#networks DnsPolicy#networks}- Returns:
this
-
networks
@Stability(Stable) public DnsPolicyConfig.Builder networks(List<? extends DnsPolicyNetworks> networks)
Sets the value ofDnsPolicyConfig.getNetworks()- Parameters:
networks- networks block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_policy#networks DnsPolicy#networks}- Returns:
this
-
project
@Stability(Stable) public DnsPolicyConfig.Builder project(String project)
Sets the value ofDnsPolicyConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_policy#project DnsPolicy#project}.- Returns:
this
-
timeouts
@Stability(Stable) public DnsPolicyConfig.Builder timeouts(DnsPolicyTimeouts timeouts)
Sets the value ofDnsPolicyConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_policy#timeouts DnsPolicy#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public DnsPolicyConfig.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 DnsPolicyConfig.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 DnsPolicyConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DnsPolicyConfig.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 DnsPolicyConfig.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 DnsPolicyConfig.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 DnsPolicyConfig.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 DnsPolicyConfig.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 DnsPolicyConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public DnsPolicyConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DnsPolicyConfig>- Returns:
- a new instance of
DnsPolicyConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-