Class ComputeHaVpnGatewayConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_ha_vpn_gateway.ComputeHaVpnGatewayConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeHaVpnGatewayConfig>
- Enclosing interface:
- ComputeHaVpnGatewayConfig
@Stability(Stable) public static final class ComputeHaVpnGatewayConfig.Builder extends Object implements software.amazon.jsii.Builder<ComputeHaVpnGatewayConfig>
A builder forComputeHaVpnGatewayConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
name
@Stability(Stable) public ComputeHaVpnGatewayConfig.Builder name(String name)
Sets the value ofComputeHaVpnGatewayConfig.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_ha_vpn_gateway#name ComputeHaVpnGateway#name}- Returns:
this
-
network
@Stability(Stable) public ComputeHaVpnGatewayConfig.Builder network(String network)
Sets the value ofComputeHaVpnGatewayConfig.getNetwork()- Parameters:
network- The network this VPN gateway is accepting traffic for. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_ha_vpn_gateway#network ComputeHaVpnGateway#network}- Returns:
this
-
description
@Stability(Stable) public ComputeHaVpnGatewayConfig.Builder description(String description)
Sets the value ofComputeHaVpnGatewayConfig.getDescription()- Parameters:
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}- Returns:
this
-
gatewayIpVersion
@Stability(Stable) public ComputeHaVpnGatewayConfig.Builder gatewayIpVersion(String gatewayIpVersion)
Sets the value ofComputeHaVpnGatewayConfig.getGatewayIpVersion()- Parameters:
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}- Returns:
this
-
id
@Stability(Stable) public ComputeHaVpnGatewayConfig.Builder id(String id)
Sets the value ofComputeHaVpnGatewayConfig.getId()- 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}. 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
-
project
@Stability(Stable) public ComputeHaVpnGatewayConfig.Builder project(String project)
Sets the value ofComputeHaVpnGatewayConfig.getProject()- 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}.- Returns:
this
-
region
@Stability(Stable) public ComputeHaVpnGatewayConfig.Builder region(String region)
Sets the value ofComputeHaVpnGatewayConfig.getRegion()- Parameters:
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}- Returns:
this
-
stackType
@Stability(Stable) public ComputeHaVpnGatewayConfig.Builder stackType(String stackType)
Sets the value ofComputeHaVpnGatewayConfig.getStackType()- Parameters:
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}- Returns:
this
-
timeouts
@Stability(Stable) public ComputeHaVpnGatewayConfig.Builder timeouts(ComputeHaVpnGatewayTimeouts timeouts)
Sets the value ofComputeHaVpnGatewayConfig.getTimeouts()- Parameters:
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}- Returns:
this
-
vpnInterfaces
@Stability(Stable) public ComputeHaVpnGatewayConfig.Builder vpnInterfaces(com.hashicorp.cdktf.IResolvable vpnInterfaces)
Sets the value ofComputeHaVpnGatewayConfig.getVpnInterfaces()- Parameters:
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}- Returns:
this
-
vpnInterfaces
@Stability(Stable) public ComputeHaVpnGatewayConfig.Builder vpnInterfaces(List<? extends ComputeHaVpnGatewayVpnInterfaces> vpnInterfaces)
Sets the value ofComputeHaVpnGatewayConfig.getVpnInterfaces()- Parameters:
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}- Returns:
this
-
connection
@Stability(Experimental) public ComputeHaVpnGatewayConfig.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 ComputeHaVpnGatewayConfig.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 ComputeHaVpnGatewayConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ComputeHaVpnGatewayConfig.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 ComputeHaVpnGatewayConfig.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 ComputeHaVpnGatewayConfig.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 ComputeHaVpnGatewayConfig.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 ComputeHaVpnGatewayConfig.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 ComputeHaVpnGatewayConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public ComputeHaVpnGatewayConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeHaVpnGatewayConfig>- Returns:
- a new instance of
ComputeHaVpnGatewayConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-