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.

CreateBranchInput

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

type CreateBranchInput struct { BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"` CommitId *string `locationName:"commitId" type:"string" required:"true"` RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` }

Represents the input of a create branch operation.

BranchName

Type: *string

The name of the new branch to create.

BranchName is a required field

CommitId

Type: *string

The ID of the commit to point the new branch to.

CommitId is a required field

RepositoryName

Type: *string

The name of the repository in which you want to create the new branch.

RepositoryName is a required field

Method

GoString

func (s CreateBranchInput) GoString() string

GoString returns the string representation

SetBranchName

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

SetBranchName sets the BranchName field's value.

SetCommitId

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

SetCommitId sets the CommitId field's value.

SetRepositoryName

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

SetRepositoryName sets the RepositoryName field's value.

String

func (s CreateBranchInput) String() string

String returns the string representation

Validate

func (s *CreateBranchInput) Validate() error

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

On this page: