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.

PullRequest

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

type PullRequest struct { AuthorArn *string `locationName:"authorArn" type:"string"` ClientRequestToken *string `locationName:"clientRequestToken" type:"string"` CreationDate *time.Time `locationName:"creationDate" type:"timestamp"` Description *string `locationName:"description" type:"string"` LastActivityDate *time.Time `locationName:"lastActivityDate" type:"timestamp"` PullRequestId *string `locationName:"pullRequestId" type:"string"` PullRequestStatus *string `locationName:"pullRequestStatus" type:"string" enum:"PullRequestStatusEnum"` PullRequestTargets []*PullRequestTarget `locationName:"pullRequestTargets" type:"list"` Title *string `locationName:"title" type:"string"` }

Returns information about a pull request.

AuthorArn

Type: *string

The Amazon Resource Name (ARN) of the user who created the pull request.

ClientRequestToken

Type: *string

A unique, client-generated idempotency token that when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request will return information about the initial request that used that token.

CreationDate

Type: *time.Time

The date and time the pull request was originally created, in timestamp format.

Description

Type: *string

The user-defined description of the pull request. This description can be used to clarify what should be reviewed and other details of the request.

LastActivityDate

Type: *time.Time

The day and time of the last user or system activity on the pull request, in timestamp format.

PullRequestId

Type: *string

The system-generated ID of the pull request.

PullRequestStatus

Type: *string

The status of the pull request. Pull request status can only change from OPEN to CLOSED.

PullRequestTargets

Returns information about a pull request target.

Title

Type: *string

The user-defined title of the pull request. This title is displayed in the list of pull requests to other users of the repository.

Method

GoString

func (s PullRequest) GoString() string

GoString returns the string representation

SetAuthorArn

func (s *PullRequest) SetAuthorArn(v string) *PullRequest

SetAuthorArn sets the AuthorArn field's value.

SetClientRequestToken

func (s *PullRequest) SetClientRequestToken(v string) *PullRequest

SetClientRequestToken sets the ClientRequestToken field's value.

SetCreationDate

func (s *PullRequest) SetCreationDate(v time.Time) *PullRequest

SetCreationDate sets the CreationDate field's value.

SetDescription

func (s *PullRequest) SetDescription(v string) *PullRequest

SetDescription sets the Description field's value.

SetLastActivityDate

func (s *PullRequest) SetLastActivityDate(v time.Time) *PullRequest

SetLastActivityDate sets the LastActivityDate field's value.

SetPullRequestId

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

SetPullRequestId sets the PullRequestId field's value.

SetPullRequestStatus

func (s *PullRequest) SetPullRequestStatus(v string) *PullRequest

SetPullRequestStatus sets the PullRequestStatus field's value.

SetPullRequestTargets

func (s *PullRequest) SetPullRequestTargets(v []*PullRequestTarget) *PullRequest

SetPullRequestTargets sets the PullRequestTargets field's value.

SetTitle

func (s *PullRequest) SetTitle(v string) *PullRequest

SetTitle sets the Title field's value.

String

func (s PullRequest) String() string

String returns the string representation

On this page: