// SetBranches sets the Branches field's value.
544626
func (s *ListBranchesOutput) SetBranches(v []*Branch) *ListBranchesOutput {
	s.Branches = v
	return s
}
643224
func (s *Webhook) SetBranchFilter(v string) *Webhook {
	s.BranchFilter = &v
	return s
}
949029
func (s *DescribeLaunchConfigurationsOutput) SetLaunchConfigurations(v []*LaunchConfiguration) *DescribeLaunchConfigurationsOutput {
	s.LaunchConfigurations = v
	return s
}
199337
func (s *Hit) SetExprs(v map[string]*string) *Hit {
	s.Exprs = v
	return s
}
375903
func (s *DescribeElasticLoadBalancersOutput) SetElasticLoadBalancers(v []*ElasticLoadBalancer) *DescribeElasticLoadBalancersOutput {
	s.ElasticLoadBalancers = v
	return s
}
922483
func (s *DeleteBranchOutput) SetBranch(v *Branch) *DeleteBranchOutput {
	s.Branch = v
	return s
}
58015
public void setBranches(java.util.Collection<String> branches) {
        if (branches == null) {
            this.branches = null;
            return;
        }

        this.branches = new java.util.ArrayList<String>(branches);
    }
693190
func (s *GetOperationsOutput) SetOperations(v []*Operation) *GetOperationsOutput {
	s.Operations = v
	return s
}
784204
func (s *CreateDiskSnapshotOutput) SetOperations(v []*Operation) *CreateDiskSnapshotOutput {
	s.Operations = v
	return s
}
758346
func (s *CreateInstancesOutput) SetOperations(v []*Operation) *CreateInstancesOutput {
	s.Operations = v
	return s
}
1176916
func (s *DeleteInstanceOutput) SetOperations(v []*Operation) *DeleteInstanceOutput {
	s.Operations = v
	return s
}
459548
func (c *ModelCommandBase) SetActiveBranch(branchName string) error {
	_, modelDetails, err := c.ModelDetails()
	if err != nil {
		return errors.Annotate(err, "getting model details")
	}
	modelDetails.ActiveBranch = branchName
	if err = c.store.UpdateModel(c._controllerName, c._modelName, *modelDetails); err != nil {
		return err
	}
	c._activeBranch = branchName
	return nil
}
1148253
func (s *DeleteDiskOutput) SetOperations(v []*Operation) *DeleteDiskOutput {
	s.Operations = v
	return s
}
618411
func (r *RepoResource) ListBranches(owner, slug string) ([]*Branch, error) {
	branchMap := map[string]*Branch{}
	path := fmt.Sprintf("/repositories/%s/%s/branches", owner, slug)

	if err := r.client.do("GET", path, nil, nil, &branchMap); err != nil {
		return nil, err
	}

	// The list is returned in a map ...
	// we really want a slice
	branches := []*Branch{}
	for _, branch := range branchMap {
		branches = append(branches, branch)
	}

	return branches, nil
}
1107162
func (s *DescribeDBSubnetGroupsOutput) SetDBSubnetGroups(v []*DBSubnetGroup) *DescribeDBSubnetGroupsOutput {
	s.DBSubnetGroups = v
	return s
}
928662
func (s *CreateBranchInput) SetBranchName(v string) *CreateBranchInput {
	s.BranchName = &v
	return s
}
1369564
func (s *ListOperationsOutput) SetOperations(v []*OperationSummary) *ListOperationsOutput {
	s.Operations = v
	return s
}