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.

GetDifferencesInput

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

type GetDifferencesInput struct { AfterCommitSpecifier *string `locationName:"afterCommitSpecifier" type:"string" required:"true"` AfterPath *string `locationName:"afterPath" type:"string"` BeforeCommitSpecifier *string `locationName:"beforeCommitSpecifier" type:"string"` BeforePath *string `locationName:"beforePath" type:"string"` MaxResults *int64 `type:"integer"` NextToken *string `type:"string"` RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` }

AfterCommitSpecifier

Type: *string

The branch, tag, HEAD, or other fully qualified reference used to identify a commit.

AfterCommitSpecifier is a required field

AfterPath

Type: *string

The file path in which to check differences. Limits the results to this path. Can also be used to specify the changed name of a directory or folder, if it has changed. If not specified, differences will be shown for all paths.

BeforeCommitSpecifier

Type: *string

The branch, tag, HEAD, or other fully qualified reference used to identify a commit. For example, the full commit ID. Optional. If not specified, all changes prior to the afterCommitSpecifier value will be shown. If you do not use beforeCommitSpecifier in your request, consider limiting the results with maxResults.

BeforePath

Type: *string

The file path in which to check for differences. Limits the results to this path. Can also be used to specify the previous name of a directory or folder. If beforePath and afterPath are not specified, differences will be shown for all paths.

MaxResults

Type: *int64

A non-negative integer used to limit the number of returned results.

NextToken

Type: *string

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

RepositoryName

Type: *string

The name of the repository where you want to get differences.

RepositoryName is a required field

Method

GoString

func (s GetDifferencesInput) GoString() string

GoString returns the string representation

SetAfterCommitSpecifier

func (s *GetDifferencesInput) SetAfterCommitSpecifier(v string) *GetDifferencesInput

SetAfterCommitSpecifier sets the AfterCommitSpecifier field's value.

SetAfterPath

func (s *GetDifferencesInput) SetAfterPath(v string) *GetDifferencesInput

SetAfterPath sets the AfterPath field's value.

SetBeforeCommitSpecifier

func (s *GetDifferencesInput) SetBeforeCommitSpecifier(v string) *GetDifferencesInput

SetBeforeCommitSpecifier sets the BeforeCommitSpecifier field's value.

SetBeforePath

func (s *GetDifferencesInput) SetBeforePath(v string) *GetDifferencesInput

SetBeforePath sets the BeforePath field's value.

SetMaxResults

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

SetMaxResults sets the MaxResults field's value.

SetNextToken

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

SetNextToken sets the NextToken field's value.

SetRepositoryName

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

SetRepositoryName sets the RepositoryName field's value.

String

func (s GetDifferencesInput) String() string

String returns the string representation

Validate

func (s *GetDifferencesInput) Validate() error

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

On this page: