// SetVersion sets the tools version associated with
// the given application.
8614
func (c *Client) SetVersion(appName string, v version.Binary) error {
	if !names.IsValidApplication(appName) {
		return errors.NotValidf("application name %q", appName)
	}
	var results params.ErrorResults
	args := params.EntitiesVersion{
		AgentTools: []params.EntityVersion{{
			Tag:   names.NewApplicationTag(appName).String(),
			Tools: &params.Version{v},
		}},
	}
	err := c.facade.FacadeCall("SetTools", args, &results)
	if err != nil {
		return errors.Trace(err)
	}
	return results.OneError()
}
589329
func (s *DescribeBillingGroupOutput) SetVersion(v int64) *DescribeBillingGroupOutput {
	s.Version = &v
	return s
}
16653
func (s *RobotSoftwareSuite) SetVersion(v string) *RobotSoftwareSuite {
	s.Version = &v
	return s
}
1302478
func (s *RestApi) SetVersion(v string) *RestApi {
	s.Version = &v
	return s
}
717203
func (s *UpdateScriptInput) SetVersion(v string) *UpdateScriptInput {
	s.Version = &v
	return s
}
563632
func (s *PipelineDeclaration) SetVersion(v int64) *PipelineDeclaration {
	s.Version = &v
	return s
}
1236419
func (s *UpdateApplicationOutput) SetVersion(v *Version) *UpdateApplicationOutput {
	s.Version = v
	return s
}
254549
func (s *Task) SetVersion(v int64) *Task {
	s.Version = &v
	return s
}
350755
func (s *SimulationApplicationSummary) SetVersion(v string) *SimulationApplicationSummary {
	s.Version = &v
	return s
}
699994
func (s *Blueprint) SetVersion(v string) *Blueprint {
	s.Version = &v
	return s
}
765685
func (s *InventoryDeletionSummaryItem) SetVersion(v string) *InventoryDeletionSummaryItem {
	s.Version = &v
	return s
}
1166664
func (s *GetIntentInput) SetVersion(v string) *GetIntentInput {
	s.Version = &v
	return s
}
16922
func (s *BundleDetails) SetVersion(v string) *BundleDetails {
	s.Version = &v
	return s
}
815285
func (s *RobotApplicationSummary) SetVersion(v string) *RobotApplicationSummary {
	s.Version = &v
	return s
}
1320851
func (s *Script) SetVersion(v string) *Script {
	s.Version = &v
	return s
}
935689
func (s *DescribeThingGroupOutput) SetVersion(v int64) *DescribeThingGroupOutput {
	s.Version = &v
	return s
}
1022287
func (s *DeleteIntentVersionInput) SetVersion(v string) *DeleteIntentVersionInput {
	s.Version = &v
	return s
}