// SetBody encodes the body in the request. You may pass a flag to
// compress the request via gzip.
181901
func (r *Request) SetBody(body interface{}, gzipCompress bool) error {
	switch b := body.(type) {
	case string:
		if gzipCompress {
			return r.setBodyGzip(b)
		}
		return r.setBodyString(b)
	default:
		if gzipCompress {
			return r.setBodyGzip(body)
		}
		return r.setBodyJson(body)
	}
}
497360
func (s *PutObjectInput) SetBody(v io.ReadSeeker) *PutObjectInput {
	s.Body = v
	return s
}
1350740
func (r *vstRequest) SetBody(body ...interface{}) (driver.Request, error) {
	switch len(body) {
	case 0:
		return r, driver.WithStack(fmt.Errorf("Must provide at least 1 body"))
	case 1:
		if data, err := velocypack.Marshal(body[0]); err != nil {
			return r, driver.WithStack(err)
		} else {
			r.body = data
		}
		return r, nil
	default:
		slices := make([]velocypack.Slice, len(body))
		for i, b := range body {
			var err error
			slices[i], err = velocypack.Marshal(b)
			if err != nil {
				return r, driver.WithStack(err)
			}
		}
		merged, err := velocypack.Merge(slices...)
		if err != nil {
			return r, driver.WithStack(err)
		}
		r.body = merged
		return r, nil
	}
}
950989
func (s *UploadSigningCertificateInput) SetCertificateBody(v string) *UploadSigningCertificateInput {
	s.CertificateBody = &v
	return s
}
475590
func (r *Request) setBodyString(body string) error {
	return r.setBodyReader(strings.NewReader(body))
}
295359
func (o *CreateJSONWebKeySetParams) WithBody(body *models.CreateRequest) *CreateJSONWebKeySetParams {
	o.SetBody(body)
	return o
}
1089621
func (s *CreateStackSetInput) SetTemplateBody(v string) *CreateStackSetInput {
	s.TemplateBody = &v
	return s
}
949274
func (s *FixedResponseActionConfig) SetMessageBody(v string) *FixedResponseActionConfig {
	s.MessageBody = &v
	return s
}
239669
func (s *CreateApplicationVersionRequest) SetTemplateBody(v string) *CreateApplicationVersionRequest {
	s.TemplateBody = &v
	return s
}
1011827
func (s *NotifyEmailType) SetTextBody(v string) *NotifyEmailType {
	s.TextBody = &v
	return s
}
1262145
func (s *GetSdkOutput) SetBody(v []byte) *GetSdkOutput {
	s.Body = v
	return s
}
229872
func (s *ServerCertificate) SetCertificateBody(v string) *ServerCertificate {
	s.CertificateBody = &v
	return s
}
766678
func (s *Script) SetBody(body string) error {
	s.lock.Lock()
	defer s.lock.Unlock()
	s.body = strings.TrimSpace(body)
	return s.createSHA()
}
722561
func (r *RequestConfig) Body(body string) *RequestConfig {
	r.BodyReader = strings.NewReader(body)
	return r
}
11972
func (a *FulfillRequestArgs) SetBody(body string) *FulfillRequestArgs {
	a.Body = &body
	return a
}
650059
func (s *DescribeThingRegistrationTaskOutput) SetTemplateBody(v string) *DescribeThingRegistrationTaskOutput {
	s.TemplateBody = &v
	return s
}
447466
func (s *SMSMessage) SetBody(v string) *SMSMessage {
	s.Body = &v
	return s
}