func (o *UpdateCSPMScanScheduleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
	if err := r.SetTimeout(o.timeout); err != nil {
		return err
	}
	var res []error
	if o.Body != nil {
		if err := r.SetBodyParam(o.Body); err != nil {
			return err
		}
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
WriteToRequest writes these params to a swagger request
package cspm_registration
import (
	"context"
	"net/http"
	"time"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime"
	cr "github.com/go-openapi/runtime/client"
	"github.com/go-openapi/strfmt"
	"github.com/crowdstrike/gofalcon/falcon/models"
)
func NewUpdateCSPMScanScheduleParams() *UpdateCSPMScanScheduleParams {
	return &UpdateCSPMScanScheduleParams{
		timeout: cr.DefaultTimeout,
	}
}
func NewUpdateCSPMScanScheduleParamsWithTimeout(timeout time.Duration) *UpdateCSPMScanScheduleParams {
	return &UpdateCSPMScanScheduleParams{
		timeout: timeout,
	}
}
func NewUpdateCSPMScanScheduleParamsWithContext(ctx context.Context) *UpdateCSPMScanScheduleParams {
	return &UpdateCSPMScanScheduleParams{
		Context: ctx,
	}
}
func NewUpdateCSPMScanScheduleParamsWithHTTPClient(client *http.Client) *UpdateCSPMScanScheduleParams {
	return &UpdateCSPMScanScheduleParams{
		HTTPClient: client,
	}
}
type UpdateCSPMScanScheduleParams struct {
	Body *models.RegistrationScanScheduleUpdateRequestV1
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *UpdateCSPMScanScheduleParams) WithDefaults() *UpdateCSPMScanScheduleParams {
	o.SetDefaults()
	return o
}
func (o *UpdateCSPMScanScheduleParams) SetDefaults() {
}
func (o *UpdateCSPMScanScheduleParams) WithTimeout(timeout time.Duration) *UpdateCSPMScanScheduleParams {
	o.SetTimeout(timeout)
	return o
}
func (o *UpdateCSPMScanScheduleParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *UpdateCSPMScanScheduleParams) WithContext(ctx context.Context) *UpdateCSPMScanScheduleParams {
	o.SetContext(ctx)
	return o
}
func (o *UpdateCSPMScanScheduleParams) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *UpdateCSPMScanScheduleParams) WithHTTPClient(client *http.Client) *UpdateCSPMScanScheduleParams {
	o.SetHTTPClient(client)
	return o
}
func (o *UpdateCSPMScanScheduleParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}
func (o *UpdateCSPMScanScheduleParams) WithBody(body *models.RegistrationScanScheduleUpdateRequestV1) *UpdateCSPMScanScheduleParams {
	o.SetBody(body)
	return o
}
func (o *UpdateCSPMScanScheduleParams) SetBody(body *models.RegistrationScanScheduleUpdateRequestV1) {
	o.Body = body
}