Class VpcAccessConnectorConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • name

        @Stability(Stable)
        public VpcAccessConnectorConfig.Builder name​(String name)
        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)
        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)
        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)
        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)
        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)
        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)
        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)
        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)
        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
      • region

        @Stability(Stable)
        public VpcAccessConnectorConfig.Builder region​(String region)
        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
      • connection

        @Stability(Experimental)
        public VpcAccessConnectorConfig.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Sets the value of TerraformMetaArguments.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 of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public VpcAccessConnectorConfig.Builder count​(Number count)
        Sets the value of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.getProvider()
        Parameters:
        provider - the value to be set.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public VpcAccessConnectorConfig.Builder provisioners​(List<? extends Object> provisioners)
        Sets the value of TerraformMetaArguments.getProvisioners()
        Parameters:
        provisioners - the value to be set.
        Returns:
        this