Class CodeBuildBuildStateChange.CodeBuildBuildStateChangeProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.codebuild.events.CodeBuildBuildStateChange.CodeBuildBuildStateChangeProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CodeBuildBuildStateChange.CodeBuildBuildStateChangeProps>
- Enclosing interface:
CodeBuildBuildStateChange.CodeBuildBuildStateChangeProps
@Stability(Experimental)
public static final class CodeBuildBuildStateChange.CodeBuildBuildStateChangeProps.Builder
extends Object
implements software.amazon.jsii.Builder<CodeBuildBuildStateChange.CodeBuildBuildStateChangeProps>
A builder for
CodeBuildBuildStateChange.CodeBuildBuildStateChangeProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadditionalInformation(CodeBuildBuildStateChange.AdditionalInformation additionalInformation) build()Builds the configured instance.Sets the value ofCodeBuildBuildStateChange.CodeBuildBuildStateChangeProps.getBuildId()buildStatus(List<String> buildStatus) currentPhase(List<String> currentPhase) currentPhaseContext(List<String> currentPhaseContext) eventMetadata(AWSEventMetadataProps eventMetadata) projectName(List<String> projectName) Sets the value ofCodeBuildBuildStateChange.CodeBuildBuildStateChangeProps.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
additionalInformation
@Stability(Experimental) public CodeBuildBuildStateChange.CodeBuildBuildStateChangeProps.Builder additionalInformation(CodeBuildBuildStateChange.AdditionalInformation additionalInformation) Sets the value ofCodeBuildBuildStateChange.CodeBuildBuildStateChangeProps.getAdditionalInformation()- Parameters:
additionalInformation- additional-information property. Specify an array of string values to match this event if the actual value of additional-information is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
buildId
@Stability(Experimental) public CodeBuildBuildStateChange.CodeBuildBuildStateChangeProps.Builder buildId(List<String> buildId) Sets the value ofCodeBuildBuildStateChange.CodeBuildBuildStateChangeProps.getBuildId()- Parameters:
buildId- build-id property. Specify an array of string values to match this event if the actual value of build-id is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
buildStatus
@Stability(Experimental) public CodeBuildBuildStateChange.CodeBuildBuildStateChangeProps.Builder buildStatus(List<String> buildStatus) - Parameters:
buildStatus- build-status property. Specify an array of string values to match this event if the actual value of build-status is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
currentPhase
@Stability(Experimental) public CodeBuildBuildStateChange.CodeBuildBuildStateChangeProps.Builder currentPhase(List<String> currentPhase) - Parameters:
currentPhase- current-phase property. Specify an array of string values to match this event if the actual value of current-phase is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
currentPhaseContext
@Stability(Experimental) public CodeBuildBuildStateChange.CodeBuildBuildStateChangeProps.Builder currentPhaseContext(List<String> currentPhaseContext) - Parameters:
currentPhaseContext- current-phase-context property. Specify an array of string values to match this event if the actual value of current-phase-context is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
eventMetadata
@Stability(Experimental) public CodeBuildBuildStateChange.CodeBuildBuildStateChangeProps.Builder eventMetadata(AWSEventMetadataProps eventMetadata) - Parameters:
eventMetadata- EventBridge event metadata.- Returns:
this
-
projectName
@Stability(Experimental) public CodeBuildBuildStateChange.CodeBuildBuildStateChangeProps.Builder projectName(List<String> projectName) - Parameters:
projectName- project-name property. Specify an array of string values to match this event if the actual value of project-name is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
version
@Stability(Experimental) public CodeBuildBuildStateChange.CodeBuildBuildStateChangeProps.Builder version(List<String> version) Sets the value ofCodeBuildBuildStateChange.CodeBuildBuildStateChangeProps.getVersion()- Parameters:
version- version property. Specify an array of string values to match this event if the actual value of version 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.CodeBuildBuildStateChangeProps>- Returns:
- a new instance of
CodeBuildBuildStateChange.CodeBuildBuildStateChangeProps - Throws:
NullPointerException- if any required attribute was not provided
-