Class CfnProjectPropsMixin.VpcConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.codebuild.CfnProjectPropsMixin.VpcConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProjectPropsMixin.VpcConfigProperty>
- Enclosing interface:
CfnProjectPropsMixin.VpcConfigProperty
@Stability(Stable)
public static final class CfnProjectPropsMixin.VpcConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProjectPropsMixin.VpcConfigProperty>
A builder for
CfnProjectPropsMixin.VpcConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnProjectPropsMixin.VpcConfigProperty.getSecurityGroupIds()Sets the value ofCfnProjectPropsMixin.VpcConfigProperty.getSubnets()Sets the value ofCfnProjectPropsMixin.VpcConfigProperty.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
securityGroupIds
@Stability(Stable) public CfnProjectPropsMixin.VpcConfigProperty.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnProjectPropsMixin.VpcConfigProperty.getSecurityGroupIds()- Parameters:
securityGroupIds- A list of one or more security groups IDs in your Amazon VPC. The maximum count is 5.- Returns:
this
-
subnets
@Stability(Stable) public CfnProjectPropsMixin.VpcConfigProperty.Builder subnets(List<String> subnets) Sets the value ofCfnProjectPropsMixin.VpcConfigProperty.getSubnets()- Parameters:
subnets- A list of one or more subnet IDs in your Amazon VPC. The maximum count is 16.- Returns:
this
-
vpcId
Sets the value ofCfnProjectPropsMixin.VpcConfigProperty.getVpcId()- Parameters:
vpcId- The ID of the Amazon VPC.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnProjectPropsMixin.VpcConfigProperty>- Returns:
- a new instance of
CfnProjectPropsMixin.VpcConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-