// SetBranchName sets the BranchName field's value.
1226
func (s *SubDomainSetting) SetBranchName(v string) *SubDomainSetting {
	s.BranchName = &v
	return s
}
1124621
func (s *CreateAccountInput) SetAccountName(v string) *CreateAccountInput {
	s.AccountName = &v
	return s
}
778196
func (c *Client) AddBranch(branchName string) error {
	var result params.ErrorResult
	err := c.facade.FacadeCall("AddBranch", argForBranch(branchName), &result)
	if err != nil {
		return errors.Trace(err)
	}
	if result.Error != nil {
		return errors.Trace(result.Error)
	}
	return nil
}
464909
func (s *PutBotAliasOutput) SetBotName(v string) *PutBotAliasOutput {
	s.BotName = &v
	return s
}
164253
func (s *Branch) SetBranchArn(v string) *Branch {
	s.BranchArn = &v
	return s
}
649272
func (s *BranchInfo) SetBranchName(v string) *BranchInfo {
	s.BranchName = &v
	return s
}
310602
func (s *Pipeline) SetName(v string) *Pipeline {
	s.Name = &v
	return s
}
304477
func (s *CreateBackupInput) SetBackupName(v string) *CreateBackupInput {
	s.BackupName = &v
	return s
}
594032
func ValidateBranchName(name string) error {
	if name == "" {
		return errors.NotValidf("empty branch name")
	}
	if name == GenerationMaster {
		return errors.NotValidf("branch name %q", GenerationMaster)
	}
	return nil
}
164242
func (s *CreateDBInstanceInput) SetDBName(v string) *CreateDBInstanceInput {
	s.DBName = &v
	return s
}
785150
func (s *RestoreDBInstanceFromS3Input) SetDBName(v string) *RestoreDBInstanceFromS3Input {
	s.DBName = &v
	return s
}
118242
func (s *Cluster) SetName(v string) *Cluster {
	s.Name = &v
	return s
}
316173
func (s *GetBotAliasOutput) SetBotName(v string) *GetBotAliasOutput {
	s.BotName = &v
	return s
}
118169
func (s *Suite) SetName(v string) *Suite {
	s.Name = &v
	return s
}
365647
func (s *Trigger) SetName(v string) *Trigger {
	s.Name = &v
	return s
}
275100
func (s *ModifyDBSubnetGroupInput) SetDBSubnetGroupName(v string) *ModifyDBSubnetGroupInput {
	s.DBSubnetGroupName = &v
	return s
}
1007158
func (s *Snapshot) SetDBName(v string) *Snapshot {
	s.DBName = &v
	return s
}