@Generated(value="software.amazon.awssdk:codegen") public final class PullRequestEvent extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PullRequestEvent.Builder,PullRequestEvent>
Returns information about a pull request event.
| Modifier and Type | Class and Description |
|---|---|
static interface |
PullRequestEvent.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
actorArn()
The Amazon Resource Name (ARN) of the user whose actions resulted in the event.
|
ApprovalRuleEventMetadata |
approvalRuleEventMetadata()
Information about a pull request event.
|
ApprovalRuleOverriddenEventMetadata |
approvalRuleOverriddenEventMetadata()
Information about an approval rule override event for a pull request.
|
ApprovalStateChangedEventMetadata |
approvalStateChangedEventMetadata()
Information about an approval state change for a pull request.
|
static PullRequestEvent.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Instant |
eventDate()
The day and time of the pull request event, in timestamp format.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
PullRequestCreatedEventMetadata |
pullRequestCreatedEventMetadata()
Information about the source and destination branches for the pull request.
|
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)).
|
String |
pullRequestEventTypeAsString()
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)).
|
String |
pullRequestId()
The system-generated ID of the pull request.
|
PullRequestMergedStateChangedEventMetadata |
pullRequestMergedStateChangedEventMetadata()
Information about the change in mergability state for the pull request event.
|
PullRequestSourceReferenceUpdatedEventMetadata |
pullRequestSourceReferenceUpdatedEventMetadata()
Information about the updated source branch for the pull request event.
|
PullRequestStatusChangedEventMetadata |
pullRequestStatusChangedEventMetadata()
Information about the change in status for the pull request event.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PullRequestEvent.Builder> |
serializableBuilderClass() |
PullRequestEvent.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String pullRequestId()
The system-generated ID of the pull request.
public Instant eventDate()
The day and time of the pull request event, in timestamp format.
public 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)).
If the service returns an enum value that is not available in the current SDK version,
pullRequestEventType will return PullRequestEventType.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from pullRequestEventTypeAsString().
PullRequestEventTypepublic String pullRequestEventTypeAsString()
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)).
If the service returns an enum value that is not available in the current SDK version,
pullRequestEventType will return PullRequestEventType.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from pullRequestEventTypeAsString().
PullRequestEventTypepublic 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.
public PullRequestCreatedEventMetadata pullRequestCreatedEventMetadata()
Information about the source and destination branches for the pull request.
public PullRequestStatusChangedEventMetadata pullRequestStatusChangedEventMetadata()
Information about the change in status for the pull request event.
public PullRequestSourceReferenceUpdatedEventMetadata pullRequestSourceReferenceUpdatedEventMetadata()
Information about the updated source branch for the pull request event.
public PullRequestMergedStateChangedEventMetadata pullRequestMergedStateChangedEventMetadata()
Information about the change in mergability state for the pull request event.
public ApprovalRuleEventMetadata approvalRuleEventMetadata()
Information about a pull request event.
public ApprovalStateChangedEventMetadata approvalStateChangedEventMetadata()
Information about an approval state change for a pull request.
public ApprovalRuleOverriddenEventMetadata approvalRuleOverriddenEventMetadata()
Information about an approval rule override event for a pull request.
public PullRequestEvent.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PullRequestEvent.Builder,PullRequestEvent>public static PullRequestEvent.Builder builder()
public static Class<? extends PullRequestEvent.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.