func (o *UserDeleteTasksParams) 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 jobs_service
import (
	"net/http"
	"time"
	"golang.org/x/net/context"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime"
	cr "github.com/go-openapi/runtime/client"
	strfmt "github.com/go-openapi/strfmt"
	models "github.com/pydio/cells-sdk-go/models"
)
func NewUserDeleteTasksParams() *UserDeleteTasksParams {
	var ()
	return &UserDeleteTasksParams{
		timeout: cr.DefaultTimeout,
	}
}
func NewUserDeleteTasksParamsWithTimeout(timeout time.Duration) *UserDeleteTasksParams {
	var ()
	return &UserDeleteTasksParams{
		timeout: timeout,
	}
}
func NewUserDeleteTasksParamsWithContext(ctx context.Context) *UserDeleteTasksParams {
	var ()
	return &UserDeleteTasksParams{
		Context: ctx,
	}
}
func NewUserDeleteTasksParamsWithHTTPClient(client *http.Client) *UserDeleteTasksParams {
	var ()
	return &UserDeleteTasksParams{
		HTTPClient: client,
	}
}
type UserDeleteTasksParams struct {
	Body *models.JobsDeleteTasksRequest
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *UserDeleteTasksParams) WithTimeout(timeout time.Duration) *UserDeleteTasksParams {
	o.SetTimeout(timeout)
	return o
}
func (o *UserDeleteTasksParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *UserDeleteTasksParams) WithContext(ctx context.Context) *UserDeleteTasksParams {
	o.SetContext(ctx)
	return o
}
func (o *UserDeleteTasksParams) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *UserDeleteTasksParams) WithHTTPClient(client *http.Client) *UserDeleteTasksParams {
	o.SetHTTPClient(client)
	return o
}
func (o *UserDeleteTasksParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}
func (o *UserDeleteTasksParams) WithBody(body *models.JobsDeleteTasksRequest) *UserDeleteTasksParams {
	o.SetBody(body)
	return o
}
func (o *UserDeleteTasksParams) SetBody(body *models.JobsDeleteTasksRequest) {
	o.Body = body
}