Class EdgecontainerVpnConnectionConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.edgecontainer_vpn_connection.EdgecontainerVpnConnectionConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<EdgecontainerVpnConnectionConfig>
- Enclosing interface:
- EdgecontainerVpnConnectionConfig
@Stability(Stable) public static final class EdgecontainerVpnConnectionConfig.Builder extends Object implements software.amazon.jsii.Builder<EdgecontainerVpnConnectionConfig>
A builder forEdgecontainerVpnConnectionConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
cluster
@Stability(Stable) public EdgecontainerVpnConnectionConfig.Builder cluster(String cluster)
Sets the value ofEdgecontainerVpnConnectionConfig.getCluster()- Parameters:
cluster- The canonical Cluster name to connect to. It is in the form of projects/{project}/locations/{location}/clusters/{cluster}. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/edgecontainer_vpn_connection#cluster EdgecontainerVpnConnection#cluster}- Returns:
this
-
location
@Stability(Stable) public EdgecontainerVpnConnectionConfig.Builder location(String location)
Sets the value ofEdgecontainerVpnConnectionConfig.getLocation()- Parameters:
location- Google Cloud Platform location. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/edgecontainer_vpn_connection#location EdgecontainerVpnConnection#location}- Returns:
this
-
name
@Stability(Stable) public EdgecontainerVpnConnectionConfig.Builder name(String name)
Sets the value ofEdgecontainerVpnConnectionConfig.getName()- Parameters:
name- The resource name of VPN connection. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/edgecontainer_vpn_connection#name EdgecontainerVpnConnection#name}- Returns:
this
-
enableHighAvailability
@Stability(Stable) public EdgecontainerVpnConnectionConfig.Builder enableHighAvailability(Boolean enableHighAvailability)
Sets the value ofEdgecontainerVpnConnectionConfig.getEnableHighAvailability()- Parameters:
enableHighAvailability- Whether this VPN connection has HA enabled on cluster side. If enabled, when creating VPN connection we will attempt to use 2 ANG floating IPs. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/edgecontainer_vpn_connection#enable_high_availability EdgecontainerVpnConnection#enable_high_availability}- Returns:
this
-
enableHighAvailability
@Stability(Stable) public EdgecontainerVpnConnectionConfig.Builder enableHighAvailability(com.hashicorp.cdktf.IResolvable enableHighAvailability)
Sets the value ofEdgecontainerVpnConnectionConfig.getEnableHighAvailability()- Parameters:
enableHighAvailability- Whether this VPN connection has HA enabled on cluster side. If enabled, when creating VPN connection we will attempt to use 2 ANG floating IPs. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/edgecontainer_vpn_connection#enable_high_availability EdgecontainerVpnConnection#enable_high_availability}- Returns:
this
-
id
@Stability(Stable) public EdgecontainerVpnConnectionConfig.Builder id(String id)
Sets the value ofEdgecontainerVpnConnectionConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/edgecontainer_vpn_connection#id EdgecontainerVpnConnection#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
-
labels
@Stability(Stable) public EdgecontainerVpnConnectionConfig.Builder labels(Map<String,String> labels)
Sets the value ofEdgecontainerVpnConnectionConfig.getLabels()- Parameters:
labels- Labels associated with this resource. **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/edgecontainer_vpn_connection#labels EdgecontainerVpnConnection#labels}- Returns:
this
-
natGatewayIp
@Stability(Stable) public EdgecontainerVpnConnectionConfig.Builder natGatewayIp(String natGatewayIp)
Sets the value ofEdgecontainerVpnConnectionConfig.getNatGatewayIp()- Parameters:
natGatewayIp- NAT gateway IP, or WAN IP address. If a customer has multiple NAT IPs, the customer needs to configure NAT such that only one external IP maps to the GMEC Anthos cluster. This is empty if NAT is not used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/edgecontainer_vpn_connection#nat_gateway_ip EdgecontainerVpnConnection#nat_gateway_ip}- Returns:
this
-
project
@Stability(Stable) public EdgecontainerVpnConnectionConfig.Builder project(String project)
Sets the value ofEdgecontainerVpnConnectionConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/edgecontainer_vpn_connection#project EdgecontainerVpnConnection#project}.- Returns:
this
-
router
@Stability(Stable) public EdgecontainerVpnConnectionConfig.Builder router(String router)
Sets the value ofEdgecontainerVpnConnectionConfig.getRouter()- Parameters:
router- The VPN connection Cloud Router name. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/edgecontainer_vpn_connection#router EdgecontainerVpnConnection#router}- Returns:
this
-
timeouts
@Stability(Stable) public EdgecontainerVpnConnectionConfig.Builder timeouts(EdgecontainerVpnConnectionTimeouts timeouts)
Sets the value ofEdgecontainerVpnConnectionConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/edgecontainer_vpn_connection#timeouts EdgecontainerVpnConnection#timeouts}- Returns:
this
-
vpc
@Stability(Stable) public EdgecontainerVpnConnectionConfig.Builder vpc(String vpc)
Sets the value ofEdgecontainerVpnConnectionConfig.getVpc()- Parameters:
vpc- The network ID of VPC to connect to. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/edgecontainer_vpn_connection#vpc EdgecontainerVpnConnection#vpc}- Returns:
this
-
vpcProject
@Stability(Stable) public EdgecontainerVpnConnectionConfig.Builder vpcProject(EdgecontainerVpnConnectionVpcProject vpcProject)
Sets the value ofEdgecontainerVpnConnectionConfig.getVpcProject()- Parameters:
vpcProject- vpc_project block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/edgecontainer_vpn_connection#vpc_project EdgecontainerVpnConnection#vpc_project}- Returns:
this
-
connection
@Stability(Experimental) public EdgecontainerVpnConnectionConfig.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 EdgecontainerVpnConnectionConfig.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 EdgecontainerVpnConnectionConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public EdgecontainerVpnConnectionConfig.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 EdgecontainerVpnConnectionConfig.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 EdgecontainerVpnConnectionConfig.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 EdgecontainerVpnConnectionConfig.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 EdgecontainerVpnConnectionConfig.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 EdgecontainerVpnConnectionConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public EdgecontainerVpnConnectionConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EdgecontainerVpnConnectionConfig>- Returns:
- a new instance of
EdgecontainerVpnConnectionConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-