Class VpcSecurityGroupEgressRuleConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.vpc_security_group_egress_rule.VpcSecurityGroupEgressRuleConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<VpcSecurityGroupEgressRuleConfig>
- Enclosing interface:
- VpcSecurityGroupEgressRuleConfig
@Stability(Stable) public static final class VpcSecurityGroupEgressRuleConfig.Builder extends Object implements software.amazon.jsii.Builder<VpcSecurityGroupEgressRuleConfig>
A builder forVpcSecurityGroupEgressRuleConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
ipProtocol
@Stability(Stable) public VpcSecurityGroupEgressRuleConfig.Builder ipProtocol(String ipProtocol)
Sets the value ofVpcSecurityGroupEgressRuleConfig.getIpProtocol()- Parameters:
ipProtocol- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc_security_group_egress_rule#ip_protocol VpcSecurityGroupEgressRule#ip_protocol}. This parameter is required.- Returns:
this
-
securityGroupId
@Stability(Stable) public VpcSecurityGroupEgressRuleConfig.Builder securityGroupId(String securityGroupId)
Sets the value ofVpcSecurityGroupEgressRuleConfig.getSecurityGroupId()- Parameters:
securityGroupId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc_security_group_egress_rule#security_group_id VpcSecurityGroupEgressRule#security_group_id}. This parameter is required.- Returns:
this
-
cidrIpv4
@Stability(Stable) public VpcSecurityGroupEgressRuleConfig.Builder cidrIpv4(String cidrIpv4)
Sets the value ofVpcSecurityGroupEgressRuleConfig.getCidrIpv4()- Parameters:
cidrIpv4- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc_security_group_egress_rule#cidr_ipv4 VpcSecurityGroupEgressRule#cidr_ipv4}.- Returns:
this
-
cidrIpv6
@Stability(Stable) public VpcSecurityGroupEgressRuleConfig.Builder cidrIpv6(String cidrIpv6)
Sets the value ofVpcSecurityGroupEgressRuleConfig.getCidrIpv6()- Parameters:
cidrIpv6- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc_security_group_egress_rule#cidr_ipv6 VpcSecurityGroupEgressRule#cidr_ipv6}.- Returns:
this
-
description
@Stability(Stable) public VpcSecurityGroupEgressRuleConfig.Builder description(String description)
Sets the value ofVpcSecurityGroupEgressRuleConfig.getDescription()- Parameters:
description- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc_security_group_egress_rule#description VpcSecurityGroupEgressRule#description}.- Returns:
this
-
fromPort
@Stability(Stable) public VpcSecurityGroupEgressRuleConfig.Builder fromPort(Number fromPort)
Sets the value ofVpcSecurityGroupEgressRuleConfig.getFromPort()- Parameters:
fromPort- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc_security_group_egress_rule#from_port VpcSecurityGroupEgressRule#from_port}.- Returns:
this
-
prefixListId
@Stability(Stable) public VpcSecurityGroupEgressRuleConfig.Builder prefixListId(String prefixListId)
Sets the value ofVpcSecurityGroupEgressRuleConfig.getPrefixListId()- Parameters:
prefixListId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc_security_group_egress_rule#prefix_list_id VpcSecurityGroupEgressRule#prefix_list_id}.- Returns:
this
-
referencedSecurityGroupId
@Stability(Stable) public VpcSecurityGroupEgressRuleConfig.Builder referencedSecurityGroupId(String referencedSecurityGroupId)
Sets the value ofVpcSecurityGroupEgressRuleConfig.getReferencedSecurityGroupId()- Parameters:
referencedSecurityGroupId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc_security_group_egress_rule#referenced_security_group_id VpcSecurityGroupEgressRule#referenced_security_group_id}.- Returns:
this
-
tags
@Stability(Stable) public VpcSecurityGroupEgressRuleConfig.Builder tags(Map<String,String> tags)
Sets the value ofVpcSecurityGroupEgressRuleConfig.getTags()- Parameters:
tags- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc_security_group_egress_rule#tags VpcSecurityGroupEgressRule#tags}.- Returns:
this
-
toPort
@Stability(Stable) public VpcSecurityGroupEgressRuleConfig.Builder toPort(Number toPort)
Sets the value ofVpcSecurityGroupEgressRuleConfig.getToPort()- Parameters:
toPort- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/vpc_security_group_egress_rule#to_port VpcSecurityGroupEgressRule#to_port}.- Returns:
this
-
connection
@Stability(Experimental) public VpcSecurityGroupEgressRuleConfig.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 VpcSecurityGroupEgressRuleConfig.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 VpcSecurityGroupEgressRuleConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public VpcSecurityGroupEgressRuleConfig.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 VpcSecurityGroupEgressRuleConfig.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 VpcSecurityGroupEgressRuleConfig.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 VpcSecurityGroupEgressRuleConfig.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 VpcSecurityGroupEgressRuleConfig.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 VpcSecurityGroupEgressRuleConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public VpcSecurityGroupEgressRuleConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VpcSecurityGroupEgressRuleConfig>- Returns:
- a new instance of
VpcSecurityGroupEgressRuleConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-