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.

GetCommentsForPullRequestInput

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

type GetCommentsForPullRequestInput struct { AfterCommitId *string `locationName:"afterCommitId" type:"string"` BeforeCommitId *string `locationName:"beforeCommitId" type:"string"` MaxResults *int64 `locationName:"maxResults" type:"integer"` NextToken *string `locationName:"nextToken" type:"string"` PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"` RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` }

AfterCommitId

Type: *string

The full commit ID of the commit in the source branch that was the tip of the branch at the time the comment was made.

BeforeCommitId

Type: *string

The full commit ID of the commit in the destination branch that was the tip of the branch at the time the pull request was created.

MaxResults

Type: *int64

A non-negative integer used to limit the number of returned results. The default is 100 comments. You can return up to 500 comments with a single request.

NextToken

Type: *string

An enumeration token that when provided in a request, returns the next batch of the results.

PullRequestId

Type: *string

The system-generated ID of the pull request. To get this ID, use ListPullRequests.

PullRequestId is a required field

RepositoryName

Type: *string

The name of the repository that contains the pull request.

Method

GoString

func (s GetCommentsForPullRequestInput) GoString() string

GoString returns the string representation

SetAfterCommitId

func (s *GetCommentsForPullRequestInput) SetAfterCommitId(v string) *GetCommentsForPullRequestInput

SetAfterCommitId sets the AfterCommitId field's value.

SetBeforeCommitId

func (s *GetCommentsForPullRequestInput) SetBeforeCommitId(v string) *GetCommentsForPullRequestInput

SetBeforeCommitId sets the BeforeCommitId field's value.

SetMaxResults

func (s *GetCommentsForPullRequestInput) SetMaxResults(v int64) *GetCommentsForPullRequestInput

SetMaxResults sets the MaxResults field's value.

SetNextToken

func (s *GetCommentsForPullRequestInput) SetNextToken(v string) *GetCommentsForPullRequestInput

SetNextToken sets the NextToken field's value.

SetPullRequestId

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

SetPullRequestId sets the PullRequestId field's value.

SetRepositoryName

func (s *GetCommentsForPullRequestInput) SetRepositoryName(v string) *GetCommentsForPullRequestInput

SetRepositoryName sets the RepositoryName field's value.

String

func (s GetCommentsForPullRequestInput) String() string

String returns the string representation

Validate

func (s *GetCommentsForPullRequestInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: