Class ComputeFirewallPolicyAssociationConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_firewall_policy_association.ComputeFirewallPolicyAssociationConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeFirewallPolicyAssociationConfig>
- Enclosing interface:
- ComputeFirewallPolicyAssociationConfig
@Stability(Stable) public static final class ComputeFirewallPolicyAssociationConfig.Builder extends Object implements software.amazon.jsii.Builder<ComputeFirewallPolicyAssociationConfig>
A builder forComputeFirewallPolicyAssociationConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeFirewallPolicyAssociationConfig.BuilderattachmentTarget(String attachmentTarget)Sets the value ofComputeFirewallPolicyAssociationConfig.getAttachmentTarget()ComputeFirewallPolicyAssociationConfigbuild()Builds the configured instance.ComputeFirewallPolicyAssociationConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()ComputeFirewallPolicyAssociationConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()ComputeFirewallPolicyAssociationConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()ComputeFirewallPolicyAssociationConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()ComputeFirewallPolicyAssociationConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()ComputeFirewallPolicyAssociationConfig.BuilderfirewallPolicy(String firewallPolicy)Sets the value ofComputeFirewallPolicyAssociationConfig.getFirewallPolicy()ComputeFirewallPolicyAssociationConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()ComputeFirewallPolicyAssociationConfig.Builderid(String id)Sets the value ofComputeFirewallPolicyAssociationConfig.getId()ComputeFirewallPolicyAssociationConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()ComputeFirewallPolicyAssociationConfig.Buildername(String name)Sets the value ofComputeFirewallPolicyAssociationConfig.getName()ComputeFirewallPolicyAssociationConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()ComputeFirewallPolicyAssociationConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()ComputeFirewallPolicyAssociationConfig.Buildertimeouts(ComputeFirewallPolicyAssociationTimeouts timeouts)Sets the value ofComputeFirewallPolicyAssociationConfig.getTimeouts()
-
-
-
Method Detail
-
attachmentTarget
@Stability(Stable) public ComputeFirewallPolicyAssociationConfig.Builder attachmentTarget(String attachmentTarget)
Sets the value ofComputeFirewallPolicyAssociationConfig.getAttachmentTarget()- Parameters:
attachmentTarget- The target that the firewall policy is attached to. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_firewall_policy_association#attachment_target ComputeFirewallPolicyAssociation#attachment_target}- Returns:
this
-
firewallPolicy
@Stability(Stable) public ComputeFirewallPolicyAssociationConfig.Builder firewallPolicy(String firewallPolicy)
Sets the value ofComputeFirewallPolicyAssociationConfig.getFirewallPolicy()- Parameters:
firewallPolicy- The firewall policy ID of the association. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_firewall_policy_association#firewall_policy ComputeFirewallPolicyAssociation#firewall_policy}- Returns:
this
-
name
@Stability(Stable) public ComputeFirewallPolicyAssociationConfig.Builder name(String name)
Sets the value ofComputeFirewallPolicyAssociationConfig.getName()- Parameters:
name- The name for an association. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_firewall_policy_association#name ComputeFirewallPolicyAssociation#name}- Returns:
this
-
id
@Stability(Stable) public ComputeFirewallPolicyAssociationConfig.Builder id(String id)
Sets the value ofComputeFirewallPolicyAssociationConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_firewall_policy_association#id ComputeFirewallPolicyAssociation#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
-
timeouts
@Stability(Stable) public ComputeFirewallPolicyAssociationConfig.Builder timeouts(ComputeFirewallPolicyAssociationTimeouts timeouts)
Sets the value ofComputeFirewallPolicyAssociationConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_firewall_policy_association#timeouts ComputeFirewallPolicyAssociation#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public ComputeFirewallPolicyAssociationConfig.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 ComputeFirewallPolicyAssociationConfig.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 ComputeFirewallPolicyAssociationConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ComputeFirewallPolicyAssociationConfig.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 ComputeFirewallPolicyAssociationConfig.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 ComputeFirewallPolicyAssociationConfig.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 ComputeFirewallPolicyAssociationConfig.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 ComputeFirewallPolicyAssociationConfig.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 ComputeFirewallPolicyAssociationConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public ComputeFirewallPolicyAssociationConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeFirewallPolicyAssociationConfig>- Returns:
- a new instance of
ComputeFirewallPolicyAssociationConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-