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.

UpdateDefaultBranchInput

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

type UpdateDefaultBranchInput struct { DefaultBranchName *string `locationName:"defaultBranchName" min:"1" type:"string" required:"true"` RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` }

Represents the input of an update default branch operation.

DefaultBranchName

Type: *string

The name of the branch to set as the default.

DefaultBranchName is a required field

RepositoryName

Type: *string

The name of the repository to set or change the default branch for.

RepositoryName is a required field

Method

GoString

func (s UpdateDefaultBranchInput) GoString() string

GoString returns the string representation

SetDefaultBranchName

func (s *UpdateDefaultBranchInput) SetDefaultBranchName(v string) *UpdateDefaultBranchInput

SetDefaultBranchName sets the DefaultBranchName field's value.

SetRepositoryName

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

SetRepositoryName sets the RepositoryName field's value.

String

func (s UpdateDefaultBranchInput) String() string

String returns the string representation

Validate

func (s *UpdateDefaultBranchInput) Validate() error

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

On this page: