func (o *PostSilencesParams) WithSilence(silence *models.PostableSilence) *PostSilencesParams {
	o.SetSilence(silence)
	return o
}
WithSilence adds the silence to the post silences params
package silence
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/prometheus/alertmanager/api/v2/models"
)
func NewPostSilencesParams() *PostSilencesParams {
	var ()
	return &PostSilencesParams{
		timeout: cr.DefaultTimeout,
	}
}
func NewPostSilencesParamsWithTimeout(timeout time.Duration) *PostSilencesParams {
	var ()
	return &PostSilencesParams{
		timeout: timeout,
	}
}
func NewPostSilencesParamsWithContext(ctx context.Context) *PostSilencesParams {
	var ()
	return &PostSilencesParams{
		Context: ctx,
	}
}
func NewPostSilencesParamsWithHTTPClient(client *http.Client) *PostSilencesParams {
	var ()
	return &PostSilencesParams{
		HTTPClient: client,
	}
}
type PostSilencesParams struct {
	Silence *models.PostableSilence
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *PostSilencesParams) WithTimeout(timeout time.Duration) *PostSilencesParams {
	o.SetTimeout(timeout)
	return o
}
func (o *PostSilencesParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *PostSilencesParams) WithContext(ctx context.Context) *PostSilencesParams {
	o.SetContext(ctx)
	return o
}
func (o *PostSilencesParams) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *PostSilencesParams) WithHTTPClient(client *http.Client) *PostSilencesParams {
	o.SetHTTPClient(client)
	return o
}
func (o *PostSilencesParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}