Class CfnProject.VpcConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codebuild.CfnProject.VpcConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProject.VpcConfigProperty>
- Enclosing interface:
- CfnProject.VpcConfigProperty
@Stability(Stable)
public static final class CfnProject.VpcConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProject.VpcConfigProperty>
A builder for
CfnProject.VpcConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnProject.VpcConfigProperty.getSecurityGroupIds()Sets the value ofCfnProject.VpcConfigProperty.getSubnets()Sets the value ofCfnProject.VpcConfigProperty.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
securityGroupIds
@Stability(Stable) public CfnProject.VpcConfigProperty.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnProject.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
Sets the value ofCfnProject.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 ofCfnProject.VpcConfigProperty.getVpcId()- Parameters:
vpcId- The ID of the Amazon VPC.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnProject.VpcConfigProperty>- Returns:
- a new instance of
CfnProject.VpcConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-