Class PullRequestEvent
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PullRequestEvent.Builder,PullRequestEvent>
Returns information about a pull request event.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringactorArn()The Amazon Resource Name (ARN) of the user whose actions resulted in the event.Information about a pull request event.Information about an approval rule override event for a pull request.Information about an approval state change for a pull request.static PullRequestEvent.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final InstantThe day and time of the pull request event, in timestamp format.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()Information about the source and destination branches for the pull request.final PullRequestEventTypeThe type of the pull request event (for example, a status change event (PULL_REQUEST_STATUS_CHANGED) or update event (PULL_REQUEST_SOURCE_REFERENCE_UPDATED)).final StringThe type of the pull request event (for example, a status change event (PULL_REQUEST_STATUS_CHANGED) or update event (PULL_REQUEST_SOURCE_REFERENCE_UPDATED)).final StringThe system-generated ID of the pull request.Information about the change in mergability state for the pull request event.Information about the updated source branch for the pull request event.Information about the change in status for the pull request event.static Class<? extends PullRequestEvent.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
pullRequestId
The system-generated ID of the pull request.
- Returns:
- The system-generated ID of the pull request.
-
eventDate
The day and time of the pull request event, in timestamp format.
- Returns:
- The day and time of the pull request event, in timestamp format.
-
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,
pullRequestEventTypewill returnPullRequestEventType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompullRequestEventTypeAsString().- Returns:
- 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)).
- See Also:
-
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,
pullRequestEventTypewill returnPullRequestEventType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompullRequestEventTypeAsString().- Returns:
- 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)).
- 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.
- Returns:
- 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.
-
pullRequestCreatedEventMetadata
Information about the source and destination branches for the pull request.
- Returns:
- Information about the source and destination branches for the pull request.
-
pullRequestStatusChangedEventMetadata
Information about the change in status for the pull request event.
- Returns:
- Information about the change in status for the pull request event.
-
pullRequestSourceReferenceUpdatedEventMetadata
public final PullRequestSourceReferenceUpdatedEventMetadata pullRequestSourceReferenceUpdatedEventMetadata()Information about the updated source branch for the pull request event.
- Returns:
- Information about the updated source branch for the pull request event.
-
pullRequestMergedStateChangedEventMetadata
public final PullRequestMergedStateChangedEventMetadata pullRequestMergedStateChangedEventMetadata()Information about the change in mergability state for the pull request event.
- Returns:
- Information about the change in mergability state for the pull request event.
-
approvalRuleEventMetadata
Information about a pull request event.
- Returns:
- Information about a pull request event.
-
approvalStateChangedEventMetadata
Information about an approval state change for a pull request.
- Returns:
- Information about an approval state change for a pull request.
-
approvalRuleOverriddenEventMetadata
Information about an approval rule override event for a pull request.
- Returns:
- Information about an approval rule override event for a pull request.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<PullRequestEvent.Builder,PullRequestEvent> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-