func (o *GetAlertsParams) WithContext(ctx context.Context) *GetAlertsParams {
	o.SetContext(ctx)
	return o
}
WithContext adds the context to the get alerts params
package alert
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 NewGetAlertsParams() *GetAlertsParams {
	var (
		activeDefault      = bool(true)
		inhibitedDefault   = bool(true)
		silencedDefault    = bool(true)
		unprocessedDefault = bool(true)
	)
	return &GetAlertsParams{
		Active:      &activeDefault,
		Inhibited:   &inhibitedDefault,
		Silenced:    &silencedDefault,
		Unprocessed: &unprocessedDefault,
		timeout: cr.DefaultTimeout,
	}
}
func NewGetAlertsParamsWithTimeout(timeout time.Duration) *GetAlertsParams {
	var (
		activeDefault      = bool(true)
		inhibitedDefault   = bool(true)
		silencedDefault    = bool(true)
		unprocessedDefault = bool(true)
	)
	return &GetAlertsParams{
		Active:      &activeDefault,
		Inhibited:   &inhibitedDefault,
		Silenced:    &silencedDefault,
		Unprocessed: &unprocessedDefault,
		timeout: timeout,
	}
}
func NewGetAlertsParamsWithContext(ctx context.Context) *GetAlertsParams {
	var (
		activeDefault      = bool(true)
		inhibitedDefault   = bool(true)
		silencedDefault    = bool(true)
		unprocessedDefault = bool(true)
	)
	return &GetAlertsParams{
		Active:      &activeDefault,
		Inhibited:   &inhibitedDefault,
		Silenced:    &silencedDefault,
		Unprocessed: &unprocessedDefault,
		Context: ctx,
	}
}
func NewGetAlertsParamsWithHTTPClient(client *http.Client) *GetAlertsParams {
	var (
		activeDefault      = bool(true)
		inhibitedDefault   = bool(true)
		silencedDefault    = bool(true)
		unprocessedDefault = bool(true)
	)
	return &GetAlertsParams{
		Active:      &activeDefault,
		Inhibited:   &inhibitedDefault,
		Silenced:    &silencedDefault,
		Unprocessed: &unprocessedDefault,
		HTTPClient:  client,
	}
}
type GetAlertsParams struct {
	Active *bool
	Filter []string
	Inhibited *bool
	Receiver *string
	Silenced *bool
	Unprocessed *bool
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *GetAlertsParams) WithTimeout(timeout time.Duration) *GetAlertsParams {
	o.SetTimeout(timeout)
	return o
}
func (o *GetAlertsParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}