Class CodeBuildBuildStateChange.Environment.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.codebuild.events.CodeBuildBuildStateChange.Environment.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CodeBuildBuildStateChange.Environment>
- Enclosing interface:
CodeBuildBuildStateChange.Environment
@Stability(Experimental)
public static final class CodeBuildBuildStateChange.Environment.Builder
extends Object
implements software.amazon.jsii.Builder<CodeBuildBuildStateChange.Environment>
A builder for
CodeBuildBuildStateChange.Environment-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.computeType(List<String> computeType) Sets the value ofCodeBuildBuildStateChange.Environment.getComputeType()environmentVariables(List<? extends CodeBuildBuildStateChange.EnvironmentItem> environmentVariables) Sets the value ofCodeBuildBuildStateChange.Environment.getEnvironmentVariables()Sets the value ofCodeBuildBuildStateChange.Environment.getImage()imagePullCredentialsType(List<String> imagePullCredentialsType) Sets the value ofCodeBuildBuildStateChange.Environment.getImagePullCredentialsType()privilegedMode(List<String> privilegedMode) Sets the value ofCodeBuildBuildStateChange.Environment.getPrivilegedMode()Sets the value ofCodeBuildBuildStateChange.Environment.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
computeType
@Stability(Experimental) public CodeBuildBuildStateChange.Environment.Builder computeType(List<String> computeType) Sets the value ofCodeBuildBuildStateChange.Environment.getComputeType()- Parameters:
computeType- compute-type property. Specify an array of string values to match this event if the actual value of compute-type is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
environmentVariables
@Stability(Experimental) public CodeBuildBuildStateChange.Environment.Builder environmentVariables(List<? extends CodeBuildBuildStateChange.EnvironmentItem> environmentVariables) Sets the value ofCodeBuildBuildStateChange.Environment.getEnvironmentVariables()- Parameters:
environmentVariables- environment-variables property. Specify an array of string values to match this event if the actual value of environment-variables is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
image
@Stability(Experimental) public CodeBuildBuildStateChange.Environment.Builder image(List<String> image) Sets the value ofCodeBuildBuildStateChange.Environment.getImage()- Parameters:
image- image property. Specify an array of string values to match this event if the actual value of image is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
imagePullCredentialsType
@Stability(Experimental) public CodeBuildBuildStateChange.Environment.Builder imagePullCredentialsType(List<String> imagePullCredentialsType) Sets the value ofCodeBuildBuildStateChange.Environment.getImagePullCredentialsType()- Parameters:
imagePullCredentialsType- image-pull-credentials-type property. Specify an array of string values to match this event if the actual value of image-pull-credentials-type is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
privilegedMode
@Stability(Experimental) public CodeBuildBuildStateChange.Environment.Builder privilegedMode(List<String> privilegedMode) Sets the value ofCodeBuildBuildStateChange.Environment.getPrivilegedMode()- Parameters:
privilegedMode- privileged-mode property. Specify an array of string values to match this event if the actual value of privileged-mode is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
type
@Stability(Experimental) public CodeBuildBuildStateChange.Environment.Builder type(List<String> type) Sets the value ofCodeBuildBuildStateChange.Environment.getType()- Parameters:
type- type property. Specify an array of string values to match this event if the actual value of type 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.Environment>- Returns:
- a new instance of
CodeBuildBuildStateChange.Environment - Throws:
NullPointerException- if any required attribute was not provided
-