func (o *QueryRolesParams) WithContext(ctx context.Context) *QueryRolesParams {
	o.SetContext(ctx)
	return o
}
WithContext adds the context to the query roles params
package mssp
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 NewQueryRolesParams() *QueryRolesParams {
	return &QueryRolesParams{
		timeout: cr.DefaultTimeout,
	}
}
func NewQueryRolesParamsWithTimeout(timeout time.Duration) *QueryRolesParams {
	return &QueryRolesParams{
		timeout: timeout,
	}
}
func NewQueryRolesParamsWithContext(ctx context.Context) *QueryRolesParams {
	return &QueryRolesParams{
		Context: ctx,
	}
}
func NewQueryRolesParamsWithHTTPClient(client *http.Client) *QueryRolesParams {
	return &QueryRolesParams{
		HTTPClient: client,
	}
}
type QueryRolesParams struct {
	CidGroupID *string
	Limit *int64
	Offset *int64
	RoleID *string
	Sort *string
	UserGroupID *string
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *QueryRolesParams) WithDefaults() *QueryRolesParams {
	o.SetDefaults()
	return o
}
func (o *QueryRolesParams) SetDefaults() {
	var (
		limitDefault = int64(10)
		offsetDefault = int64(0)
		sortDefault = string("last_modified_timestamp|desc")
	)
	val := QueryRolesParams{
		Limit:  &limitDefault,
		Offset: &offsetDefault,
		Sort:   &sortDefault,
	}
	val.timeout = o.timeout
	val.Context = o.Context
	val.HTTPClient = o.HTTPClient
	*o = val
}
func (o *QueryRolesParams) WithTimeout(timeout time.Duration) *QueryRolesParams {
	o.SetTimeout(timeout)
	return o
}
func (o *QueryRolesParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}