Class CfnSecurityGroupMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnSecurityGroupMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSecurityGroupMixinProps>
- Enclosing interface:
CfnSecurityGroupMixinProps
@Stability(Stable)
public static final class CfnSecurityGroupMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSecurityGroupMixinProps>
A builder for
CfnSecurityGroupMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.groupDescription(String groupDescription) Sets the value ofCfnSecurityGroupMixinProps.getGroupDescription()Sets the value ofCfnSecurityGroupMixinProps.getGroupName()securityGroupEgress(List<? extends Object> securityGroupEgress) Sets the value ofCfnSecurityGroupMixinProps.getSecurityGroupEgress()securityGroupEgress(IResolvable securityGroupEgress) Sets the value ofCfnSecurityGroupMixinProps.getSecurityGroupEgress()securityGroupIngress(List<? extends Object> securityGroupIngress) Sets the value ofCfnSecurityGroupMixinProps.getSecurityGroupIngress()securityGroupIngress(IResolvable securityGroupIngress) Sets the value ofCfnSecurityGroupMixinProps.getSecurityGroupIngress()Sets the value ofCfnSecurityGroupMixinProps.getTags()Sets the value ofCfnSecurityGroupMixinProps.getVpcId()Sets the value ofCfnSecurityGroupMixinProps.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
groupDescription
@Stability(Stable) public CfnSecurityGroupMixinProps.Builder groupDescription(String groupDescription) Sets the value ofCfnSecurityGroupMixinProps.getGroupDescription()- Parameters:
groupDescription- A description for the security group. Constraints: Up to 255 characters in lengthValid characters: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
- Returns:
this
-
groupName
Sets the value ofCfnSecurityGroupMixinProps.getGroupName()- Parameters:
groupName- The name of the security group. Names are case-insensitive and must be unique within the VPC. Constraints: Up to 255 characters in length. Can't start withsg-.Valid characters: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
- Returns:
this
-
securityGroupEgress
@Stability(Stable) public CfnSecurityGroupMixinProps.Builder securityGroupEgress(IResolvable securityGroupEgress) Sets the value ofCfnSecurityGroupMixinProps.getSecurityGroupEgress()- Parameters:
securityGroupEgress- The outbound rules associated with the security group.- Returns:
this
-
securityGroupEgress
@Stability(Stable) public CfnSecurityGroupMixinProps.Builder securityGroupEgress(List<? extends Object> securityGroupEgress) Sets the value ofCfnSecurityGroupMixinProps.getSecurityGroupEgress()- Parameters:
securityGroupEgress- The outbound rules associated with the security group.- Returns:
this
-
securityGroupIngress
@Stability(Stable) public CfnSecurityGroupMixinProps.Builder securityGroupIngress(IResolvable securityGroupIngress) Sets the value ofCfnSecurityGroupMixinProps.getSecurityGroupIngress()- Parameters:
securityGroupIngress- The inbound rules associated with the security group.- Returns:
this
-
securityGroupIngress
@Stability(Stable) public CfnSecurityGroupMixinProps.Builder securityGroupIngress(List<? extends Object> securityGroupIngress) Sets the value ofCfnSecurityGroupMixinProps.getSecurityGroupIngress()- Parameters:
securityGroupIngress- The inbound rules associated with the security group.- Returns:
this
-
tags
Sets the value ofCfnSecurityGroupMixinProps.getTags()- Parameters:
tags- Any tags assigned to the security group.- Returns:
this
-
vpcId
Sets the value ofCfnSecurityGroupMixinProps.getVpcId()- Parameters:
vpcId- The ID of the VPC for the security group. If you do not specify a VPC, the default is to use the default VPC for the Region. If there's no specified VPC and no default VPC, security group creation fails.- Returns:
this
-
vpcId
Sets the value ofCfnSecurityGroupMixinProps.getVpcId()- Parameters:
vpcId- The ID of the VPC for the security group. If you do not specify a VPC, the default is to use the default VPC for the Region. If there's no specified VPC and no default VPC, security group creation fails.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSecurityGroupMixinProps>- Returns:
- a new instance of
CfnSecurityGroupMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-