Interface PullRequestEvent.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PullRequestEvent.Builder,
,PullRequestEvent> SdkBuilder<PullRequestEvent.Builder,
,PullRequestEvent> SdkPojo
- Enclosing class:
PullRequestEvent
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the user whose actions resulted in the event.default PullRequestEvent.Builder
approvalRuleEventMetadata
(Consumer<ApprovalRuleEventMetadata.Builder> approvalRuleEventMetadata) Information about a pull request event.approvalRuleEventMetadata
(ApprovalRuleEventMetadata approvalRuleEventMetadata) Information about a pull request event.default PullRequestEvent.Builder
approvalRuleOverriddenEventMetadata
(Consumer<ApprovalRuleOverriddenEventMetadata.Builder> approvalRuleOverriddenEventMetadata) Information about an approval rule override event for a pull request.approvalRuleOverriddenEventMetadata
(ApprovalRuleOverriddenEventMetadata approvalRuleOverriddenEventMetadata) Information about an approval rule override event for a pull request.default PullRequestEvent.Builder
approvalStateChangedEventMetadata
(Consumer<ApprovalStateChangedEventMetadata.Builder> approvalStateChangedEventMetadata) Information about an approval state change for a pull request.approvalStateChangedEventMetadata
(ApprovalStateChangedEventMetadata approvalStateChangedEventMetadata) Information about an approval state change for a pull request.The day and time of the pull request event, in timestamp format.default PullRequestEvent.Builder
pullRequestCreatedEventMetadata
(Consumer<PullRequestCreatedEventMetadata.Builder> pullRequestCreatedEventMetadata) Information about the source and destination branches for the pull request.pullRequestCreatedEventMetadata
(PullRequestCreatedEventMetadata pullRequestCreatedEventMetadata) Information about the source and destination branches for the pull request.pullRequestEventType
(String pullRequestEventType) The type of the pull request event (for example, a status change event (PULL_REQUEST_STATUS_CHANGED) or update event (PULL_REQUEST_SOURCE_REFERENCE_UPDATED)).pullRequestEventType
(PullRequestEventType pullRequestEventType) The type of the pull request event (for example, a status change event (PULL_REQUEST_STATUS_CHANGED) or update event (PULL_REQUEST_SOURCE_REFERENCE_UPDATED)).pullRequestId
(String pullRequestId) The system-generated ID of the pull request.default PullRequestEvent.Builder
pullRequestMergedStateChangedEventMetadata
(Consumer<PullRequestMergedStateChangedEventMetadata.Builder> pullRequestMergedStateChangedEventMetadata) Information about the change in mergability state for the pull request event.pullRequestMergedStateChangedEventMetadata
(PullRequestMergedStateChangedEventMetadata pullRequestMergedStateChangedEventMetadata) Information about the change in mergability state for the pull request event.default PullRequestEvent.Builder
pullRequestSourceReferenceUpdatedEventMetadata
(Consumer<PullRequestSourceReferenceUpdatedEventMetadata.Builder> pullRequestSourceReferenceUpdatedEventMetadata) Information about the updated source branch for the pull request event.pullRequestSourceReferenceUpdatedEventMetadata
(PullRequestSourceReferenceUpdatedEventMetadata pullRequestSourceReferenceUpdatedEventMetadata) Information about the updated source branch for the pull request event.default PullRequestEvent.Builder
pullRequestStatusChangedEventMetadata
(Consumer<PullRequestStatusChangedEventMetadata.Builder> pullRequestStatusChangedEventMetadata) Information about the change in status for the pull request event.pullRequestStatusChangedEventMetadata
(PullRequestStatusChangedEventMetadata pullRequestStatusChangedEventMetadata) Information about the change in status for the pull request event.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
pullRequestId
The system-generated ID of the pull request.
- Parameters:
pullRequestId
- The system-generated ID of the pull request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventDate
The day and time of the pull request event, in timestamp format.
- Parameters:
eventDate
- The day and time of the pull request event, in timestamp format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pullRequestEventType
The type of the pull request event (for example, a status change event (PULL_REQUEST_STATUS_CHANGED) or update event (PULL_REQUEST_SOURCE_REFERENCE_UPDATED)).
- Parameters:
pullRequestEventType
- The type of the pull request event (for example, a status change event (PULL_REQUEST_STATUS_CHANGED) or update event (PULL_REQUEST_SOURCE_REFERENCE_UPDATED)).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
pullRequestEventType
The type of the pull request event (for example, a status change event (PULL_REQUEST_STATUS_CHANGED) or update event (PULL_REQUEST_SOURCE_REFERENCE_UPDATED)).
- Parameters:
pullRequestEventType
- The type of the pull request event (for example, a status change event (PULL_REQUEST_STATUS_CHANGED) or update event (PULL_REQUEST_SOURCE_REFERENCE_UPDATED)).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
actorArn
The Amazon Resource Name (ARN) of the user whose actions resulted in the event. Examples include updating the pull request with more commits or changing the status of a pull request.
- Parameters:
actorArn
- The Amazon Resource Name (ARN) of the user whose actions resulted in the event. Examples include updating the pull request with more commits or changing the status of a pull request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pullRequestCreatedEventMetadata
PullRequestEvent.Builder pullRequestCreatedEventMetadata(PullRequestCreatedEventMetadata pullRequestCreatedEventMetadata) Information about the source and destination branches for the pull request.
- Parameters:
pullRequestCreatedEventMetadata
- Information about the source and destination branches for the pull request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pullRequestCreatedEventMetadata
default PullRequestEvent.Builder pullRequestCreatedEventMetadata(Consumer<PullRequestCreatedEventMetadata.Builder> pullRequestCreatedEventMetadata) Information about the source and destination branches for the pull request.
This is a convenience method that creates an instance of thePullRequestCreatedEventMetadata.Builder
avoiding the need to create one manually viaPullRequestCreatedEventMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topullRequestCreatedEventMetadata(PullRequestCreatedEventMetadata)
.- Parameters:
pullRequestCreatedEventMetadata
- a consumer that will call methods onPullRequestCreatedEventMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
pullRequestStatusChangedEventMetadata
PullRequestEvent.Builder pullRequestStatusChangedEventMetadata(PullRequestStatusChangedEventMetadata pullRequestStatusChangedEventMetadata) Information about the change in status for the pull request event.
- Parameters:
pullRequestStatusChangedEventMetadata
- Information about the change in status for the pull request event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pullRequestStatusChangedEventMetadata
default PullRequestEvent.Builder pullRequestStatusChangedEventMetadata(Consumer<PullRequestStatusChangedEventMetadata.Builder> pullRequestStatusChangedEventMetadata) Information about the change in status for the pull request event.
This is a convenience method that creates an instance of thePullRequestStatusChangedEventMetadata.Builder
avoiding the need to create one manually viaPullRequestStatusChangedEventMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topullRequestStatusChangedEventMetadata(PullRequestStatusChangedEventMetadata)
.- Parameters:
pullRequestStatusChangedEventMetadata
- a consumer that will call methods onPullRequestStatusChangedEventMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
pullRequestSourceReferenceUpdatedEventMetadata
PullRequestEvent.Builder pullRequestSourceReferenceUpdatedEventMetadata(PullRequestSourceReferenceUpdatedEventMetadata pullRequestSourceReferenceUpdatedEventMetadata) Information about the updated source branch for the pull request event.
- Parameters:
pullRequestSourceReferenceUpdatedEventMetadata
- Information about the updated source branch for the pull request event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pullRequestSourceReferenceUpdatedEventMetadata
default PullRequestEvent.Builder pullRequestSourceReferenceUpdatedEventMetadata(Consumer<PullRequestSourceReferenceUpdatedEventMetadata.Builder> pullRequestSourceReferenceUpdatedEventMetadata) Information about the updated source branch for the pull request event.
This is a convenience method that creates an instance of thePullRequestSourceReferenceUpdatedEventMetadata.Builder
avoiding the need to create one manually viaPullRequestSourceReferenceUpdatedEventMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topullRequestSourceReferenceUpdatedEventMetadata(PullRequestSourceReferenceUpdatedEventMetadata)
.- Parameters:
pullRequestSourceReferenceUpdatedEventMetadata
- a consumer that will call methods onPullRequestSourceReferenceUpdatedEventMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
pullRequestMergedStateChangedEventMetadata
PullRequestEvent.Builder pullRequestMergedStateChangedEventMetadata(PullRequestMergedStateChangedEventMetadata pullRequestMergedStateChangedEventMetadata) Information about the change in mergability state for the pull request event.
- Parameters:
pullRequestMergedStateChangedEventMetadata
- Information about the change in mergability state for the pull request event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pullRequestMergedStateChangedEventMetadata
default PullRequestEvent.Builder pullRequestMergedStateChangedEventMetadata(Consumer<PullRequestMergedStateChangedEventMetadata.Builder> pullRequestMergedStateChangedEventMetadata) Information about the change in mergability state for the pull request event.
This is a convenience method that creates an instance of thePullRequestMergedStateChangedEventMetadata.Builder
avoiding the need to create one manually viaPullRequestMergedStateChangedEventMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topullRequestMergedStateChangedEventMetadata(PullRequestMergedStateChangedEventMetadata)
.- Parameters:
pullRequestMergedStateChangedEventMetadata
- a consumer that will call methods onPullRequestMergedStateChangedEventMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
approvalRuleEventMetadata
PullRequestEvent.Builder approvalRuleEventMetadata(ApprovalRuleEventMetadata approvalRuleEventMetadata) Information about a pull request event.
- Parameters:
approvalRuleEventMetadata
- Information about a pull request event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
approvalRuleEventMetadata
default PullRequestEvent.Builder approvalRuleEventMetadata(Consumer<ApprovalRuleEventMetadata.Builder> approvalRuleEventMetadata) Information about a pull request event.
This is a convenience method that creates an instance of theApprovalRuleEventMetadata.Builder
avoiding the need to create one manually viaApprovalRuleEventMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toapprovalRuleEventMetadata(ApprovalRuleEventMetadata)
.- Parameters:
approvalRuleEventMetadata
- a consumer that will call methods onApprovalRuleEventMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
approvalStateChangedEventMetadata
PullRequestEvent.Builder approvalStateChangedEventMetadata(ApprovalStateChangedEventMetadata approvalStateChangedEventMetadata) Information about an approval state change for a pull request.
- Parameters:
approvalStateChangedEventMetadata
- Information about an approval state change for a pull request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
approvalStateChangedEventMetadata
default PullRequestEvent.Builder approvalStateChangedEventMetadata(Consumer<ApprovalStateChangedEventMetadata.Builder> approvalStateChangedEventMetadata) Information about an approval state change for a pull request.
This is a convenience method that creates an instance of theApprovalStateChangedEventMetadata.Builder
avoiding the need to create one manually viaApprovalStateChangedEventMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toapprovalStateChangedEventMetadata(ApprovalStateChangedEventMetadata)
.- Parameters:
approvalStateChangedEventMetadata
- a consumer that will call methods onApprovalStateChangedEventMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
approvalRuleOverriddenEventMetadata
PullRequestEvent.Builder approvalRuleOverriddenEventMetadata(ApprovalRuleOverriddenEventMetadata approvalRuleOverriddenEventMetadata) Information about an approval rule override event for a pull request.
- Parameters:
approvalRuleOverriddenEventMetadata
- Information about an approval rule override event for a pull request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
approvalRuleOverriddenEventMetadata
default PullRequestEvent.Builder approvalRuleOverriddenEventMetadata(Consumer<ApprovalRuleOverriddenEventMetadata.Builder> approvalRuleOverriddenEventMetadata) Information about an approval rule override event for a pull request.
This is a convenience method that creates an instance of theApprovalRuleOverriddenEventMetadata.Builder
avoiding the need to create one manually viaApprovalRuleOverriddenEventMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toapprovalRuleOverriddenEventMetadata(ApprovalRuleOverriddenEventMetadata)
.- Parameters:
approvalRuleOverriddenEventMetadata
- a consumer that will call methods onApprovalRuleOverriddenEventMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-