Class ProjectEvents.CodeBuildBuildPhaseChange.VpcConfig.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.codebuild.events.ProjectEvents.CodeBuildBuildPhaseChange.VpcConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ProjectEvents.CodeBuildBuildPhaseChange.VpcConfig>
- Enclosing interface:
ProjectEvents.CodeBuildBuildPhaseChange.VpcConfig
@Stability(Experimental)
public static final class ProjectEvents.CodeBuildBuildPhaseChange.VpcConfig.Builder
extends Object
implements software.amazon.jsii.Builder<ProjectEvents.CodeBuildBuildPhaseChange.VpcConfig>
A builder for
ProjectEvents.CodeBuildBuildPhaseChange.VpcConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.securityGroupIds(List<String> securityGroupIds) Sets the value ofProjectEvents.CodeBuildBuildPhaseChange.VpcConfig.getSecurityGroupIds()subnets(List<? extends ProjectEvents.CodeBuildBuildPhaseChange.VpcConfigItem> subnets) Sets the value ofProjectEvents.CodeBuildBuildPhaseChange.VpcConfig.getSubnets()Sets the value ofProjectEvents.CodeBuildBuildPhaseChange.VpcConfig.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
securityGroupIds
@Stability(Experimental) public ProjectEvents.CodeBuildBuildPhaseChange.VpcConfig.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofProjectEvents.CodeBuildBuildPhaseChange.VpcConfig.getSecurityGroupIds()- Parameters:
securityGroupIds- security-group-ids property. Specify an array of string values to match this event if the actual value of security-group-ids is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
subnets
@Stability(Experimental) public ProjectEvents.CodeBuildBuildPhaseChange.VpcConfig.Builder subnets(List<? extends ProjectEvents.CodeBuildBuildPhaseChange.VpcConfigItem> subnets) Sets the value ofProjectEvents.CodeBuildBuildPhaseChange.VpcConfig.getSubnets()- Parameters:
subnets- subnets property. Specify an array of string values to match this event if the actual value of subnets is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
vpcId
@Stability(Experimental) public ProjectEvents.CodeBuildBuildPhaseChange.VpcConfig.Builder vpcId(List<String> vpcId) Sets the value ofProjectEvents.CodeBuildBuildPhaseChange.VpcConfig.getVpcId()- Parameters:
vpcId- vpc-id property. Specify an array of string values to match this event if the actual value of vpc-id is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ProjectEvents.CodeBuildBuildPhaseChange.VpcConfig>- Returns:
- a new instance of
ProjectEvents.CodeBuildBuildPhaseChange.VpcConfig - Throws:
NullPointerException- if any required attribute was not provided
-