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 SummaryConstructors
- 
Method SummaryModifier 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- 
Builderpublic 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
 
- 
subnetsSets 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
 
- 
vpcIdSets the value ofCfnProject.VpcConfigProperty.getVpcId()- Parameters:
- vpcId- The ID of the Amazon VPC.
- Returns:
- this
 
- 
buildBuilds the configured instance.- Specified by:
- buildin interface- software.amazon.jsii.Builder<CfnProject.VpcConfigProperty>
- Returns:
- a new instance of CfnProject.VpcConfigProperty
- Throws:
- NullPointerException- if any required attribute was not provided
 
 
-