// set methods set all methods name
// and add it to Methods slice
546941
func (r *Resource) setMethods(traitsMap map[string]Trait, apiDef *APIDefinition) {
	if r.Get != nil {
		r.Get.postProcess(r, "GET", traitsMap, apiDef)
	}
	if r.Post != nil {
		r.Post.postProcess(r, "POST", traitsMap, apiDef)
	}
	if r.Put != nil {
		r.Put.postProcess(r, "PUT", traitsMap, apiDef)
	}
	if r.Patch != nil {
		r.Patch.postProcess(r, "PATCH", traitsMap, apiDef)
	}
	if r.Head != nil {
		r.Head.postProcess(r, "HEAD", traitsMap, apiDef)
	}
	if r.Delete != nil {
		r.Delete.postProcess(r, "DELETE", traitsMap, apiDef)
	}
	if r.Options != nil {
		r.Options.postProcess(r, "OPTIONS", traitsMap, apiDef)
	}
}
881282
func (a *ContinueRequestArgs) SetMethod(method string) *ContinueRequestArgs {
	a.Method = &method
	return a
}
810928
func (ipp *IPPerm) SetAll(value bool) {
	ipp.Create = value
	ipp.Delete = value
	ipp.Release = value
	ipp.SetReverseDNS = value
	ipp.Show = value
}
390736
func (s *set) All() []interface{} {
	all := []interface{}{}
	for v := range s.values {
		all = append(all, v)
	}
	return all
}
130093
func (s *Rule) SetParameters(v map[string]*string) *Rule {
	s.Parameters = v
	return s
}
363813
func (ct *ControllerType) Method(name string) *MethodType {
	lowerName := strings.ToLower(name)
	for _, method := range ct.Methods {
		if method.lowerName == lowerName {
			return method
		}
	}
	return nil
}
1312894
func (s *CreateStackInput) SetParameters(v []*Parameter) *CreateStackInput {
	s.Parameters = v
	return s
}
437963
func (m ExtensionMechanismMap) Set(s string, mechanism Mechanism) {
	m[s] = mechanism
}
537590
func (self Object) Set(name string, value interface{}) error {
	{
		value, err := self.object.runtime.safeToValue(value)
		if err != nil {
			return err
		}
		err = catchPanic(func() {
			self.object.put(name, value, true)
		})
		return err
	}
}
99807
func (a MultiStatsClient) Set(name string, value string, rate float64) {
	for _, c := range a {
		c.Set(name, value, rate)
	}
}
300599
func (p *ProjectName) Set(v string) error {
	vp := ProjectName(v)
	if err := vp.Validate(); err != nil {
		return err
	}
	*p = vp
	return nil
}
316503
func (ns *Namespaces) Set(str string) error {
	fargs := func(c rune) bool {
		return c == ',' || c == ';'
	}
	// get function
	slice := strings.FieldsFunc(str, fargs)
	*ns = append(*ns, slice...)
	return nil
}
230806
func (o *Operation) Methods() []string {
	methods := []string{
		o.ExportedName,
		o.ExportedName + "Request",
		o.ExportedName + "WithContext",
	}

	if o.Paginator != nil {
		methods = append(methods, []string{
			o.ExportedName + "Pages",
			o.ExportedName + "PagesWithContext",
		}...)
	}

	return methods
}
263357
func (i *StringSlice) Set(value string) error {
	*i = append(*i, value)
	return nil
}
811809
func (s *DocumentationPartLocation) SetMethod(v string) *DocumentationPartLocation {
	s.Method = &v
	return s
}
1266695
func (s *JobDetail) SetParameters(v map[string]*string) *JobDetail {
	s.Parameters = v
	return s
}
526926
func (s *DomainValidation) SetValidationMethod(v string) *DomainValidation {
	s.ValidationMethod = &v
	return s
}