func (o *AggregateFCIncidentsParams) 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 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/crowdstrike/gofalcon/falcon/models"
)
func NewAggregateFCIncidentsParams() *AggregateFCIncidentsParams {
	return &AggregateFCIncidentsParams{
		timeout: cr.DefaultTimeout,
	}
}
func NewAggregateFCIncidentsParamsWithTimeout(timeout time.Duration) *AggregateFCIncidentsParams {
	return &AggregateFCIncidentsParams{
		timeout: timeout,
	}
}
func NewAggregateFCIncidentsParamsWithContext(ctx context.Context) *AggregateFCIncidentsParams {
	return &AggregateFCIncidentsParams{
		Context: ctx,
	}
}
func NewAggregateFCIncidentsParamsWithHTTPClient(client *http.Client) *AggregateFCIncidentsParams {
	return &AggregateFCIncidentsParams{
		HTTPClient: client,
	}
}
type AggregateFCIncidentsParams struct {
	Body []*models.MsaAggregateQueryRequest
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *AggregateFCIncidentsParams) WithDefaults() *AggregateFCIncidentsParams {
	o.SetDefaults()
	return o
}
func (o *AggregateFCIncidentsParams) SetDefaults() {
}
func (o *AggregateFCIncidentsParams) WithTimeout(timeout time.Duration) *AggregateFCIncidentsParams {
	o.SetTimeout(timeout)
	return o
}
func (o *AggregateFCIncidentsParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *AggregateFCIncidentsParams) WithContext(ctx context.Context) *AggregateFCIncidentsParams {
	o.SetContext(ctx)
	return o
}
func (o *AggregateFCIncidentsParams) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *AggregateFCIncidentsParams) WithHTTPClient(client *http.Client) *AggregateFCIncidentsParams {
	o.SetHTTPClient(client)
	return o
}
func (o *AggregateFCIncidentsParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}
func (o *AggregateFCIncidentsParams) WithBody(body []*models.MsaAggregateQueryRequest) *AggregateFCIncidentsParams {
	o.SetBody(body)
	return o
}
func (o *AggregateFCIncidentsParams) SetBody(body []*models.MsaAggregateQueryRequest) {
	o.Body = body
}