@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.
|
static PullRequestEvent.Builder |
builder() |
boolean |
equals(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()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public 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()
.
PullRequestEventType
public 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()
.
PullRequestEventType
public String actorArn()
The Amazon Resource Name (ARN) of the user whose actions resulted in the event. Examples include updating the pull request with additional 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 PullRequestEvent.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<PullRequestEvent.Builder,PullRequestEvent>
public static PullRequestEvent.Builder builder()
public static Class<? extends PullRequestEvent.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.