Class VpcConfig.Builder

  • All Implemented Interfaces:
    software.amazon.jsii.Builder<VpcConfig>
    Enclosing interface:
    VpcConfig

    @Stability(Stable)
    public static final class VpcConfig.Builder
    extends Object
    implements software.amazon.jsii.Builder<VpcConfig>
    A builder for VpcConfig
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • assignGeneratedIpv6CidrBlock

        @Stability(Stable)
        public VpcConfig.Builder assignGeneratedIpv6CidrBlock​(Boolean assignGeneratedIpv6CidrBlock)
        Parameters:
        assignGeneratedIpv6CidrBlock - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc#assign_generated_ipv6_cidr_block Vpc#assign_generated_ipv6_cidr_block}.
        Returns:
        this
      • assignGeneratedIpv6CidrBlock

        @Stability(Stable)
        public VpcConfig.Builder assignGeneratedIpv6CidrBlock​(com.hashicorp.cdktf.IResolvable assignGeneratedIpv6CidrBlock)
        Parameters:
        assignGeneratedIpv6CidrBlock - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc#assign_generated_ipv6_cidr_block Vpc#assign_generated_ipv6_cidr_block}.
        Returns:
        this
      • cidrBlock

        @Stability(Stable)
        public VpcConfig.Builder cidrBlock​(String cidrBlock)
        Sets the value of VpcConfig.getCidrBlock()
        Parameters:
        cidrBlock - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc#cidr_block Vpc#cidr_block}.
        Returns:
        this
      • enableDnsHostnames

        @Stability(Stable)
        public VpcConfig.Builder enableDnsHostnames​(Boolean enableDnsHostnames)
        Parameters:
        enableDnsHostnames - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc#enable_dns_hostnames Vpc#enable_dns_hostnames}.
        Returns:
        this
      • enableDnsHostnames

        @Stability(Stable)
        public VpcConfig.Builder enableDnsHostnames​(com.hashicorp.cdktf.IResolvable enableDnsHostnames)
        Parameters:
        enableDnsHostnames - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc#enable_dns_hostnames Vpc#enable_dns_hostnames}.
        Returns:
        this
      • enableDnsSupport

        @Stability(Stable)
        public VpcConfig.Builder enableDnsSupport​(Boolean enableDnsSupport)
        Parameters:
        enableDnsSupport - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc#enable_dns_support Vpc#enable_dns_support}.
        Returns:
        this
      • enableDnsSupport

        @Stability(Stable)
        public VpcConfig.Builder enableDnsSupport​(com.hashicorp.cdktf.IResolvable enableDnsSupport)
        Parameters:
        enableDnsSupport - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc#enable_dns_support Vpc#enable_dns_support}.
        Returns:
        this
      • enableNetworkAddressUsageMetrics

        @Stability(Stable)
        public VpcConfig.Builder enableNetworkAddressUsageMetrics​(Boolean enableNetworkAddressUsageMetrics)
        Parameters:
        enableNetworkAddressUsageMetrics - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc#enable_network_address_usage_metrics Vpc#enable_network_address_usage_metrics}.
        Returns:
        this
      • enableNetworkAddressUsageMetrics

        @Stability(Stable)
        public VpcConfig.Builder enableNetworkAddressUsageMetrics​(com.hashicorp.cdktf.IResolvable enableNetworkAddressUsageMetrics)
        Parameters:
        enableNetworkAddressUsageMetrics - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc#enable_network_address_usage_metrics Vpc#enable_network_address_usage_metrics}.
        Returns:
        this
      • id

        @Stability(Stable)
        public VpcConfig.Builder id​(String id)
        Sets the value of VpcConfig.getId()
        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc#id Vpc#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
      • instanceTenancy

        @Stability(Stable)
        public VpcConfig.Builder instanceTenancy​(String instanceTenancy)
        Parameters:
        instanceTenancy - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc#instance_tenancy Vpc#instance_tenancy}.
        Returns:
        this
      • ipv4IpamPoolId

        @Stability(Stable)
        public VpcConfig.Builder ipv4IpamPoolId​(String ipv4IpamPoolId)
        Parameters:
        ipv4IpamPoolId - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc#ipv4_ipam_pool_id Vpc#ipv4_ipam_pool_id}.
        Returns:
        this
      • ipv4NetmaskLength

        @Stability(Stable)
        public VpcConfig.Builder ipv4NetmaskLength​(Number ipv4NetmaskLength)
        Parameters:
        ipv4NetmaskLength - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc#ipv4_netmask_length Vpc#ipv4_netmask_length}.
        Returns:
        this
      • ipv6CidrBlock

        @Stability(Stable)
        public VpcConfig.Builder ipv6CidrBlock​(String ipv6CidrBlock)
        Parameters:
        ipv6CidrBlock - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc#ipv6_cidr_block Vpc#ipv6_cidr_block}.
        Returns:
        this
      • ipv6CidrBlockNetworkBorderGroup

        @Stability(Stable)
        public VpcConfig.Builder ipv6CidrBlockNetworkBorderGroup​(String ipv6CidrBlockNetworkBorderGroup)
        Parameters:
        ipv6CidrBlockNetworkBorderGroup - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc#ipv6_cidr_block_network_border_group Vpc#ipv6_cidr_block_network_border_group}.
        Returns:
        this
      • ipv6IpamPoolId

        @Stability(Stable)
        public VpcConfig.Builder ipv6IpamPoolId​(String ipv6IpamPoolId)
        Parameters:
        ipv6IpamPoolId - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc#ipv6_ipam_pool_id Vpc#ipv6_ipam_pool_id}.
        Returns:
        this
      • ipv6NetmaskLength

        @Stability(Stable)
        public VpcConfig.Builder ipv6NetmaskLength​(Number ipv6NetmaskLength)
        Parameters:
        ipv6NetmaskLength - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc#ipv6_netmask_length Vpc#ipv6_netmask_length}.
        Returns:
        this
      • tags

        @Stability(Stable)
        public VpcConfig.Builder tags​(Map<String,​String> tags)
        Sets the value of VpcConfig.getTags()
        Parameters:
        tags - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc#tags Vpc#tags}.
        Returns:
        this
      • tagsAll

        @Stability(Stable)
        public VpcConfig.Builder tagsAll​(Map<String,​String> tagsAll)
        Sets the value of VpcConfig.getTagsAll()
        Parameters:
        tagsAll - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc#tags_all Vpc#tags_all}.
        Returns:
        this
      • connection

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

        @Stability(Experimental)
        public VpcConfig.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 VpcConfig.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 VpcConfig.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 VpcConfig.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 VpcConfig.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 VpcConfig.Builder provisioners​(List<? extends Object> provisioners)
        Sets the value of TerraformMetaArguments.getProvisioners()
        Parameters:
        provisioners - the value to be set.
        Returns:
        this
      • build

        @Stability(Stable)
        public VpcConfig build()
        Builds the configured instance.
        Specified by:
        build in interface software.amazon.jsii.Builder<VpcConfig>
        Returns:
        a new instance of VpcConfig
        Throws:
        NullPointerException - if any required attribute was not provided