Class PullRequestEvent
- java.lang.Object
-
- software.amazon.awssdk.services.codecommit.model.PullRequestEvent
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PullRequestEvent.Builder,PullRequestEvent>
@Generated("software.amazon.awssdk:codegen") public final class PullRequestEvent extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PullRequestEvent.Builder,PullRequestEvent>
Returns information about a pull request event.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePullRequestEvent.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringactorArn()The Amazon Resource Name (ARN) of the user whose actions resulted in the event.ApprovalRuleEventMetadataapprovalRuleEventMetadata()Information about a pull request event.ApprovalRuleOverriddenEventMetadataapprovalRuleOverriddenEventMetadata()Information about an approval rule override event for a pull request.ApprovalStateChangedEventMetadataapprovalStateChangedEventMetadata()Information about an approval state change for a pull request.static PullRequestEvent.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)InstanteventDate()The day and time of the pull request event, in timestamp format.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()PullRequestCreatedEventMetadatapullRequestCreatedEventMetadata()Information about the source and destination branches for the pull request.PullRequestEventTypepullRequestEventType()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)).StringpullRequestEventTypeAsString()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)).StringpullRequestId()The system-generated ID of the pull request.PullRequestMergedStateChangedEventMetadatapullRequestMergedStateChangedEventMetadata()Information about the change in mergability state for the pull request event.PullRequestSourceReferenceUpdatedEventMetadatapullRequestSourceReferenceUpdatedEventMetadata()Information about the updated source branch for the pull request event.PullRequestStatusChangedEventMetadatapullRequestStatusChangedEventMetadata()Information about the change in status for the pull request event.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends PullRequestEvent.Builder>serializableBuilderClass()PullRequestEvent.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
pullRequestId
public final String pullRequestId()
The system-generated ID of the pull request.
- Returns:
- The system-generated ID of the pull request.
-
eventDate
public final Instant 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
public final 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,
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:
PullRequestEventType
-
pullRequestEventTypeAsString
public final 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,
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:
PullRequestEventType
-
actorArn
public final 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.
- 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
public final PullRequestCreatedEventMetadata 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
public final PullRequestStatusChangedEventMetadata 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
public final ApprovalRuleEventMetadata approvalRuleEventMetadata()
Information about a pull request event.
- Returns:
- Information about a pull request event.
-
approvalStateChangedEventMetadata
public final ApprovalStateChangedEventMetadata approvalStateChangedEventMetadata()
Information about an approval state change for a pull request.
- Returns:
- Information about an approval state change for a pull request.
-
approvalRuleOverriddenEventMetadata
public final ApprovalRuleOverriddenEventMetadata 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
public PullRequestEvent.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PullRequestEvent.Builder,PullRequestEvent>
-
builder
public static PullRequestEvent.Builder builder()
-
serializableBuilderClass
public static Class<? extends PullRequestEvent.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-