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.

Target

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

type Target struct { DestinationReference *string `locationName:"destinationReference" type:"string"` RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` SourceReference *string `locationName:"sourceReference" type:"string" required:"true"` }

Returns information about a target for a pull request.

DestinationReference

Type: *string

The branch of the repository where the pull request changes will be merged into. Also known as the destination branch.

RepositoryName

Type: *string

The name of the repository that contains the pull request.

RepositoryName is a required field

SourceReference

Type: *string

The branch of the repository that contains the changes for the pull request. Also known as the source branch.

SourceReference is a required field

Method

GoString

func (s Target) GoString() string

GoString returns the string representation

SetDestinationReference

func (s *Target) SetDestinationReference(v string) *Target

SetDestinationReference sets the DestinationReference field's value.

SetRepositoryName

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

SetRepositoryName sets the RepositoryName field's value.

SetSourceReference

func (s *Target) SetSourceReference(v string) *Target

SetSourceReference sets the SourceReference field's value.

String

func (s Target) String() string

String returns the string representation

Validate

func (s *Target) Validate() error

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

On this page: