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.

PostCommentForPullRequestInput

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

type PostCommentForPullRequestInput struct { AfterCommitId *string `locationName:"afterCommitId" type:"string" required:"true"` BeforeCommitId *string `locationName:"beforeCommitId" type:"string" required:"true"` ClientRequestToken *string `locationName:"clientRequestToken" type:"string" idempotencyToken:"true"` Content *string `locationName:"content" type:"string" required:"true"` Location *Location `locationName:"location" type:"structure"` PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"` RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` }

AfterCommitId

Type: *string

The full commit ID of the commit in the source branch that is the current tip of the branch for the pull request when you post the comment.

AfterCommitId is a required field

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.

BeforeCommitId is a required field

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.

Content

Type: *string

The content of your comment on the change.

Content is a required field

Location

Returns information about the location of a change or comment in the comparison between two commits or a pull request.

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 where you want to post a comment on a pull request.

RepositoryName is a required field

Method

GoString

func (s PostCommentForPullRequestInput) GoString() string

GoString returns the string representation

SetAfterCommitId

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

SetAfterCommitId sets the AfterCommitId field's value.

SetBeforeCommitId

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

SetBeforeCommitId sets the BeforeCommitId field's value.

SetClientRequestToken

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

SetClientRequestToken sets the ClientRequestToken field's value.

SetContent

func (s *PostCommentForPullRequestInput) SetContent(v string) *PostCommentForPullRequestInput

SetContent sets the Content field's value.

SetLocation

func (s *PostCommentForPullRequestInput) SetLocation(v *Location) *PostCommentForPullRequestInput

SetLocation sets the Location field's value.

SetPullRequestId

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

SetPullRequestId sets the PullRequestId field's value.

SetRepositoryName

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

SetRepositoryName sets the RepositoryName field's value.

String

func (s PostCommentForPullRequestInput) String() string

String returns the string representation

Validate

func (s *PostCommentForPullRequestInput) Validate() error

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

On this page: