Class CodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.codecommit.events.CodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps>
- Enclosing interface:
CodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps
@Stability(Experimental)
public static final class CodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.Builder
extends Object
implements software.amazon.jsii.Builder<CodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapprovalStatus(List<String> approvalStatus) build()Builds the configured instance.callerUserArn(List<String> callerUserArn) creationDate(List<String> creationDate) description(List<String> description) destinationCommit(List<String> destinationCommit) destinationReference(List<String> destinationReference) eventMetadata(AWSEventMetadataProps eventMetadata) lastModifiedDate(List<String> lastModifiedDate) mergeOption(List<String> mergeOption) notificationBody(List<String> notificationBody) overrideStatus(List<String> overrideStatus) pullRequestId(List<String> pullRequestId) pullRequestStatus(List<String> pullRequestStatus) repositoryNames(List<String> repositoryNames) revisionId(List<String> revisionId) sourceCommit(List<String> sourceCommit) sourceReference(List<String> sourceReference)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
approvalStatus
@Stability(Experimental) public CodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.Builder approvalStatus(List<String> approvalStatus) Sets the value ofCodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.getApprovalStatus()- Parameters:
approvalStatus- approvalStatus property. Specify an array of string values to match this event if the actual value of approvalStatus is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
author
@Stability(Experimental) public CodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.Builder author(List<String> author) Sets the value ofCodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.getAuthor()- Parameters:
author- author property. Specify an array of string values to match this event if the actual value of author is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
callerUserArn
@Stability(Experimental) public CodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.Builder callerUserArn(List<String> callerUserArn) Sets the value ofCodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.getCallerUserArn()- Parameters:
callerUserArn- callerUserArn property. Specify an array of string values to match this event if the actual value of callerUserArn is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
creationDate
@Stability(Experimental) public CodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.Builder creationDate(List<String> creationDate) Sets the value ofCodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.getCreationDate()- Parameters:
creationDate- creationDate property. Specify an array of string values to match this event if the actual value of creationDate is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
description
@Stability(Experimental) public CodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.Builder description(List<String> description) Sets the value ofCodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.getDescription()- Parameters:
description- description property. Specify an array of string values to match this event if the actual value of description is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
destinationCommit
@Stability(Experimental) public CodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.Builder destinationCommit(List<String> destinationCommit) Sets the value ofCodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.getDestinationCommit()- Parameters:
destinationCommit- destinationCommit property. Specify an array of string values to match this event if the actual value of destinationCommit is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
destinationReference
@Stability(Experimental) public CodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.Builder destinationReference(List<String> destinationReference) Sets the value ofCodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.getDestinationReference()- Parameters:
destinationReference- destinationReference property. Specify an array of string values to match this event if the actual value of destinationReference is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
event
@Stability(Experimental) public CodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.Builder event(List<String> event) - Parameters:
event- event property. Specify an array of string values to match this event if the actual value of event 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 CodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.Builder eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofCodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.getEventMetadata()- Parameters:
eventMetadata- EventBridge event metadata.- Returns:
this
-
isMerged
@Stability(Experimental) public CodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.Builder isMerged(List<String> isMerged) Sets the value ofCodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.getIsMerged()- Parameters:
isMerged- isMerged property. Specify an array of string values to match this event if the actual value of isMerged is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
lastModifiedDate
@Stability(Experimental) public CodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.Builder lastModifiedDate(List<String> lastModifiedDate) Sets the value ofCodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.getLastModifiedDate()- Parameters:
lastModifiedDate- lastModifiedDate property. Specify an array of string values to match this event if the actual value of lastModifiedDate is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
mergeOption
@Stability(Experimental) public CodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.Builder mergeOption(List<String> mergeOption) Sets the value ofCodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.getMergeOption()- Parameters:
mergeOption- mergeOption property. Specify an array of string values to match this event if the actual value of mergeOption is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
notificationBody
@Stability(Experimental) public CodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.Builder notificationBody(List<String> notificationBody) Sets the value ofCodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.getNotificationBody()- Parameters:
notificationBody- notificationBody property. Specify an array of string values to match this event if the actual value of notificationBody is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
overrideStatus
@Stability(Experimental) public CodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.Builder overrideStatus(List<String> overrideStatus) Sets the value ofCodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.getOverrideStatus()- Parameters:
overrideStatus- overrideStatus property. Specify an array of string values to match this event if the actual value of overrideStatus is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
pullRequestId
@Stability(Experimental) public CodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.Builder pullRequestId(List<String> pullRequestId) Sets the value ofCodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.getPullRequestId()- Parameters:
pullRequestId- pullRequestId property. Specify an array of string values to match this event if the actual value of pullRequestId is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
pullRequestStatus
@Stability(Experimental) public CodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.Builder pullRequestStatus(List<String> pullRequestStatus) Sets the value ofCodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.getPullRequestStatus()- Parameters:
pullRequestStatus- pullRequestStatus property. Specify an array of string values to match this event if the actual value of pullRequestStatus is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
repositoryNames
@Stability(Experimental) public CodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.Builder repositoryNames(List<String> repositoryNames) Sets the value ofCodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.getRepositoryNames()- Parameters:
repositoryNames- repositoryNames property. Specify an array of string values to match this event if the actual value of repositoryNames is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
revisionId
@Stability(Experimental) public CodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.Builder revisionId(List<String> revisionId) Sets the value ofCodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.getRevisionId()- Parameters:
revisionId- revisionId property. Specify an array of string values to match this event if the actual value of revisionId is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
sourceCommit
@Stability(Experimental) public CodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.Builder sourceCommit(List<String> sourceCommit) Sets the value ofCodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.getSourceCommit()- Parameters:
sourceCommit- sourceCommit property. Specify an array of string values to match this event if the actual value of sourceCommit is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
sourceReference
@Stability(Experimental) public CodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.Builder sourceReference(List<String> sourceReference) Sets the value ofCodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.getSourceReference()- Parameters:
sourceReference- sourceReference property. Specify an array of string values to match this event if the actual value of sourceReference is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
title
@Stability(Experimental) public CodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps.Builder title(List<String> title) - Parameters:
title- title property. Specify an array of string values to match this event if the actual value of title is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
build
@Stability(Experimental) public CodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps>- Returns:
- a new instance of
CodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps - Throws:
NullPointerException- if any required attribute was not provided
-