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.

Comment

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

type Comment struct { AuthorArn *string `locationName:"authorArn" type:"string"` ClientRequestToken *string `locationName:"clientRequestToken" type:"string"` CommentId *string `locationName:"commentId" type:"string"` Content *string `locationName:"content" type:"string"` CreationDate *time.Time `locationName:"creationDate" type:"timestamp"` Deleted *bool `locationName:"deleted" type:"boolean"` InReplyTo *string `locationName:"inReplyTo" type:"string"` LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"` }

Returns information about a specific comment.

AuthorArn

Type: *string

The Amazon Resource Name (ARN) of the person who posted the comment.

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.

CommentId

Type: *string

The system-generated comment ID.

Content

Type: *string

The content of the comment.

CreationDate

Type: *time.Time

The date and time the comment was created, in timestamp format.

Deleted

Type: *bool

A Boolean value indicating whether the comment has been deleted.

InReplyTo

Type: *string

The ID of the comment for which this comment is a reply, if any.

LastModifiedDate

Type: *time.Time

The date and time the comment was most recently modified, in timestamp format.

Method

GoString

func (s Comment) GoString() string

GoString returns the string representation

SetAuthorArn

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

SetAuthorArn sets the AuthorArn field's value.

SetClientRequestToken

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

SetClientRequestToken sets the ClientRequestToken field's value.

SetCommentId

func (s *Comment) SetCommentId(v string) *Comment

SetCommentId sets the CommentId field's value.

SetContent

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

SetContent sets the Content field's value.

SetCreationDate

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

SetCreationDate sets the CreationDate field's value.

SetDeleted

func (s *Comment) SetDeleted(v bool) *Comment

SetDeleted sets the Deleted field's value.

SetInReplyTo

func (s *Comment) SetInReplyTo(v string) *Comment

SetInReplyTo sets the InReplyTo field's value.

SetLastModifiedDate

func (s *Comment) SetLastModifiedDate(v time.Time) *Comment

SetLastModifiedDate sets the LastModifiedDate field's value.

String

func (s Comment) String() string

String returns the string representation

On this page: