func (o *QueryDeviceControlPoliciesParams) WithContext(ctx context.Context) *QueryDeviceControlPoliciesParams {
	o.SetContext(ctx)
	return o
}
WithContext adds the context to the query device control policies params
package device_control_policies
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 NewQueryDeviceControlPoliciesParams() *QueryDeviceControlPoliciesParams {
	return &QueryDeviceControlPoliciesParams{
		timeout: cr.DefaultTimeout,
	}
}
func NewQueryDeviceControlPoliciesParamsWithTimeout(timeout time.Duration) *QueryDeviceControlPoliciesParams {
	return &QueryDeviceControlPoliciesParams{
		timeout: timeout,
	}
}
func NewQueryDeviceControlPoliciesParamsWithContext(ctx context.Context) *QueryDeviceControlPoliciesParams {
	return &QueryDeviceControlPoliciesParams{
		Context: ctx,
	}
}
func NewQueryDeviceControlPoliciesParamsWithHTTPClient(client *http.Client) *QueryDeviceControlPoliciesParams {
	return &QueryDeviceControlPoliciesParams{
		HTTPClient: client,
	}
}
type QueryDeviceControlPoliciesParams struct {
	Filter *string
	Limit *int64
	Offset *int64
	Sort *string
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *QueryDeviceControlPoliciesParams) WithDefaults() *QueryDeviceControlPoliciesParams {
	o.SetDefaults()
	return o
}
func (o *QueryDeviceControlPoliciesParams) SetDefaults() {
}
func (o *QueryDeviceControlPoliciesParams) WithTimeout(timeout time.Duration) *QueryDeviceControlPoliciesParams {
	o.SetTimeout(timeout)
	return o
}
func (o *QueryDeviceControlPoliciesParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}