AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

PullRequestEvent

import "github.com/aws/aws-sdk-go/service/codecommit"

type PullRequestEvent struct { ActorArn *string `locationName:"actorArn" type:"string"` EventDate *time.Time `locationName:"eventDate" type:"timestamp"` PullRequestCreatedEventMetadata *PullRequestCreatedEventMetadata `locationName:"pullRequestCreatedEventMetadata" type:"structure"` PullRequestEventType *string `locationName:"pullRequestEventType" type:"string" enum:"PullRequestEventType"` PullRequestId *string `locationName:"pullRequestId" type:"string"` PullRequestMergedStateChangedEventMetadata *PullRequestMergedStateChangedEventMetadata `locationName:"pullRequestMergedStateChangedEventMetadata" type:"structure"` PullRequestSourceReferenceUpdatedEventMetadata *PullRequestSourceReferenceUpdatedEventMetadata `locationName:"pullRequestSourceReferenceUpdatedEventMetadata" type:"structure"` PullRequestStatusChangedEventMetadata *PullRequestStatusChangedEventMetadata `locationName:"pullRequestStatusChangedEventMetadata" type:"structure"` }

Returns information about a pull request event.

ActorArn

Type: *string

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.

EventDate

Type: *time.Time

The day and time of the pull request event, in timestamp format.

PullRequestCreatedEventMetadata

Metadata about the pull request that is used when comparing the pull request source with its destination.

PullRequestEventType

Type: *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).

PullRequestId

Type: *string

The system-generated ID of the pull request.

PullRequestMergedStateChangedEventMetadata

Returns information about the change in the merge state for a pull request event.

PullRequestSourceReferenceUpdatedEventMetadata

Information about an update to the source branch of a pull request.

PullRequestStatusChangedEventMetadata

Information about a change to the status of a pull request.

Method

GoString

func (s PullRequestEvent) GoString() string

GoString returns the string representation

SetActorArn

func (s *PullRequestEvent) SetActorArn(v string) *PullRequestEvent

SetActorArn sets the ActorArn field's value.

SetEventDate

func (s *PullRequestEvent) SetEventDate(v time.Time) *PullRequestEvent

SetEventDate sets the EventDate field's value.

SetPullRequestCreatedEventMetadata

func (s *PullRequestEvent) SetPullRequestCreatedEventMetadata(v *PullRequestCreatedEventMetadata) *PullRequestEvent

SetPullRequestCreatedEventMetadata sets the PullRequestCreatedEventMetadata field's value.

SetPullRequestEventType

func (s *PullRequestEvent) SetPullRequestEventType(v string) *PullRequestEvent

SetPullRequestEventType sets the PullRequestEventType field's value.

SetPullRequestId

func (s *PullRequestEvent) SetPullRequestId(v string) *PullRequestEvent

SetPullRequestId sets the PullRequestId field's value.

SetPullRequestMergedStateChangedEventMetadata

func (s *PullRequestEvent) SetPullRequestMergedStateChangedEventMetadata(v *PullRequestMergedStateChangedEventMetadata) *PullRequestEvent

SetPullRequestMergedStateChangedEventMetadata sets the PullRequestMergedStateChangedEventMetadata field's value.

SetPullRequestSourceReferenceUpdatedEventMetadata

func (s *PullRequestEvent) SetPullRequestSourceReferenceUpdatedEventMetadata(v *PullRequestSourceReferenceUpdatedEventMetadata) *PullRequestEvent

SetPullRequestSourceReferenceUpdatedEventMetadata sets the PullRequestSourceReferenceUpdatedEventMetadata field's value.

SetPullRequestStatusChangedEventMetadata

func (s *PullRequestEvent) SetPullRequestStatusChangedEventMetadata(v *PullRequestStatusChangedEventMetadata) *PullRequestEvent

SetPullRequestStatusChangedEventMetadata sets the PullRequestStatusChangedEventMetadata field's value.

String

func (s PullRequestEvent) String() string

String returns the string representation

On this page: