Interface PullRequestEvent.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<PullRequestEvent.Builder,PullRequestEvent>,SdkBuilder<PullRequestEvent.Builder,PullRequestEvent>,SdkPojo
- Enclosing class:
- PullRequestEvent
public static interface PullRequestEvent.Builder extends SdkPojo, CopyableBuilder<PullRequestEvent.Builder,PullRequestEvent>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PullRequestEvent.BuilderactorArn(String actorArn)The Amazon Resource Name (ARN) of the user whose actions resulted in the event.default PullRequestEvent.BuilderapprovalRuleEventMetadata(Consumer<ApprovalRuleEventMetadata.Builder> approvalRuleEventMetadata)Information about a pull request event.PullRequestEvent.BuilderapprovalRuleEventMetadata(ApprovalRuleEventMetadata approvalRuleEventMetadata)Information about a pull request event.default PullRequestEvent.BuilderapprovalRuleOverriddenEventMetadata(Consumer<ApprovalRuleOverriddenEventMetadata.Builder> approvalRuleOverriddenEventMetadata)Information about an approval rule override event for a pull request.PullRequestEvent.BuilderapprovalRuleOverriddenEventMetadata(ApprovalRuleOverriddenEventMetadata approvalRuleOverriddenEventMetadata)Information about an approval rule override event for a pull request.default PullRequestEvent.BuilderapprovalStateChangedEventMetadata(Consumer<ApprovalStateChangedEventMetadata.Builder> approvalStateChangedEventMetadata)Information about an approval state change for a pull request.PullRequestEvent.BuilderapprovalStateChangedEventMetadata(ApprovalStateChangedEventMetadata approvalStateChangedEventMetadata)Information about an approval state change for a pull request.PullRequestEvent.BuildereventDate(Instant eventDate)The day and time of the pull request event, in timestamp format.default PullRequestEvent.BuilderpullRequestCreatedEventMetadata(Consumer<PullRequestCreatedEventMetadata.Builder> pullRequestCreatedEventMetadata)Information about the source and destination branches for the pull request.PullRequestEvent.BuilderpullRequestCreatedEventMetadata(PullRequestCreatedEventMetadata pullRequestCreatedEventMetadata)Information about the source and destination branches for the pull request.PullRequestEvent.BuilderpullRequestEventType(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)).PullRequestEvent.BuilderpullRequestEventType(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)).PullRequestEvent.BuilderpullRequestId(String pullRequestId)The system-generated ID of the pull request.default PullRequestEvent.BuilderpullRequestMergedStateChangedEventMetadata(Consumer<PullRequestMergedStateChangedEventMetadata.Builder> pullRequestMergedStateChangedEventMetadata)Information about the change in mergability state for the pull request event.PullRequestEvent.BuilderpullRequestMergedStateChangedEventMetadata(PullRequestMergedStateChangedEventMetadata pullRequestMergedStateChangedEventMetadata)Information about the change in mergability state for the pull request event.default PullRequestEvent.BuilderpullRequestSourceReferenceUpdatedEventMetadata(Consumer<PullRequestSourceReferenceUpdatedEventMetadata.Builder> pullRequestSourceReferenceUpdatedEventMetadata)Information about the updated source branch for the pull request event.PullRequestEvent.BuilderpullRequestSourceReferenceUpdatedEventMetadata(PullRequestSourceReferenceUpdatedEventMetadata pullRequestSourceReferenceUpdatedEventMetadata)Information about the updated source branch for the pull request event.default PullRequestEvent.BuilderpullRequestStatusChangedEventMetadata(Consumer<PullRequestStatusChangedEventMetadata.Builder> pullRequestStatusChangedEventMetadata)Information about the change in status for the pull request event.PullRequestEvent.BuilderpullRequestStatusChangedEventMetadata(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 Detail
-
pullRequestId
PullRequestEvent.Builder pullRequestId(String 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
PullRequestEvent.Builder eventDate(Instant 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
PullRequestEvent.Builder 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)).
- 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,PullRequestEventType
-
pullRequestEventType
PullRequestEvent.Builder 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)).
- 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,PullRequestEventType
-
actorArn
PullRequestEvent.Builder actorArn(String 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.Builderavoiding the need to create one manually viaPullRequestCreatedEventMetadata.builder().When the
Consumercompletes,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:
pullRequestCreatedEventMetadata(PullRequestCreatedEventMetadata)
-
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.Builderavoiding the need to create one manually viaPullRequestStatusChangedEventMetadata.builder().When the
Consumercompletes,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:
pullRequestStatusChangedEventMetadata(PullRequestStatusChangedEventMetadata)
-
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.Builderavoiding the need to create one manually viaPullRequestSourceReferenceUpdatedEventMetadata.builder().When the
Consumercompletes,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:
pullRequestSourceReferenceUpdatedEventMetadata(PullRequestSourceReferenceUpdatedEventMetadata)
-
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.Builderavoiding the need to create one manually viaPullRequestMergedStateChangedEventMetadata.builder().When the
Consumercompletes,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:
pullRequestMergedStateChangedEventMetadata(PullRequestMergedStateChangedEventMetadata)
-
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.Builderavoiding the need to create one manually viaApprovalRuleEventMetadata.builder().When the
Consumercompletes,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:
approvalRuleEventMetadata(ApprovalRuleEventMetadata)
-
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.Builderavoiding the need to create one manually viaApprovalStateChangedEventMetadata.builder().When the
Consumercompletes,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:
approvalStateChangedEventMetadata(ApprovalStateChangedEventMetadata)
-
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.Builderavoiding the need to create one manually viaApprovalRuleOverriddenEventMetadata.builder().When the
Consumercompletes,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:
approvalRuleOverriddenEventMetadata(ApprovalRuleOverriddenEventMetadata)
-
-