Class VpcConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.vpc.VpcConfig.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VpcConfig.BuilderassignGeneratedIpv6CidrBlock(com.hashicorp.cdktf.IResolvable assignGeneratedIpv6CidrBlock)Sets the value ofVpcConfig.getAssignGeneratedIpv6CidrBlock()VpcConfig.BuilderassignGeneratedIpv6CidrBlock(Boolean assignGeneratedIpv6CidrBlock)Sets the value ofVpcConfig.getAssignGeneratedIpv6CidrBlock()VpcConfigbuild()Builds the configured instance.VpcConfig.BuildercidrBlock(String cidrBlock)Sets the value ofVpcConfig.getCidrBlock()VpcConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()VpcConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()VpcConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()VpcConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()VpcConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()VpcConfig.BuilderenableDnsHostnames(com.hashicorp.cdktf.IResolvable enableDnsHostnames)Sets the value ofVpcConfig.getEnableDnsHostnames()VpcConfig.BuilderenableDnsHostnames(Boolean enableDnsHostnames)Sets the value ofVpcConfig.getEnableDnsHostnames()VpcConfig.BuilderenableDnsSupport(com.hashicorp.cdktf.IResolvable enableDnsSupport)Sets the value ofVpcConfig.getEnableDnsSupport()VpcConfig.BuilderenableDnsSupport(Boolean enableDnsSupport)Sets the value ofVpcConfig.getEnableDnsSupport()VpcConfig.BuilderenableNetworkAddressUsageMetrics(com.hashicorp.cdktf.IResolvable enableNetworkAddressUsageMetrics)Sets the value ofVpcConfig.getEnableNetworkAddressUsageMetrics()VpcConfig.BuilderenableNetworkAddressUsageMetrics(Boolean enableNetworkAddressUsageMetrics)Sets the value ofVpcConfig.getEnableNetworkAddressUsageMetrics()VpcConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()VpcConfig.Builderid(String id)Sets the value ofVpcConfig.getId()VpcConfig.BuilderinstanceTenancy(String instanceTenancy)Sets the value ofVpcConfig.getInstanceTenancy()VpcConfig.Builderipv4IpamPoolId(String ipv4IpamPoolId)Sets the value ofVpcConfig.getIpv4IpamPoolId()VpcConfig.Builderipv4NetmaskLength(Number ipv4NetmaskLength)Sets the value ofVpcConfig.getIpv4NetmaskLength()VpcConfig.Builderipv6CidrBlock(String ipv6CidrBlock)Sets the value ofVpcConfig.getIpv6CidrBlock()VpcConfig.Builderipv6CidrBlockNetworkBorderGroup(String ipv6CidrBlockNetworkBorderGroup)Sets the value ofVpcConfig.getIpv6CidrBlockNetworkBorderGroup()VpcConfig.Builderipv6IpamPoolId(String ipv6IpamPoolId)Sets the value ofVpcConfig.getIpv6IpamPoolId()VpcConfig.Builderipv6NetmaskLength(Number ipv6NetmaskLength)Sets the value ofVpcConfig.getIpv6NetmaskLength()VpcConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()VpcConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()VpcConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()VpcConfig.Buildertags(Map<String,String> tags)Sets the value ofVpcConfig.getTags()VpcConfig.BuildertagsAll(Map<String,String> tagsAll)Sets the value ofVpcConfig.getTagsAll()
-
-
-
Method Detail
-
assignGeneratedIpv6CidrBlock
@Stability(Stable) public VpcConfig.Builder assignGeneratedIpv6CidrBlock(Boolean assignGeneratedIpv6CidrBlock)
Sets the value ofVpcConfig.getAssignGeneratedIpv6CidrBlock()- 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)
Sets the value ofVpcConfig.getAssignGeneratedIpv6CidrBlock()- 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 ofVpcConfig.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)
Sets the value ofVpcConfig.getEnableDnsHostnames()- 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)
Sets the value ofVpcConfig.getEnableDnsHostnames()- 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)
Sets the value ofVpcConfig.getEnableDnsSupport()- 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)
Sets the value ofVpcConfig.getEnableDnsSupport()- 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)
Sets the value ofVpcConfig.getEnableNetworkAddressUsageMetrics()- 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)
Sets the value ofVpcConfig.getEnableNetworkAddressUsageMetrics()- 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 ofVpcConfig.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)
Sets the value ofVpcConfig.getInstanceTenancy()- 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)
Sets the value ofVpcConfig.getIpv4IpamPoolId()- 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)
Sets the value ofVpcConfig.getIpv4NetmaskLength()- 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)
Sets the value ofVpcConfig.getIpv6CidrBlock()- 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)
Sets the value ofVpcConfig.getIpv6CidrBlockNetworkBorderGroup()- 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)
Sets the value ofVpcConfig.getIpv6IpamPoolId()- 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)
Sets the value ofVpcConfig.getIpv6NetmaskLength()- 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 ofVpcConfig.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 ofVpcConfig.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 ofTerraformMetaArguments.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 ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public VpcConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.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 ofTerraformMetaArguments.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 ofTerraformMetaArguments.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 ofTerraformMetaArguments.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 ofTerraformMetaArguments.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 ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public VpcConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public VpcConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VpcConfig>- Returns:
- a new instance of
VpcConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-