Class ComputeHaVpnGateway.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_ha_vpn_gateway.ComputeHaVpnGateway.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeHaVpnGateway>
- Enclosing class:
- ComputeHaVpnGateway
@Stability(Stable) public static final class ComputeHaVpnGateway.Builder extends Object implements software.amazon.jsii.Builder<ComputeHaVpnGateway>
A fluent builder forComputeHaVpnGateway.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeHaVpnGatewaybuild()ComputeHaVpnGateway.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)ComputeHaVpnGateway.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)ComputeHaVpnGateway.Buildercount(com.hashicorp.cdktf.TerraformCount count)ComputeHaVpnGateway.Buildercount(Number count)static ComputeHaVpnGateway.Buildercreate(software.constructs.Construct scope, String id)ComputeHaVpnGateway.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)ComputeHaVpnGateway.Builderdescription(String description)An optional description of this resource.ComputeHaVpnGateway.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)ComputeHaVpnGateway.BuildergatewayIpVersion(String gatewayIpVersion)The IP family of the gateway IPs for the HA-VPN gateway interfaces.ComputeHaVpnGateway.Builderid(String id)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_ha_vpn_gateway#id ComputeHaVpnGateway#id}.ComputeHaVpnGateway.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)ComputeHaVpnGateway.Buildername(String name)Name of the resource.ComputeHaVpnGateway.Buildernetwork(String network)The network this VPN gateway is accepting traffic for.ComputeHaVpnGateway.Builderproject(String project)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_ha_vpn_gateway#project ComputeHaVpnGateway#project}.ComputeHaVpnGateway.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)ComputeHaVpnGateway.Builderprovisioners(List<? extends Object> provisioners)ComputeHaVpnGateway.Builderregion(String region)The region this gateway should sit in.ComputeHaVpnGateway.BuilderstackType(String stackType)The stack type for this VPN gateway to identify the IP protocols that are enabled.ComputeHaVpnGateway.Buildertimeouts(ComputeHaVpnGatewayTimeouts timeouts)timeouts block.ComputeHaVpnGateway.BuildervpnInterfaces(com.hashicorp.cdktf.IResolvable vpnInterfaces)vpn_interfaces block.ComputeHaVpnGateway.BuildervpnInterfaces(List<? extends ComputeHaVpnGatewayVpnInterfaces> vpnInterfaces)vpn_interfaces block.
-
-
-
Method Detail
-
create
@Stability(Stable) public static ComputeHaVpnGateway.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
ComputeHaVpnGateway.Builder.
-
connection
@Stability(Experimental) public ComputeHaVpnGateway.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
connection
@Stability(Experimental) public ComputeHaVpnGateway.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public ComputeHaVpnGateway.Builder count(Number count)
- Parameters:
count- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public ComputeHaVpnGateway.Builder count(com.hashicorp.cdktf.TerraformCount count)
- Parameters:
count- This parameter is required.- Returns:
this
-
dependsOn
@Stability(Experimental) public ComputeHaVpnGateway.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
- Parameters:
dependsOn- This parameter is required.- Returns:
this
-
forEach
@Stability(Experimental) public ComputeHaVpnGateway.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
- Parameters:
forEach- This parameter is required.- Returns:
this
-
lifecycle
@Stability(Experimental) public ComputeHaVpnGateway.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
- Parameters:
lifecycle- This parameter is required.- Returns:
this
-
provider
@Stability(Experimental) public ComputeHaVpnGateway.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
- Parameters:
provider- This parameter is required.- Returns:
this
-
provisioners
@Stability(Experimental) public ComputeHaVpnGateway.Builder provisioners(List<? extends Object> provisioners)
- Parameters:
provisioners- This parameter is required.- Returns:
this
-
name
@Stability(Stable) public ComputeHaVpnGateway.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_ha_vpn_gateway#name ComputeHaVpnGateway#name}
- Parameters:
name- Name of the resource. This parameter is required.- Returns:
this
-
network
@Stability(Stable) public ComputeHaVpnGateway.Builder network(String network)
The network this VPN gateway is accepting traffic for.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_ha_vpn_gateway#network ComputeHaVpnGateway#network}
- Parameters:
network- The network this VPN gateway is accepting traffic for. This parameter is required.- Returns:
this
-
description
@Stability(Stable) public ComputeHaVpnGateway.Builder description(String description)
An optional description of this resource.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_ha_vpn_gateway#description ComputeHaVpnGateway#description}
- Parameters:
description- An optional description of this resource. This parameter is required.- Returns:
this
-
gatewayIpVersion
@Stability(Stable) public ComputeHaVpnGateway.Builder gatewayIpVersion(String gatewayIpVersion)
The IP family of the gateway IPs for the HA-VPN gateway interfaces.If not specified, IPV4 will be used. Default value: "IPV4" Possible values: ["IPV4", "IPV6"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_ha_vpn_gateway#gateway_ip_version ComputeHaVpnGateway#gateway_ip_version}
- Parameters:
gatewayIpVersion- The IP family of the gateway IPs for the HA-VPN gateway interfaces. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public ComputeHaVpnGateway.Builder id(String id)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_ha_vpn_gateway#id ComputeHaVpnGateway#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_ha_vpn_gateway#id ComputeHaVpnGateway#id}. This parameter is required.- Returns:
this
-
project
@Stability(Stable) public ComputeHaVpnGateway.Builder project(String project)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_ha_vpn_gateway#project ComputeHaVpnGateway#project}.- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_ha_vpn_gateway#project ComputeHaVpnGateway#project}. This parameter is required.- Returns:
this
-
region
@Stability(Stable) public ComputeHaVpnGateway.Builder region(String region)
The region this gateway should sit in.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_ha_vpn_gateway#region ComputeHaVpnGateway#region}
- Parameters:
region- The region this gateway should sit in. This parameter is required.- Returns:
this
-
stackType
@Stability(Stable) public ComputeHaVpnGateway.Builder stackType(String stackType)
The stack type for this VPN gateway to identify the IP protocols that are enabled.If not specified, IPV4_ONLY will be used. Default value: "IPV4_ONLY" Possible values: ["IPV4_ONLY", "IPV4_IPV6", "IPV6_ONLY"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_ha_vpn_gateway#stack_type ComputeHaVpnGateway#stack_type}
- Parameters:
stackType- The stack type for this VPN gateway to identify the IP protocols that are enabled. This parameter is required.- Returns:
this
-
timeouts
@Stability(Stable) public ComputeHaVpnGateway.Builder timeouts(ComputeHaVpnGatewayTimeouts timeouts)
timeouts block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_ha_vpn_gateway#timeouts ComputeHaVpnGateway#timeouts}
- Parameters:
timeouts- timeouts block. This parameter is required.- Returns:
this
-
vpnInterfaces
@Stability(Stable) public ComputeHaVpnGateway.Builder vpnInterfaces(com.hashicorp.cdktf.IResolvable vpnInterfaces)
vpn_interfaces block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_ha_vpn_gateway#vpn_interfaces ComputeHaVpnGateway#vpn_interfaces}
- Parameters:
vpnInterfaces- vpn_interfaces block. This parameter is required.- Returns:
this
-
vpnInterfaces
@Stability(Stable) public ComputeHaVpnGateway.Builder vpnInterfaces(List<? extends ComputeHaVpnGatewayVpnInterfaces> vpnInterfaces)
vpn_interfaces block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_ha_vpn_gateway#vpn_interfaces ComputeHaVpnGateway#vpn_interfaces}
- Parameters:
vpnInterfaces- vpn_interfaces block. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public ComputeHaVpnGateway build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeHaVpnGateway>- Returns:
- a newly built instance of
ComputeHaVpnGateway.
-
-