Class VpcPeeringConnectionConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.vpc_peering_connection.VpcPeeringConnectionConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<VpcPeeringConnectionConfig>
- Enclosing interface:
- VpcPeeringConnectionConfig
@Stability(Stable) public static final class VpcPeeringConnectionConfig.Builder extends Object implements software.amazon.jsii.Builder<VpcPeeringConnectionConfig>
A builder forVpcPeeringConnectionConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
peerVpcId
@Stability(Stable) public VpcPeeringConnectionConfig.Builder peerVpcId(String peerVpcId)
Sets the value ofVpcPeeringConnectionConfig.getPeerVpcId()- Parameters:
peerVpcId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc_peering_connection#peer_vpc_id VpcPeeringConnection#peer_vpc_id}. This parameter is required.- Returns:
this
-
vpcId
@Stability(Stable) public VpcPeeringConnectionConfig.Builder vpcId(String vpcId)
Sets the value ofVpcPeeringConnectionConfig.getVpcId()- Parameters:
vpcId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc_peering_connection#vpc_id VpcPeeringConnection#vpc_id}. This parameter is required.- Returns:
this
-
accepter
@Stability(Stable) public VpcPeeringConnectionConfig.Builder accepter(VpcPeeringConnectionAccepter accepter)
Sets the value ofVpcPeeringConnectionConfig.getAccepter()- Parameters:
accepter- accepter block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc_peering_connection#accepter VpcPeeringConnection#accepter}- Returns:
this
-
autoAccept
@Stability(Stable) public VpcPeeringConnectionConfig.Builder autoAccept(Boolean autoAccept)
Sets the value ofVpcPeeringConnectionConfig.getAutoAccept()- Parameters:
autoAccept- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc_peering_connection#auto_accept VpcPeeringConnection#auto_accept}.- Returns:
this
-
autoAccept
@Stability(Stable) public VpcPeeringConnectionConfig.Builder autoAccept(com.hashicorp.cdktf.IResolvable autoAccept)
Sets the value ofVpcPeeringConnectionConfig.getAutoAccept()- Parameters:
autoAccept- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc_peering_connection#auto_accept VpcPeeringConnection#auto_accept}.- Returns:
this
-
id
@Stability(Stable) public VpcPeeringConnectionConfig.Builder id(String id)
Sets the value ofVpcPeeringConnectionConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc_peering_connection#id VpcPeeringConnection#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
-
peerOwnerId
@Stability(Stable) public VpcPeeringConnectionConfig.Builder peerOwnerId(String peerOwnerId)
Sets the value ofVpcPeeringConnectionConfig.getPeerOwnerId()- Parameters:
peerOwnerId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc_peering_connection#peer_owner_id VpcPeeringConnection#peer_owner_id}.- Returns:
this
-
peerRegion
@Stability(Stable) public VpcPeeringConnectionConfig.Builder peerRegion(String peerRegion)
Sets the value ofVpcPeeringConnectionConfig.getPeerRegion()- Parameters:
peerRegion- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc_peering_connection#peer_region VpcPeeringConnection#peer_region}.- Returns:
this
-
requester
@Stability(Stable) public VpcPeeringConnectionConfig.Builder requester(VpcPeeringConnectionRequester requester)
Sets the value ofVpcPeeringConnectionConfig.getRequester()- Parameters:
requester- requester block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc_peering_connection#requester VpcPeeringConnection#requester}- Returns:
this
-
tags
@Stability(Stable) public VpcPeeringConnectionConfig.Builder tags(Map<String,String> tags)
Sets the value ofVpcPeeringConnectionConfig.getTags()- Parameters:
tags- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc_peering_connection#tags VpcPeeringConnection#tags}.- Returns:
this
-
tagsAll
@Stability(Stable) public VpcPeeringConnectionConfig.Builder tagsAll(Map<String,String> tagsAll)
Sets the value ofVpcPeeringConnectionConfig.getTagsAll()- Parameters:
tagsAll- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc_peering_connection#tags_all VpcPeeringConnection#tags_all}.- Returns:
this
-
timeouts
@Stability(Stable) public VpcPeeringConnectionConfig.Builder timeouts(VpcPeeringConnectionTimeouts timeouts)
Sets the value ofVpcPeeringConnectionConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc_peering_connection#timeouts VpcPeeringConnection#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public VpcPeeringConnectionConfig.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 VpcPeeringConnectionConfig.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 VpcPeeringConnectionConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public VpcPeeringConnectionConfig.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 VpcPeeringConnectionConfig.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 VpcPeeringConnectionConfig.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 VpcPeeringConnectionConfig.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 VpcPeeringConnectionConfig.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 VpcPeeringConnectionConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public VpcPeeringConnectionConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VpcPeeringConnectionConfig>- Returns:
- a new instance of
VpcPeeringConnectionConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-