func (o *InstallEventsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
	if err := r.SetTimeout(o.timeout); err != nil {
		return err
	}
	var res []error
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
WriteToRequest writes these params to a swagger request
package install_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"
)
func NewInstallEventsParams() *InstallEventsParams {
	return &InstallEventsParams{
		timeout: cr.DefaultTimeout,
	}
}
func NewInstallEventsParamsWithTimeout(timeout time.Duration) *InstallEventsParams {
	return &InstallEventsParams{
		timeout: timeout,
	}
}
func NewInstallEventsParamsWithContext(ctx context.Context) *InstallEventsParams {
	return &InstallEventsParams{
		Context: ctx,
	}
}
func NewInstallEventsParamsWithHTTPClient(client *http.Client) *InstallEventsParams {
	return &InstallEventsParams{
		HTTPClient: client,
	}
}
type InstallEventsParams struct {
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *InstallEventsParams) WithTimeout(timeout time.Duration) *InstallEventsParams {
	o.SetTimeout(timeout)
	return o
}
func (o *InstallEventsParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *InstallEventsParams) WithContext(ctx context.Context) *InstallEventsParams {
	o.SetContext(ctx)
	return o
}
func (o *InstallEventsParams) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *InstallEventsParams) WithHTTPClient(client *http.Client) *InstallEventsParams {
	o.SetHTTPClient(client)
	return o
}
func (o *InstallEventsParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}