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.

BranchInfo

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

type BranchInfo struct { BranchName *string `locationName:"branchName" min:"1" type:"string"` CommitId *string `locationName:"commitId" type:"string"` }

Returns information about a branch.

BranchName

Type: *string

The name of the branch.

CommitId

Type: *string

The ID of the last commit made to the branch.

Method

GoString

func (s BranchInfo) GoString() string

GoString returns the string representation

SetBranchName

func (s *BranchInfo) SetBranchName(v string) *BranchInfo

SetBranchName sets the BranchName field's value.

SetCommitId

func (s *BranchInfo) SetCommitId(v string) *BranchInfo

SetCommitId sets the CommitId field's value.

String

func (s BranchInfo) String() string

String returns the string representation

On this page: