Class PullRequestEvent
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<PullRequestEvent.Builder,
PullRequestEvent>
Returns information about a pull request event.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
actorArn()
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.Builder
builder()
final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final Instant
The day and time of the pull request event, in timestamp format.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
Information about the source and destination branches for the pull request.final 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)).final String
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)).final String
The 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 String
toString()
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,
pullRequestEventType
will 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,
pullRequestEventType
will 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:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<PullRequestEvent.Builder,
PullRequestEvent> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in 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
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-