func (o *PostAuthorizationsParams) WithAuthorization(authorization *models.Authorization) *PostAuthorizationsParams {
	o.SetAuthorization(authorization)
	return o
}
WithAuthorization adds the authorization to the post authorizations params
package operations
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/trustbloc/edge-service/pkg/client/comparator/models"
)
func NewPostAuthorizationsParams() *PostAuthorizationsParams {
	return &PostAuthorizationsParams{
		timeout: cr.DefaultTimeout,
	}
}
func NewPostAuthorizationsParamsWithTimeout(timeout time.Duration) *PostAuthorizationsParams {
	return &PostAuthorizationsParams{
		timeout: timeout,
	}
}
func NewPostAuthorizationsParamsWithContext(ctx context.Context) *PostAuthorizationsParams {
	return &PostAuthorizationsParams{
		Context: ctx,
	}
}
func NewPostAuthorizationsParamsWithHTTPClient(client *http.Client) *PostAuthorizationsParams {
	return &PostAuthorizationsParams{
		HTTPClient: client,
	}
}
type PostAuthorizationsParams struct {
	Authorization *models.Authorization
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *PostAuthorizationsParams) WithDefaults() *PostAuthorizationsParams {
	o.SetDefaults()
	return o
}
func (o *PostAuthorizationsParams) SetDefaults() {
}
func (o *PostAuthorizationsParams) WithTimeout(timeout time.Duration) *PostAuthorizationsParams {
	o.SetTimeout(timeout)
	return o
}
func (o *PostAuthorizationsParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *PostAuthorizationsParams) WithContext(ctx context.Context) *PostAuthorizationsParams {
	o.SetContext(ctx)
	return o
}
func (o *PostAuthorizationsParams) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *PostAuthorizationsParams) WithHTTPClient(client *http.Client) *PostAuthorizationsParams {
	o.SetHTTPClient(client)
	return o
}
func (o *PostAuthorizationsParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}