Class ComputeNetworkConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_network.ComputeNetworkConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeNetworkConfig>
- Enclosing interface:
- ComputeNetworkConfig
@Stability(Stable) public static final class ComputeNetworkConfig.Builder extends Object implements software.amazon.jsii.Builder<ComputeNetworkConfig>
A builder forComputeNetworkConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
name
@Stability(Stable) public ComputeNetworkConfig.Builder name(String name)
Sets the value ofComputeNetworkConfig.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#name ComputeNetwork#name}- Returns:
this
-
autoCreateSubnetworks
@Stability(Stable) public ComputeNetworkConfig.Builder autoCreateSubnetworks(Boolean autoCreateSubnetworks)
Sets the value ofComputeNetworkConfig.getAutoCreateSubnetworks()- Parameters:
autoCreateSubnetworks- When set to 'true', the network is created in "auto subnet mode" and it will create a subnet for each region automatically across the '10.128.0.0/9' address range. When set to 'false', the network is created in "custom subnet mode" so the user can explicitly connect subnetwork resources. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network#auto_create_subnetworks ComputeNetwork#auto_create_subnetworks}- Returns:
this
-
autoCreateSubnetworks
@Stability(Stable) public ComputeNetworkConfig.Builder autoCreateSubnetworks(com.hashicorp.cdktf.IResolvable autoCreateSubnetworks)
Sets the value ofComputeNetworkConfig.getAutoCreateSubnetworks()- Parameters:
autoCreateSubnetworks- When set to 'true', the network is created in "auto subnet mode" and it will create a subnet for each region automatically across the '10.128.0.0/9' address range. When set to 'false', the network is created in "custom subnet mode" so the user can explicitly connect subnetwork resources. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network#auto_create_subnetworks ComputeNetwork#auto_create_subnetworks}- Returns:
this
-
deleteDefaultRoutesOnCreate
@Stability(Stable) public ComputeNetworkConfig.Builder deleteDefaultRoutesOnCreate(Boolean deleteDefaultRoutesOnCreate)
Sets the value ofComputeNetworkConfig.getDeleteDefaultRoutesOnCreate()- Parameters:
deleteDefaultRoutesOnCreate- If set to 'true', default routes ('0.0.0.0/0') will be deleted immediately after network creation. Defaults to 'false'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network#delete_default_routes_on_create ComputeNetwork#delete_default_routes_on_create}- Returns:
this
-
deleteDefaultRoutesOnCreate
@Stability(Stable) public ComputeNetworkConfig.Builder deleteDefaultRoutesOnCreate(com.hashicorp.cdktf.IResolvable deleteDefaultRoutesOnCreate)
Sets the value ofComputeNetworkConfig.getDeleteDefaultRoutesOnCreate()- Parameters:
deleteDefaultRoutesOnCreate- If set to 'true', default routes ('0.0.0.0/0') will be deleted immediately after network creation. Defaults to 'false'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network#delete_default_routes_on_create ComputeNetwork#delete_default_routes_on_create}- Returns:
this
-
description
@Stability(Stable) public ComputeNetworkConfig.Builder description(String description)
Sets the value ofComputeNetworkConfig.getDescription()- Parameters:
description- An optional description of this resource. The resource must be recreated to modify this field. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network#description ComputeNetwork#description}- Returns:
this
-
enableUlaInternalIpv6
@Stability(Stable) public ComputeNetworkConfig.Builder enableUlaInternalIpv6(Boolean enableUlaInternalIpv6)
Sets the value ofComputeNetworkConfig.getEnableUlaInternalIpv6()- Parameters:
enableUlaInternalIpv6- Enable ULA internal ipv6 on this network. Enabling this feature will assign a /48 from google defined ULA prefix fd20::/20. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network#enable_ula_internal_ipv6 ComputeNetwork#enable_ula_internal_ipv6}- Returns:
this
-
enableUlaInternalIpv6
@Stability(Stable) public ComputeNetworkConfig.Builder enableUlaInternalIpv6(com.hashicorp.cdktf.IResolvable enableUlaInternalIpv6)
Sets the value ofComputeNetworkConfig.getEnableUlaInternalIpv6()- Parameters:
enableUlaInternalIpv6- Enable ULA internal ipv6 on this network. Enabling this feature will assign a /48 from google defined ULA prefix fd20::/20. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network#enable_ula_internal_ipv6 ComputeNetwork#enable_ula_internal_ipv6}- Returns:
this
-
id
@Stability(Stable) public ComputeNetworkConfig.Builder id(String id)
Sets the value ofComputeNetworkConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network#id ComputeNetwork#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
-
internalIpv6Range
@Stability(Stable) public ComputeNetworkConfig.Builder internalIpv6Range(String internalIpv6Range)
Sets the value ofComputeNetworkConfig.getInternalIpv6Range()- Parameters:
internalIpv6Range- When enabling ula internal ipv6, caller optionally can specify the /48 range they want from the google defined ULA prefix fd20::/20. The input must be a valid /48 ULA IPv6 address and must be within the fd20::/20. Operation will fail if the speficied /48 is already in used by another resource. If the field is not speficied, then a /48 range will be randomly allocated from fd20::/20 and returned via this field. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network#internal_ipv6_range ComputeNetwork#internal_ipv6_range}- Returns:
this
-
mtu
@Stability(Stable) public ComputeNetworkConfig.Builder mtu(Number mtu)
Sets the value ofComputeNetworkConfig.getMtu()- Parameters:
mtu- Maximum Transmission Unit in bytes. The default value is 1460 bytes. The minimum value for this field is 1300 and the maximum value is 8896 bytes (jumbo frames). Note that packets larger than 1500 bytes (standard Ethernet) can be subject to TCP-MSS clamping or dropped with an ICMP 'Fragmentation-Needed' message if the packets are routed to the Internet or other VPCs with varying MTUs. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network#mtu ComputeNetwork#mtu}- Returns:
this
-
networkFirewallPolicyEnforcementOrder
@Stability(Stable) public ComputeNetworkConfig.Builder networkFirewallPolicyEnforcementOrder(String networkFirewallPolicyEnforcementOrder)
Sets the value ofComputeNetworkConfig.getNetworkFirewallPolicyEnforcementOrder()- Parameters:
networkFirewallPolicyEnforcementOrder- Set the order that Firewall Rules and Firewall Policies are evaluated. Default value: "AFTER_CLASSIC_FIREWALL" Possible values: ["BEFORE_CLASSIC_FIREWALL", "AFTER_CLASSIC_FIREWALL"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network#network_firewall_policy_enforcement_order ComputeNetwork#network_firewall_policy_enforcement_order}- Returns:
this
-
project
@Stability(Stable) public ComputeNetworkConfig.Builder project(String project)
Sets the value ofComputeNetworkConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network#project ComputeNetwork#project}.- Returns:
this
-
routingMode
@Stability(Stable) public ComputeNetworkConfig.Builder routingMode(String routingMode)
Sets the value ofComputeNetworkConfig.getRoutingMode()- Parameters:
routingMode- The network-wide routing mode to use. If set to 'REGIONAL', this network's cloud routers will only advertise routes with subnetworks of this network in the same region as the router. If set to 'GLOBAL', this network's cloud routers will advertise routes with all subnetworks of this network, across regions. Possible values: ["REGIONAL", "GLOBAL"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network#routing_mode ComputeNetwork#routing_mode}- Returns:
this
-
timeouts
@Stability(Stable) public ComputeNetworkConfig.Builder timeouts(ComputeNetworkTimeouts timeouts)
Sets the value ofComputeNetworkConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network#timeouts ComputeNetwork#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public ComputeNetworkConfig.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 ComputeNetworkConfig.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 ComputeNetworkConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ComputeNetworkConfig.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 ComputeNetworkConfig.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 ComputeNetworkConfig.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 ComputeNetworkConfig.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 ComputeNetworkConfig.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 ComputeNetworkConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public ComputeNetworkConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeNetworkConfig>- Returns:
- a new instance of
ComputeNetworkConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-