@Generated(value="software.amazon.awssdk:codegen") public class PullRequestEvent extends Object implements StructuredPojo, 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() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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 |
pullRequestEventTypeString()
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.
|
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 pullRequestEventTypeString()
.
PullRequestEventType
public String pullRequestEventTypeString()
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 pullRequestEventTypeString()
.
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 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()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.