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.

PostCommentForComparedCommitInput

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

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

AfterCommitId

Type: *string

To establish the directionality of the comparison, the full commit ID of the 'after' commit.

AfterCommitId is a required field

BeforeCommitId

Type: *string

To establish the directionality of the comparison, the full commit ID of the 'before' commit.

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 the comment you want to make.

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.

RepositoryName

Type: *string

The name of the repository where you want to post a comment on the comparison between commits.

RepositoryName is a required field

Method

GoString

func (s PostCommentForComparedCommitInput) GoString() string

GoString returns the string representation

SetAfterCommitId

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

SetAfterCommitId sets the AfterCommitId field's value.

SetBeforeCommitId

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

SetBeforeCommitId sets the BeforeCommitId field's value.

SetClientRequestToken

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

SetClientRequestToken sets the ClientRequestToken field's value.

SetContent

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

SetContent sets the Content field's value.

SetLocation

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

SetLocation sets the Location field's value.

SetRepositoryName

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

SetRepositoryName sets the RepositoryName field's value.

String

func (s PostCommentForComparedCommitInput) String() string

String returns the string representation

Validate

func (s *PostCommentForComparedCommitInput) Validate() error

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

On this page: