func (o *QueryPolicyRulesParams) WithQ(q *string) *QueryPolicyRulesParams {
	o.SetQ(q)
	return o
}
WithQ adds the q to the query policy rules params
package firewall_management
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 NewQueryPolicyRulesParams() *QueryPolicyRulesParams {
	return &QueryPolicyRulesParams{
		timeout: cr.DefaultTimeout,
	}
}
func NewQueryPolicyRulesParamsWithTimeout(timeout time.Duration) *QueryPolicyRulesParams {
	return &QueryPolicyRulesParams{
		timeout: timeout,
	}
}
func NewQueryPolicyRulesParamsWithContext(ctx context.Context) *QueryPolicyRulesParams {
	return &QueryPolicyRulesParams{
		Context: ctx,
	}
}
func NewQueryPolicyRulesParamsWithHTTPClient(client *http.Client) *QueryPolicyRulesParams {
	return &QueryPolicyRulesParams{
		HTTPClient: client,
	}
}
type QueryPolicyRulesParams struct {
	Filter *string
	ID *string
	Limit *int64
	Offset *string
	Q *string
	Sort *string
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *QueryPolicyRulesParams) WithDefaults() *QueryPolicyRulesParams {
	o.SetDefaults()
	return o
}
func (o *QueryPolicyRulesParams) SetDefaults() {
}
func (o *QueryPolicyRulesParams) WithTimeout(timeout time.Duration) *QueryPolicyRulesParams {
	o.SetTimeout(timeout)
	return o
}
func (o *QueryPolicyRulesParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *QueryPolicyRulesParams) WithContext(ctx context.Context) *QueryPolicyRulesParams {
	o.SetContext(ctx)
	return o
}
func (o *QueryPolicyRulesParams) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *QueryPolicyRulesParams) WithHTTPClient(client *http.Client) *QueryPolicyRulesParams {
	o.SetHTTPClient(client)
	return o
}
func (o *QueryPolicyRulesParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}
func (o *QueryPolicyRulesParams) WithFilter(filter *string) *QueryPolicyRulesParams {
	o.SetFilter(filter)
	return o
}
func (o *QueryPolicyRulesParams) SetFilter(filter *string) {
	o.Filter = filter
}
func (o *QueryPolicyRulesParams) WithID(id *string) *QueryPolicyRulesParams {
	o.SetID(id)
	return o
}
func (o *QueryPolicyRulesParams) SetID(id *string) {
	o.ID = id
}
func (o *QueryPolicyRulesParams) WithLimit(limit *int64) *QueryPolicyRulesParams {
	o.SetLimit(limit)
	return o
}
func (o *QueryPolicyRulesParams) SetLimit(limit *int64) {
	o.Limit = limit
}
func (o *QueryPolicyRulesParams) WithOffset(offset *string) *QueryPolicyRulesParams {
	o.SetOffset(offset)
	return o
}
func (o *QueryPolicyRulesParams) SetOffset(offset *string) {
	o.Offset = offset
}