func (o *QueryRemediationsFilterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
	if err := r.SetTimeout(o.timeout); err != nil {
		return err
	}
	var res []error
	if o.Filter != nil {
		var qrFilter string
		if o.Filter != nil {
			qrFilter = *o.Filter
		}
		qFilter := qrFilter
		if qFilter != "" {
			if err := r.SetQueryParam("filter", qFilter); err != nil {
				return err
			}
		}
	}
	if o.Limit != nil {
		var qrLimit int64
		if o.Limit != nil {
			qrLimit = *o.Limit
		}
		qLimit := swag.FormatInt64(qrLimit)
		if qLimit != "" {
			if err := r.SetQueryParam("limit", qLimit); err != nil {
				return err
			}
		}
	}
	if o.Offset != nil {
		var qrOffset string
		if o.Offset != nil {
			qrOffset = *o.Offset
		}
		qOffset := qrOffset
		if qOffset != "" {
			if err := r.SetQueryParam("offset", qOffset); err != nil {
				return err
			}
		}
	}
	if o.Sort != nil {
		var qrSort string
		if o.Sort != nil {
			qrSort = *o.Sort
		}
		qSort := qrSort
		if qSort != "" {
			if err := r.SetQueryParam("sort", qSort); err != nil {
				return err
			}
		}
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
WriteToRequest writes these params to a swagger request
package falcon_complete_dashboard
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/go-openapi/swag"
)
func NewQueryRemediationsFilterParams() *QueryRemediationsFilterParams {
	return &QueryRemediationsFilterParams{
		timeout: cr.DefaultTimeout,
	}
}
func NewQueryRemediationsFilterParamsWithTimeout(timeout time.Duration) *QueryRemediationsFilterParams {
	return &QueryRemediationsFilterParams{
		timeout: timeout,
	}
}
func NewQueryRemediationsFilterParamsWithContext(ctx context.Context) *QueryRemediationsFilterParams {
	return &QueryRemediationsFilterParams{
		Context: ctx,
	}
}
func NewQueryRemediationsFilterParamsWithHTTPClient(client *http.Client) *QueryRemediationsFilterParams {
	return &QueryRemediationsFilterParams{
		HTTPClient: client,
	}
}
type QueryRemediationsFilterParams struct {
	Filter *string
	Limit *int64
	Offset *string
	Sort *string
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *QueryRemediationsFilterParams) WithDefaults() *QueryRemediationsFilterParams {
	o.SetDefaults()
	return o
}
func (o *QueryRemediationsFilterParams) SetDefaults() {
}
func (o *QueryRemediationsFilterParams) WithTimeout(timeout time.Duration) *QueryRemediationsFilterParams {
	o.SetTimeout(timeout)
	return o
}
func (o *QueryRemediationsFilterParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *QueryRemediationsFilterParams) WithContext(ctx context.Context) *QueryRemediationsFilterParams {
	o.SetContext(ctx)
	return o
}
func (o *QueryRemediationsFilterParams) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *QueryRemediationsFilterParams) WithHTTPClient(client *http.Client) *QueryRemediationsFilterParams {
	o.SetHTTPClient(client)
	return o
}
func (o *QueryRemediationsFilterParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}
func (o *QueryRemediationsFilterParams) WithFilter(filter *string) *QueryRemediationsFilterParams {
	o.SetFilter(filter)
	return o
}
func (o *QueryRemediationsFilterParams) SetFilter(filter *string) {
	o.Filter = filter
}
func (o *QueryRemediationsFilterParams) WithLimit(limit *int64) *QueryRemediationsFilterParams {
	o.SetLimit(limit)
	return o
}
func (o *QueryRemediationsFilterParams) SetLimit(limit *int64) {
	o.Limit = limit
}
func (o *QueryRemediationsFilterParams) WithOffset(offset *string) *QueryRemediationsFilterParams {
	o.SetOffset(offset)
	return o
}
func (o *QueryRemediationsFilterParams) SetOffset(offset *string) {
	o.Offset = offset
}
func (o *QueryRemediationsFilterParams) WithSort(sort *string) *QueryRemediationsFilterParams {
	o.SetSort(sort)
	return o
}
func (o *QueryRemediationsFilterParams) SetSort(sort *string) {
	o.Sort = sort
}