Class DnsResponsePolicyConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.dns_response_policy.DnsResponsePolicyConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DnsResponsePolicyConfig>
- Enclosing interface:
- DnsResponsePolicyConfig
@Stability(Stable) public static final class DnsResponsePolicyConfig.Builder extends Object implements software.amazon.jsii.Builder<DnsResponsePolicyConfig>
A builder forDnsResponsePolicyConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DnsResponsePolicyConfigbuild()Builds the configured instance.DnsResponsePolicyConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()DnsResponsePolicyConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()DnsResponsePolicyConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()DnsResponsePolicyConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()DnsResponsePolicyConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()DnsResponsePolicyConfig.Builderdescription(String description)Sets the value ofDnsResponsePolicyConfig.getDescription()DnsResponsePolicyConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()DnsResponsePolicyConfig.BuildergkeClusters(com.hashicorp.cdktf.IResolvable gkeClusters)Sets the value ofDnsResponsePolicyConfig.getGkeClusters()DnsResponsePolicyConfig.BuildergkeClusters(List<? extends DnsResponsePolicyGkeClusters> gkeClusters)Sets the value ofDnsResponsePolicyConfig.getGkeClusters()DnsResponsePolicyConfig.Builderid(String id)Sets the value ofDnsResponsePolicyConfig.getId()DnsResponsePolicyConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()DnsResponsePolicyConfig.Buildernetworks(com.hashicorp.cdktf.IResolvable networks)Sets the value ofDnsResponsePolicyConfig.getNetworks()DnsResponsePolicyConfig.Buildernetworks(List<? extends DnsResponsePolicyNetworks> networks)Sets the value ofDnsResponsePolicyConfig.getNetworks()DnsResponsePolicyConfig.Builderproject(String project)Sets the value ofDnsResponsePolicyConfig.getProject()DnsResponsePolicyConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()DnsResponsePolicyConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()DnsResponsePolicyConfig.BuilderresponsePolicyName(String responsePolicyName)Sets the value ofDnsResponsePolicyConfig.getResponsePolicyName()DnsResponsePolicyConfig.Buildertimeouts(DnsResponsePolicyTimeouts timeouts)Sets the value ofDnsResponsePolicyConfig.getTimeouts()
-
-
-
Method Detail
-
responsePolicyName
@Stability(Stable) public DnsResponsePolicyConfig.Builder responsePolicyName(String responsePolicyName)
Sets the value ofDnsResponsePolicyConfig.getResponsePolicyName()- Parameters:
responsePolicyName- The user assigned name for this Response Policy, such as 'myresponsepolicy'. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_response_policy#response_policy_name DnsResponsePolicy#response_policy_name}- Returns:
this
-
description
@Stability(Stable) public DnsResponsePolicyConfig.Builder description(String description)
Sets the value ofDnsResponsePolicyConfig.getDescription()- Parameters:
description- The description of the response policy, such as 'My new response policy'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_response_policy#description DnsResponsePolicy#description}- Returns:
this
-
gkeClusters
@Stability(Stable) public DnsResponsePolicyConfig.Builder gkeClusters(com.hashicorp.cdktf.IResolvable gkeClusters)
Sets the value ofDnsResponsePolicyConfig.getGkeClusters()- Parameters:
gkeClusters- gke_clusters block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_response_policy#gke_clusters DnsResponsePolicy#gke_clusters}- Returns:
this
-
gkeClusters
@Stability(Stable) public DnsResponsePolicyConfig.Builder gkeClusters(List<? extends DnsResponsePolicyGkeClusters> gkeClusters)
Sets the value ofDnsResponsePolicyConfig.getGkeClusters()- Parameters:
gkeClusters- gke_clusters block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_response_policy#gke_clusters DnsResponsePolicy#gke_clusters}- Returns:
this
-
id
@Stability(Stable) public DnsResponsePolicyConfig.Builder id(String id)
Sets the value ofDnsResponsePolicyConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_response_policy#id DnsResponsePolicy#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 DnsResponsePolicyConfig.Builder networks(com.hashicorp.cdktf.IResolvable networks)
Sets the value ofDnsResponsePolicyConfig.getNetworks()- Parameters:
networks- networks block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_response_policy#networks DnsResponsePolicy#networks}- Returns:
this
-
networks
@Stability(Stable) public DnsResponsePolicyConfig.Builder networks(List<? extends DnsResponsePolicyNetworks> networks)
Sets the value ofDnsResponsePolicyConfig.getNetworks()- Parameters:
networks- networks block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_response_policy#networks DnsResponsePolicy#networks}- Returns:
this
-
project
@Stability(Stable) public DnsResponsePolicyConfig.Builder project(String project)
Sets the value ofDnsResponsePolicyConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_response_policy#project DnsResponsePolicy#project}.- Returns:
this
-
timeouts
@Stability(Stable) public DnsResponsePolicyConfig.Builder timeouts(DnsResponsePolicyTimeouts timeouts)
Sets the value ofDnsResponsePolicyConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_response_policy#timeouts DnsResponsePolicy#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public DnsResponsePolicyConfig.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 DnsResponsePolicyConfig.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 DnsResponsePolicyConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DnsResponsePolicyConfig.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 DnsResponsePolicyConfig.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 DnsResponsePolicyConfig.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 DnsResponsePolicyConfig.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 DnsResponsePolicyConfig.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 DnsResponsePolicyConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public DnsResponsePolicyConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DnsResponsePolicyConfig>- Returns:
- a new instance of
DnsResponsePolicyConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-