func (o *QueryIOCsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
	if err := r.SetTimeout(o.timeout); err != nil {
		return err
	}
	var res []error
	if o.CreatedBy != nil {
		var qrCreatedBy string
		if o.CreatedBy != nil {
			qrCreatedBy = *o.CreatedBy
		}
		qCreatedBy := qrCreatedBy
		if qCreatedBy != "" {
			if err := r.SetQueryParam("created_by", qCreatedBy); err != nil {
				return err
			}
		}
	}
	if o.DeletedBy != nil {
		var qrDeletedBy string
		if o.DeletedBy != nil {
			qrDeletedBy = *o.DeletedBy
		}
		qDeletedBy := qrDeletedBy
		if qDeletedBy != "" {
			if err := r.SetQueryParam("deleted_by", qDeletedBy); err != nil {
				return err
			}
		}
	}
	if o.FromExpirationTimestamp != nil {
		var qrFromExpirationTimestamp string
		if o.FromExpirationTimestamp != nil {
			qrFromExpirationTimestamp = *o.FromExpirationTimestamp
		}
		qFromExpirationTimestamp := qrFromExpirationTimestamp
		if qFromExpirationTimestamp != "" {
			if err := r.SetQueryParam("from.expiration_timestamp", qFromExpirationTimestamp); err != nil {
				return err
			}
		}
	}
	if o.IncludeDeleted != nil {
		var qrIncludeDeleted string
		if o.IncludeDeleted != nil {
			qrIncludeDeleted = *o.IncludeDeleted
		}
		qIncludeDeleted := qrIncludeDeleted
		if qIncludeDeleted != "" {
			if err := r.SetQueryParam("include_deleted", qIncludeDeleted); err != nil {
				return err
			}
		}
	}
	if o.Policies != nil {
		var qrPolicies string
		if o.Policies != nil {
			qrPolicies = *o.Policies
		}
		qPolicies := qrPolicies
		if qPolicies != "" {
			if err := r.SetQueryParam("policies", qPolicies); err != nil {
				return err
			}
		}
	}
	if o.ShareLevels != nil {
		var qrShareLevels string
		if o.ShareLevels != nil {
			qrShareLevels = *o.ShareLevels
		}
		qShareLevels := qrShareLevels
		if qShareLevels != "" {
			if err := r.SetQueryParam("share_levels", qShareLevels); err != nil {
				return err
			}
		}
	}
	if o.Sources != nil {
		var qrSources string
		if o.Sources != nil {
			qrSources = *o.Sources
		}
		qSources := qrSources
		if qSources != "" {
			if err := r.SetQueryParam("sources", qSources); err != nil {
				return err
			}
		}
	}
	if o.ToExpirationTimestamp != nil {
		var qrToExpirationTimestamp string
		if o.ToExpirationTimestamp != nil {
			qrToExpirationTimestamp = *o.ToExpirationTimestamp
		}
		qToExpirationTimestamp := qrToExpirationTimestamp
		if qToExpirationTimestamp != "" {
			if err := r.SetQueryParam("to.expiration_timestamp", qToExpirationTimestamp); err != nil {
				return err
			}
		}
	}
	if o.Types != nil {
		var qrTypes string
		if o.Types != nil {
			qrTypes = *o.Types
		}
		qTypes := qrTypes
		if qTypes != "" {
			if err := r.SetQueryParam("types", qTypes); err != nil {
				return err
			}
		}
	}
	if o.Values != nil {
		var qrValues string
		if o.Values != nil {
			qrValues = *o.Values
		}
		qValues := qrValues
		if qValues != "" {
			if err := r.SetQueryParam("values", qValues); err != nil {
				return err
			}
		}
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
WriteToRequest writes these params to a swagger request
package iocs
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"
)
func NewQueryIOCsParams() *QueryIOCsParams {
	return &QueryIOCsParams{
		timeout: cr.DefaultTimeout,
	}
}
func NewQueryIOCsParamsWithTimeout(timeout time.Duration) *QueryIOCsParams {
	return &QueryIOCsParams{
		timeout: timeout,
	}
}
func NewQueryIOCsParamsWithContext(ctx context.Context) *QueryIOCsParams {
	return &QueryIOCsParams{
		Context: ctx,
	}
}
func NewQueryIOCsParamsWithHTTPClient(client *http.Client) *QueryIOCsParams {
	return &QueryIOCsParams{
		HTTPClient: client,
	}
}
type QueryIOCsParams struct {
	CreatedBy *string
	DeletedBy *string
	FromExpirationTimestamp *string
	IncludeDeleted *string
	Policies *string
	ShareLevels *string
	Sources *string
	ToExpirationTimestamp *string
	Types *string
	Values *string
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *QueryIOCsParams) WithDefaults() *QueryIOCsParams {
	o.SetDefaults()
	return o
}
func (o *QueryIOCsParams) SetDefaults() {
}
func (o *QueryIOCsParams) WithTimeout(timeout time.Duration) *QueryIOCsParams {
	o.SetTimeout(timeout)
	return o
}
func (o *QueryIOCsParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *QueryIOCsParams) WithContext(ctx context.Context) *QueryIOCsParams {
	o.SetContext(ctx)
	return o
}
func (o *QueryIOCsParams) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *QueryIOCsParams) WithHTTPClient(client *http.Client) *QueryIOCsParams {
	o.SetHTTPClient(client)
	return o
}
func (o *QueryIOCsParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}
func (o *QueryIOCsParams) WithCreatedBy(createdBy *string) *QueryIOCsParams {
	o.SetCreatedBy(createdBy)
	return o
}
func (o *QueryIOCsParams) SetCreatedBy(createdBy *string) {
	o.CreatedBy = createdBy
}
func (o *QueryIOCsParams) WithDeletedBy(deletedBy *string) *QueryIOCsParams {
	o.SetDeletedBy(deletedBy)
	return o
}
func (o *QueryIOCsParams) SetDeletedBy(deletedBy *string) {
	o.DeletedBy = deletedBy
}
func (o *QueryIOCsParams) WithFromExpirationTimestamp(fromExpirationTimestamp *string) *QueryIOCsParams {
	o.SetFromExpirationTimestamp(fromExpirationTimestamp)
	return o
}
func (o *QueryIOCsParams) SetFromExpirationTimestamp(fromExpirationTimestamp *string) {
	o.FromExpirationTimestamp = fromExpirationTimestamp
}
func (o *QueryIOCsParams) WithIncludeDeleted(includeDeleted *string) *QueryIOCsParams {
	o.SetIncludeDeleted(includeDeleted)
	return o
}
func (o *QueryIOCsParams) SetIncludeDeleted(includeDeleted *string) {
	o.IncludeDeleted = includeDeleted
}
func (o *QueryIOCsParams) WithPolicies(policies *string) *QueryIOCsParams {
	o.SetPolicies(policies)
	return o
}
func (o *QueryIOCsParams) SetPolicies(policies *string) {
	o.Policies = policies
}
func (o *QueryIOCsParams) WithShareLevels(shareLevels *string) *QueryIOCsParams {
	o.SetShareLevels(shareLevels)
	return o
}
func (o *QueryIOCsParams) SetShareLevels(shareLevels *string) {
	o.ShareLevels = shareLevels
}
func (o *QueryIOCsParams) WithSources(sources *string) *QueryIOCsParams {
	o.SetSources(sources)
	return o
}
func (o *QueryIOCsParams) SetSources(sources *string) {
	o.Sources = sources
}
func (o *QueryIOCsParams) WithToExpirationTimestamp(toExpirationTimestamp *string) *QueryIOCsParams {
	o.SetToExpirationTimestamp(toExpirationTimestamp)
	return o
}
func (o *QueryIOCsParams) SetToExpirationTimestamp(toExpirationTimestamp *string) {
	o.ToExpirationTimestamp = toExpirationTimestamp
}
func (o *QueryIOCsParams) WithTypes(types *string) *QueryIOCsParams {
	o.SetTypes(types)
	return o
}
func (o *QueryIOCsParams) SetTypes(types *string) {
	o.Types = types
}
func (o *QueryIOCsParams) WithValues(values *string) *QueryIOCsParams {
	o.SetValues(values)
	return o
}
func (o *QueryIOCsParams) SetValues(values *string) {
	o.Values = values
}