func (o *RefreshActiveStreamSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
	if err := r.SetTimeout(o.timeout); err != nil {
		return err
	}
	var res []error
	qrActionName := o.ActionName
	qActionName := qrActionName
	if qActionName != "" {
		if err := r.SetQueryParam("action_name", qActionName); err != nil {
			return err
		}
	}
	qrAppID := o.AppID
	qAppID := qrAppID
	if qAppID != "" {
		if err := r.SetQueryParam("appId", qAppID); err != nil {
			return err
		}
	}
	if err := r.SetPathParam("partition", swag.FormatInt64(o.Partition)); err != nil {
		return err
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
WriteToRequest writes these params to a swagger request
package event_streams
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"
)
func NewRefreshActiveStreamSessionParams() *RefreshActiveStreamSessionParams {
	return &RefreshActiveStreamSessionParams{
		timeout: cr.DefaultTimeout,
	}
}
func NewRefreshActiveStreamSessionParamsWithTimeout(timeout time.Duration) *RefreshActiveStreamSessionParams {
	return &RefreshActiveStreamSessionParams{
		timeout: timeout,
	}
}
func NewRefreshActiveStreamSessionParamsWithContext(ctx context.Context) *RefreshActiveStreamSessionParams {
	return &RefreshActiveStreamSessionParams{
		Context: ctx,
	}
}
func NewRefreshActiveStreamSessionParamsWithHTTPClient(client *http.Client) *RefreshActiveStreamSessionParams {
	return &RefreshActiveStreamSessionParams{
		HTTPClient: client,
	}
}
type RefreshActiveStreamSessionParams struct {
	ActionName string
	AppID string
	Partition int64
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *RefreshActiveStreamSessionParams) WithDefaults() *RefreshActiveStreamSessionParams {
	o.SetDefaults()
	return o
}
func (o *RefreshActiveStreamSessionParams) SetDefaults() {
}
func (o *RefreshActiveStreamSessionParams) WithTimeout(timeout time.Duration) *RefreshActiveStreamSessionParams {
	o.SetTimeout(timeout)
	return o
}
func (o *RefreshActiveStreamSessionParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *RefreshActiveStreamSessionParams) WithContext(ctx context.Context) *RefreshActiveStreamSessionParams {
	o.SetContext(ctx)
	return o
}
func (o *RefreshActiveStreamSessionParams) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *RefreshActiveStreamSessionParams) WithHTTPClient(client *http.Client) *RefreshActiveStreamSessionParams {
	o.SetHTTPClient(client)
	return o
}
func (o *RefreshActiveStreamSessionParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}
func (o *RefreshActiveStreamSessionParams) WithActionName(actionName string) *RefreshActiveStreamSessionParams {
	o.SetActionName(actionName)
	return o
}
func (o *RefreshActiveStreamSessionParams) SetActionName(actionName string) {
	o.ActionName = actionName
}
func (o *RefreshActiveStreamSessionParams) WithAppID(appID string) *RefreshActiveStreamSessionParams {
	o.SetAppID(appID)
	return o
}
func (o *RefreshActiveStreamSessionParams) SetAppID(appID string) {
	o.AppID = appID
}
func (o *RefreshActiveStreamSessionParams) WithPartition(partition int64) *RefreshActiveStreamSessionParams {
	o.SetPartition(partition)
	return o
}
func (o *RefreshActiveStreamSessionParams) SetPartition(partition int64) {
	o.Partition = partition
}