Class CodeBuildBuildPhaseChange.Environment.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.codebuild.events.CodeBuildBuildPhaseChange.Environment.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CodeBuildBuildPhaseChange.Environment>
- Enclosing interface:
CodeBuildBuildPhaseChange.Environment
@Stability(Experimental)
public static final class CodeBuildBuildPhaseChange.Environment.Builder
extends Object
implements software.amazon.jsii.Builder<CodeBuildBuildPhaseChange.Environment>
A builder for
CodeBuildBuildPhaseChange.Environment-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.computeType(List<String> computeType) Sets the value ofCodeBuildBuildPhaseChange.Environment.getComputeType()environmentVariables(List<? extends CodeBuildBuildPhaseChange.EnvironmentItem> environmentVariables) Sets the value ofCodeBuildBuildPhaseChange.Environment.getEnvironmentVariables()Sets the value ofCodeBuildBuildPhaseChange.Environment.getImage()imagePullCredentialsType(List<String> imagePullCredentialsType) Sets the value ofCodeBuildBuildPhaseChange.Environment.getImagePullCredentialsType()privilegedMode(List<String> privilegedMode) Sets the value ofCodeBuildBuildPhaseChange.Environment.getPrivilegedMode()Sets the value ofCodeBuildBuildPhaseChange.Environment.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
computeType
@Stability(Experimental) public CodeBuildBuildPhaseChange.Environment.Builder computeType(List<String> computeType) Sets the value ofCodeBuildBuildPhaseChange.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 CodeBuildBuildPhaseChange.Environment.Builder environmentVariables(List<? extends CodeBuildBuildPhaseChange.EnvironmentItem> environmentVariables) Sets the value ofCodeBuildBuildPhaseChange.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 CodeBuildBuildPhaseChange.Environment.Builder image(List<String> image) Sets the value ofCodeBuildBuildPhaseChange.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 CodeBuildBuildPhaseChange.Environment.Builder imagePullCredentialsType(List<String> imagePullCredentialsType) Sets the value ofCodeBuildBuildPhaseChange.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 CodeBuildBuildPhaseChange.Environment.Builder privilegedMode(List<String> privilegedMode) Sets the value ofCodeBuildBuildPhaseChange.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 CodeBuildBuildPhaseChange.Environment.Builder type(List<String> type) Sets the value ofCodeBuildBuildPhaseChange.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<CodeBuildBuildPhaseChange.Environment>- Returns:
- a new instance of
CodeBuildBuildPhaseChange.Environment - Throws:
NullPointerException- if any required attribute was not provided
-