Class CodeBuildBuildPhaseChange.VpcConfig.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.codebuild.events.CodeBuildBuildPhaseChange.VpcConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CodeBuildBuildPhaseChange.VpcConfig>
- Enclosing interface:
CodeBuildBuildPhaseChange.VpcConfig
@Stability(Experimental)
public static final class CodeBuildBuildPhaseChange.VpcConfig.Builder
extends Object
implements software.amazon.jsii.Builder<CodeBuildBuildPhaseChange.VpcConfig>
A builder for
CodeBuildBuildPhaseChange.VpcConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.securityGroupIds(List<String> securityGroupIds) Sets the value ofCodeBuildBuildPhaseChange.VpcConfig.getSecurityGroupIds()subnets(List<? extends CodeBuildBuildPhaseChange.VpcConfigItem> subnets) Sets the value ofCodeBuildBuildPhaseChange.VpcConfig.getSubnets()Sets the value ofCodeBuildBuildPhaseChange.VpcConfig.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
securityGroupIds
@Stability(Experimental) public CodeBuildBuildPhaseChange.VpcConfig.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCodeBuildBuildPhaseChange.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 CodeBuildBuildPhaseChange.VpcConfig.Builder subnets(List<? extends CodeBuildBuildPhaseChange.VpcConfigItem> subnets) Sets the value ofCodeBuildBuildPhaseChange.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 CodeBuildBuildPhaseChange.VpcConfig.Builder vpcId(List<String> vpcId) Sets the value ofCodeBuildBuildPhaseChange.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<CodeBuildBuildPhaseChange.VpcConfig>- Returns:
- a new instance of
CodeBuildBuildPhaseChange.VpcConfig - Throws:
NullPointerException- if any required attribute was not provided
-