Class VpcAccessConnectorConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.vpc_access_connector.VpcAccessConnectorConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<VpcAccessConnectorConfig>
- Enclosing interface:
- VpcAccessConnectorConfig
@Stability(Stable) public static final class VpcAccessConnectorConfig.Builder extends Object implements software.amazon.jsii.Builder<VpcAccessConnectorConfig>
A builder forVpcAccessConnectorConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
name
@Stability(Stable) public VpcAccessConnectorConfig.Builder name(String name)
Sets the value ofVpcAccessConnectorConfig.getName()- Parameters:
name- The name of the resource (Max 25 characters). This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vpc_access_connector#name VpcAccessConnector#name}- Returns:
this
-
id
@Stability(Stable) public VpcAccessConnectorConfig.Builder id(String id)
Sets the value ofVpcAccessConnectorConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vpc_access_connector#id VpcAccessConnector#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
-
ipCidrRange
@Stability(Stable) public VpcAccessConnectorConfig.Builder ipCidrRange(String ipCidrRange)
Sets the value ofVpcAccessConnectorConfig.getIpCidrRange()- Parameters:
ipCidrRange- The range of internal addresses that follows RFC 4632 notation. Example: '10.132.0.0/28'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vpc_access_connector#ip_cidr_range VpcAccessConnector#ip_cidr_range}- Returns:
this
-
machineType
@Stability(Stable) public VpcAccessConnectorConfig.Builder machineType(String machineType)
Sets the value ofVpcAccessConnectorConfig.getMachineType()- Parameters:
machineType- Machine type of VM Instance underlying connector. Default is e2-micro. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vpc_access_connector#machine_type VpcAccessConnector#machine_type}- Returns:
this
-
maxInstances
@Stability(Stable) public VpcAccessConnectorConfig.Builder maxInstances(Number maxInstances)
Sets the value ofVpcAccessConnectorConfig.getMaxInstances()- Parameters:
maxInstances- Maximum value of instances in autoscaling group underlying the connector. Value must be between 3 and 10, inclusive. Must be higher than the value specified by min_instances. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vpc_access_connector#max_instances VpcAccessConnector#max_instances}- Returns:
this
-
maxThroughput
@Stability(Stable) public VpcAccessConnectorConfig.Builder maxThroughput(Number maxThroughput)
Sets the value ofVpcAccessConnectorConfig.getMaxThroughput()- Parameters:
maxThroughput- Maximum throughput of the connector in Mbps, must be greater than 'min_throughput'. Default is 300. Refers to the expected throughput when using an e2-micro machine type. Value must be a multiple of 100 from 300 through 1000. Must be higher than the value specified by min_throughput. If both max_throughput and max_instances are provided, max_instances takes precedence over max_throughput. The use of max_throughput is discouraged in favor of max_instances. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vpc_access_connector#max_throughput VpcAccessConnector#max_throughput}- Returns:
this
-
minInstances
@Stability(Stable) public VpcAccessConnectorConfig.Builder minInstances(Number minInstances)
Sets the value ofVpcAccessConnectorConfig.getMinInstances()- Parameters:
minInstances- Minimum value of instances in autoscaling group underlying the connector. Value must be between 2 and 9, inclusive. Must be lower than the value specified by max_instances. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vpc_access_connector#min_instances VpcAccessConnector#min_instances}- Returns:
this
-
minThroughput
@Stability(Stable) public VpcAccessConnectorConfig.Builder minThroughput(Number minThroughput)
Sets the value ofVpcAccessConnectorConfig.getMinThroughput()- Parameters:
minThroughput- Minimum throughput of the connector in Mbps. Default and min is 200. Refers to the expected throughput when using an e2-micro machine type. Value must be a multiple of 100 from 200 through 900. Must be lower than the value specified by max_throughput. If both min_throughput and min_instances are provided, min_instances takes precedence over min_throughput. The use of min_throughput is discouraged in favor of min_instances. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vpc_access_connector#min_throughput VpcAccessConnector#min_throughput}- Returns:
this
-
network
@Stability(Stable) public VpcAccessConnectorConfig.Builder network(String network)
Sets the value ofVpcAccessConnectorConfig.getNetwork()- Parameters:
network- Name or self_link of the VPC network. Required if 'ip_cidr_range' is set. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vpc_access_connector#network VpcAccessConnector#network}- Returns:
this
-
project
@Stability(Stable) public VpcAccessConnectorConfig.Builder project(String project)
Sets the value ofVpcAccessConnectorConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vpc_access_connector#project VpcAccessConnector#project}.- Returns:
this
-
region
@Stability(Stable) public VpcAccessConnectorConfig.Builder region(String region)
Sets the value ofVpcAccessConnectorConfig.getRegion()- Parameters:
region- Region where the VPC Access connector resides. If it is not provided, the provider region is used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vpc_access_connector#region VpcAccessConnector#region}- Returns:
this
-
subnet
@Stability(Stable) public VpcAccessConnectorConfig.Builder subnet(VpcAccessConnectorSubnet subnet)
Sets the value ofVpcAccessConnectorConfig.getSubnet()- Parameters:
subnet- subnet block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vpc_access_connector#subnet VpcAccessConnector#subnet}- Returns:
this
-
timeouts
@Stability(Stable) public VpcAccessConnectorConfig.Builder timeouts(VpcAccessConnectorTimeouts timeouts)
Sets the value ofVpcAccessConnectorConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vpc_access_connector#timeouts VpcAccessConnector#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public VpcAccessConnectorConfig.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 VpcAccessConnectorConfig.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 VpcAccessConnectorConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public VpcAccessConnectorConfig.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 VpcAccessConnectorConfig.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 VpcAccessConnectorConfig.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 VpcAccessConnectorConfig.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 VpcAccessConnectorConfig.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 VpcAccessConnectorConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public VpcAccessConnectorConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VpcAccessConnectorConfig>- Returns:
- a new instance of
VpcAccessConnectorConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-