Class ComputeNetworkAttachmentConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_network_attachment.ComputeNetworkAttachmentConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeNetworkAttachmentConfig>
- Enclosing interface:
- ComputeNetworkAttachmentConfig
@Stability(Stable) public static final class ComputeNetworkAttachmentConfig.Builder extends Object implements software.amazon.jsii.Builder<ComputeNetworkAttachmentConfig>
A builder forComputeNetworkAttachmentConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
connectionPreference
@Stability(Stable) public ComputeNetworkAttachmentConfig.Builder connectionPreference(String connectionPreference)
Sets the value ofComputeNetworkAttachmentConfig.getConnectionPreference()- Parameters:
connectionPreference- The connection preference of service attachment. This parameter is required. The value can be set to ACCEPT_AUTOMATIC. An ACCEPT_AUTOMATIC service attachment is one that always accepts the connection from consumer forwarding rules. Possible values: ["ACCEPT_AUTOMATIC", "ACCEPT_MANUAL", "INVALID"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_attachment#connection_preference ComputeNetworkAttachment#connection_preference}- Returns:
this
-
name
@Stability(Stable) public ComputeNetworkAttachmentConfig.Builder name(String name)
Sets the value ofComputeNetworkAttachmentConfig.getName()- Parameters:
name- Name of the resource. This parameter is required. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](%5B-a-z0-9%5D*%5Ba-z0-9%5D)? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_attachment#name ComputeNetworkAttachment#name}- Returns:
this
-
subnetworks
@Stability(Stable) public ComputeNetworkAttachmentConfig.Builder subnetworks(List<String> subnetworks)
Sets the value ofComputeNetworkAttachmentConfig.getSubnetworks()- Parameters:
subnetworks- An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_attachment#subnetworks ComputeNetworkAttachment#subnetworks}- Returns:
this
-
description
@Stability(Stable) public ComputeNetworkAttachmentConfig.Builder description(String description)
Sets the value ofComputeNetworkAttachmentConfig.getDescription()- Parameters:
description- An optional description of this resource. Provide this property when you create the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_attachment#description ComputeNetworkAttachment#description}- Returns:
this
-
producerAcceptLists
@Stability(Stable) public ComputeNetworkAttachmentConfig.Builder producerAcceptLists(List<String> producerAcceptLists)
Sets the value ofComputeNetworkAttachmentConfig.getProducerAcceptLists()- Parameters:
producerAcceptLists- Projects that are allowed to connect to this network attachment. The project can be specified using its id or number. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_attachment#producer_accept_lists ComputeNetworkAttachment#producer_accept_lists}- Returns:
this
-
producerRejectLists
@Stability(Stable) public ComputeNetworkAttachmentConfig.Builder producerRejectLists(List<String> producerRejectLists)
Sets the value ofComputeNetworkAttachmentConfig.getProducerRejectLists()- Parameters:
producerRejectLists- Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_attachment#producer_reject_lists ComputeNetworkAttachment#producer_reject_lists}- Returns:
this
-
project
@Stability(Stable) public ComputeNetworkAttachmentConfig.Builder project(String project)
Sets the value ofComputeNetworkAttachmentConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_attachment#project ComputeNetworkAttachment#project}.- Returns:
this
-
region
@Stability(Stable) public ComputeNetworkAttachmentConfig.Builder region(String region)
Sets the value ofComputeNetworkAttachmentConfig.getRegion()- Parameters:
region- URL of the region where the network attachment resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_attachment#region ComputeNetworkAttachment#region}- Returns:
this
-
timeouts
@Stability(Stable) public ComputeNetworkAttachmentConfig.Builder timeouts(ComputeNetworkAttachmentTimeouts timeouts)
Sets the value ofComputeNetworkAttachmentConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_attachment#timeouts ComputeNetworkAttachment#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public ComputeNetworkAttachmentConfig.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 ComputeNetworkAttachmentConfig.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 ComputeNetworkAttachmentConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ComputeNetworkAttachmentConfig.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 ComputeNetworkAttachmentConfig.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 ComputeNetworkAttachmentConfig.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 ComputeNetworkAttachmentConfig.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 ComputeNetworkAttachmentConfig.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 ComputeNetworkAttachmentConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public ComputeNetworkAttachmentConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeNetworkAttachmentConfig>- Returns:
- a new instance of
ComputeNetworkAttachmentConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-