func (o *IndicatorCreateV1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
	if err := r.SetTimeout(o.timeout); err != nil {
		return err
	}
	var res []error
	if o.XCSUSERNAME != nil {
		if err := r.SetHeaderParam("X-CS-USERNAME", *o.XCSUSERNAME); err != nil {
			return err
		}
	}
	if o.Body != nil {
		if err := r.SetBodyParam(o.Body); err != nil {
			return err
		}
	}
	if o.IgnoreWarnings != nil {
		var qrIgnoreWarnings bool
		if o.IgnoreWarnings != nil {
			qrIgnoreWarnings = *o.IgnoreWarnings
		}
		qIgnoreWarnings := swag.FormatBool(qrIgnoreWarnings)
		if qIgnoreWarnings != "" {
			if err := r.SetQueryParam("ignore_warnings", qIgnoreWarnings); err != nil {
				return err
			}
		}
	}
	if o.Retrodetects != nil {
		var qrRetrodetects bool
		if o.Retrodetects != nil {
			qrRetrodetects = *o.Retrodetects
		}
		qRetrodetects := swag.FormatBool(qrRetrodetects)
		if qRetrodetects != "" {
			if err := r.SetQueryParam("retrodetects", qRetrodetects); err != nil {
				return err
			}
		}
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
WriteToRequest writes these params to a swagger request
package ioc
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"
	"github.com/crowdstrike/gofalcon/falcon/models"
)
func NewIndicatorCreateV1Params() *IndicatorCreateV1Params {
	return &IndicatorCreateV1Params{
		timeout: cr.DefaultTimeout,
	}
}
func NewIndicatorCreateV1ParamsWithTimeout(timeout time.Duration) *IndicatorCreateV1Params {
	return &IndicatorCreateV1Params{
		timeout: timeout,
	}
}
func NewIndicatorCreateV1ParamsWithContext(ctx context.Context) *IndicatorCreateV1Params {
	return &IndicatorCreateV1Params{
		Context: ctx,
	}
}
func NewIndicatorCreateV1ParamsWithHTTPClient(client *http.Client) *IndicatorCreateV1Params {
	return &IndicatorCreateV1Params{
		HTTPClient: client,
	}
}
type IndicatorCreateV1Params struct {
	XCSUSERNAME *string
	Body *models.APIIndicatorCreateReqsV1
	IgnoreWarnings *bool
	Retrodetects *bool
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *IndicatorCreateV1Params) WithDefaults() *IndicatorCreateV1Params {
	o.SetDefaults()
	return o
}
func (o *IndicatorCreateV1Params) SetDefaults() {
	var (
		ignoreWarningsDefault = bool(false)
	)
	val := IndicatorCreateV1Params{
		IgnoreWarnings: &ignoreWarningsDefault,
	}
	val.timeout = o.timeout
	val.Context = o.Context
	val.HTTPClient = o.HTTPClient
	*o = val
}
func (o *IndicatorCreateV1Params) WithTimeout(timeout time.Duration) *IndicatorCreateV1Params {
	o.SetTimeout(timeout)
	return o
}
func (o *IndicatorCreateV1Params) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *IndicatorCreateV1Params) WithContext(ctx context.Context) *IndicatorCreateV1Params {
	o.SetContext(ctx)
	return o
}
func (o *IndicatorCreateV1Params) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *IndicatorCreateV1Params) WithHTTPClient(client *http.Client) *IndicatorCreateV1Params {
	o.SetHTTPClient(client)
	return o
}
func (o *IndicatorCreateV1Params) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}
func (o *IndicatorCreateV1Params) WithXCSUSERNAME(xCSUSERNAME *string) *IndicatorCreateV1Params {
	o.SetXCSUSERNAME(xCSUSERNAME)
	return o
}
func (o *IndicatorCreateV1Params) SetXCSUSERNAME(xCSUSERNAME *string) {
	o.XCSUSERNAME = xCSUSERNAME
}
func (o *IndicatorCreateV1Params) WithBody(body *models.APIIndicatorCreateReqsV1) *IndicatorCreateV1Params {
	o.SetBody(body)
	return o
}
func (o *IndicatorCreateV1Params) SetBody(body *models.APIIndicatorCreateReqsV1) {
	o.Body = body
}
func (o *IndicatorCreateV1Params) WithIgnoreWarnings(ignoreWarnings *bool) *IndicatorCreateV1Params {
	o.SetIgnoreWarnings(ignoreWarnings)
	return o
}
func (o *IndicatorCreateV1Params) SetIgnoreWarnings(ignoreWarnings *bool) {
	o.IgnoreWarnings = ignoreWarnings
}
func (o *IndicatorCreateV1Params) WithRetrodetects(retrodetects *bool) *IndicatorCreateV1Params {
	o.SetRetrodetects(retrodetects)
	return o
}
func (o *IndicatorCreateV1Params) SetRetrodetects(retrodetects *bool) {
	o.Retrodetects = retrodetects
}