Class ComputeNetwork.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_network.ComputeNetwork.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeNetwork>
- Enclosing class:
- ComputeNetwork
@Stability(Stable) public static final class ComputeNetwork.Builder extends Object implements software.amazon.jsii.Builder<ComputeNetwork>
A fluent builder forComputeNetwork.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeNetwork.BuilderautoCreateSubnetworks(com.hashicorp.cdktf.IResolvable 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.ComputeNetwork.BuilderautoCreateSubnetworks(Boolean 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.ComputeNetworkbuild()ComputeNetwork.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)ComputeNetwork.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)ComputeNetwork.Buildercount(com.hashicorp.cdktf.TerraformCount count)ComputeNetwork.Buildercount(Number count)static ComputeNetwork.Buildercreate(software.constructs.Construct scope, String id)ComputeNetwork.BuilderdeleteDefaultRoutesOnCreate(com.hashicorp.cdktf.IResolvable deleteDefaultRoutesOnCreate)If set to 'true', default routes ('0.0.0.0/0') will be deleted immediately after network creation.ComputeNetwork.BuilderdeleteDefaultRoutesOnCreate(Boolean deleteDefaultRoutesOnCreate)If set to 'true', default routes ('0.0.0.0/0') will be deleted immediately after network creation.ComputeNetwork.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)ComputeNetwork.Builderdescription(String description)An optional description of this resource.ComputeNetwork.BuilderenableUlaInternalIpv6(com.hashicorp.cdktf.IResolvable enableUlaInternalIpv6)Enable ULA internal ipv6 on this network.ComputeNetwork.BuilderenableUlaInternalIpv6(Boolean enableUlaInternalIpv6)Enable ULA internal ipv6 on this network.ComputeNetwork.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)ComputeNetwork.Builderid(String id)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network#id ComputeNetwork#id}.ComputeNetwork.BuilderinternalIpv6Range(String internalIpv6Range)When enabling ula internal ipv6, caller optionally can specify the /48 range they want from the google defined ULA prefix fd20::/20.ComputeNetwork.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)ComputeNetwork.Buildermtu(Number mtu)Maximum Transmission Unit in bytes.ComputeNetwork.Buildername(String name)Name of the resource.ComputeNetwork.BuildernetworkFirewallPolicyEnforcementOrder(String networkFirewallPolicyEnforcementOrder)Set the order that Firewall Rules and Firewall Policies are evaluated.ComputeNetwork.Builderproject(String project)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network#project ComputeNetwork#project}.ComputeNetwork.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)ComputeNetwork.Builderprovisioners(List<? extends Object> provisioners)ComputeNetwork.BuilderroutingMode(String routingMode)The network-wide routing mode to use.ComputeNetwork.Buildertimeouts(ComputeNetworkTimeouts timeouts)timeouts block.
-
-
-
Method Detail
-
create
@Stability(Stable) public static ComputeNetwork.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope- The scope in which to define this construct. This parameter is required.id- The scoped construct ID. This parameter is required.- Returns:
- a new instance of
ComputeNetwork.Builder.
-
connection
@Stability(Experimental) public ComputeNetwork.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
connection
@Stability(Experimental) public ComputeNetwork.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public ComputeNetwork.Builder count(Number count)
- Parameters:
count- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public ComputeNetwork.Builder count(com.hashicorp.cdktf.TerraformCount count)
- Parameters:
count- This parameter is required.- Returns:
this
-
dependsOn
@Stability(Experimental) public ComputeNetwork.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
- Parameters:
dependsOn- This parameter is required.- Returns:
this
-
forEach
@Stability(Experimental) public ComputeNetwork.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
- Parameters:
forEach- This parameter is required.- Returns:
this
-
lifecycle
@Stability(Experimental) public ComputeNetwork.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
- Parameters:
lifecycle- This parameter is required.- Returns:
this
-
provider
@Stability(Experimental) public ComputeNetwork.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
- Parameters:
provider- This parameter is required.- Returns:
this
-
provisioners
@Stability(Experimental) public ComputeNetwork.Builder provisioners(List<? extends Object> provisioners)
- Parameters:
provisioners- This parameter is required.- Returns:
this
-
name
@Stability(Stable) public ComputeNetwork.Builder name(String name)
Name of the resource.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}
- Parameters:
name- Name of the resource. This parameter is required.- Returns:
this
-
autoCreateSubnetworks
@Stability(Stable) public ComputeNetwork.Builder autoCreateSubnetworks(Boolean 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}
- 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. This parameter is required.- Returns:
this
-
autoCreateSubnetworks
@Stability(Stable) public ComputeNetwork.Builder autoCreateSubnetworks(com.hashicorp.cdktf.IResolvable 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}
- 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. This parameter is required.- Returns:
this
-
deleteDefaultRoutesOnCreate
@Stability(Stable) public ComputeNetwork.Builder deleteDefaultRoutesOnCreate(Boolean 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}
- Parameters:
deleteDefaultRoutesOnCreate- If set to 'true', default routes ('0.0.0.0/0') will be deleted immediately after network creation. Defaults to 'false'. This parameter is required.- Returns:
this
-
deleteDefaultRoutesOnCreate
@Stability(Stable) public ComputeNetwork.Builder deleteDefaultRoutesOnCreate(com.hashicorp.cdktf.IResolvable 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}
- Parameters:
deleteDefaultRoutesOnCreate- If set to 'true', default routes ('0.0.0.0/0') will be deleted immediately after network creation. Defaults to 'false'. This parameter is required.- Returns:
this
-
description
@Stability(Stable) public ComputeNetwork.Builder description(String 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}
- Parameters:
description- An optional description of this resource. The resource must be recreated to modify this field. This parameter is required.- Returns:
this
-
enableUlaInternalIpv6
@Stability(Stable) public ComputeNetwork.Builder enableUlaInternalIpv6(Boolean 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}
- Parameters:
enableUlaInternalIpv6- Enable ULA internal ipv6 on this network. Enabling this feature will assign a /48 from google defined ULA prefix fd20::/20. This parameter is required.- Returns:
this
-
enableUlaInternalIpv6
@Stability(Stable) public ComputeNetwork.Builder enableUlaInternalIpv6(com.hashicorp.cdktf.IResolvable 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}
- Parameters:
enableUlaInternalIpv6- Enable ULA internal ipv6 on this network. Enabling this feature will assign a /48 from google defined ULA prefix fd20::/20. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public ComputeNetwork.Builder id(String 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.
- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network#id ComputeNetwork#id}. This parameter is required.- Returns:
this
-
internalIpv6Range
@Stability(Stable) public ComputeNetwork.Builder internalIpv6Range(String 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}
- Parameters:
internalIpv6Range- When enabling ula internal ipv6, caller optionally can specify the /48 range they want from the google defined ULA prefix fd20::/20. This parameter is required.- Returns:
this
-
mtu
@Stability(Stable) public ComputeNetwork.Builder mtu(Number 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}
- Parameters:
mtu- Maximum Transmission Unit in bytes. This parameter is required.- Returns:
this
-
networkFirewallPolicyEnforcementOrder
@Stability(Stable) public ComputeNetwork.Builder networkFirewallPolicyEnforcementOrder(String 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}
- 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"]. This parameter is required.- Returns:
this
-
project
@Stability(Stable) public ComputeNetwork.Builder project(String project)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network#project ComputeNetwork#project}.- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network#project ComputeNetwork#project}. This parameter is required.- Returns:
this
-
routingMode
@Stability(Stable) public ComputeNetwork.Builder routingMode(String 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}
- Parameters:
routingMode- The network-wide routing mode to use. This parameter is required.- Returns:
this
-
timeouts
@Stability(Stable) public ComputeNetwork.Builder timeouts(ComputeNetworkTimeouts 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}
- Parameters:
timeouts- timeouts block. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public ComputeNetwork build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeNetwork>- Returns:
- a newly built instance of
ComputeNetwork.
-
-