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