func (o *GetOracleDenomsDenomPrevotesValidatorParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
	if err := r.SetTimeout(o.timeout); err != nil {
		return err
	}
	var res []error
	if err := r.SetPathParam("denom", o.Denom); err != nil {
		return err
	}
	if err := r.SetPathParam("validator", o.Validator); err != nil {
		return err
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
WriteToRequest writes these params to a swagger request
package oracle
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"
)
func NewGetOracleDenomsDenomPrevotesValidatorParams() *GetOracleDenomsDenomPrevotesValidatorParams {
	var ()
	return &GetOracleDenomsDenomPrevotesValidatorParams{
		timeout: cr.DefaultTimeout,
	}
}
func NewGetOracleDenomsDenomPrevotesValidatorParamsWithTimeout(timeout time.Duration) *GetOracleDenomsDenomPrevotesValidatorParams {
	var ()
	return &GetOracleDenomsDenomPrevotesValidatorParams{
		timeout: timeout,
	}
}
func NewGetOracleDenomsDenomPrevotesValidatorParamsWithContext(ctx context.Context) *GetOracleDenomsDenomPrevotesValidatorParams {
	var ()
	return &GetOracleDenomsDenomPrevotesValidatorParams{
		Context: ctx,
	}
}
func NewGetOracleDenomsDenomPrevotesValidatorParamsWithHTTPClient(client *http.Client) *GetOracleDenomsDenomPrevotesValidatorParams {
	var ()
	return &GetOracleDenomsDenomPrevotesValidatorParams{
		HTTPClient: client,
	}
}
type GetOracleDenomsDenomPrevotesValidatorParams struct {
	Denom string
	Validator string
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *GetOracleDenomsDenomPrevotesValidatorParams) WithTimeout(timeout time.Duration) *GetOracleDenomsDenomPrevotesValidatorParams {
	o.SetTimeout(timeout)
	return o
}
func (o *GetOracleDenomsDenomPrevotesValidatorParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *GetOracleDenomsDenomPrevotesValidatorParams) WithContext(ctx context.Context) *GetOracleDenomsDenomPrevotesValidatorParams {
	o.SetContext(ctx)
	return o
}
func (o *GetOracleDenomsDenomPrevotesValidatorParams) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *GetOracleDenomsDenomPrevotesValidatorParams) WithHTTPClient(client *http.Client) *GetOracleDenomsDenomPrevotesValidatorParams {
	o.SetHTTPClient(client)
	return o
}
func (o *GetOracleDenomsDenomPrevotesValidatorParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}
func (o *GetOracleDenomsDenomPrevotesValidatorParams) WithDenom(denom string) *GetOracleDenomsDenomPrevotesValidatorParams {
	o.SetDenom(denom)
	return o
}
func (o *GetOracleDenomsDenomPrevotesValidatorParams) SetDenom(denom string) {
	o.Denom = denom
}
func (o *GetOracleDenomsDenomPrevotesValidatorParams) WithValidator(validator string) *GetOracleDenomsDenomPrevotesValidatorParams {
	o.SetValidator(validator)
	return o
}
func (o *GetOracleDenomsDenomPrevotesValidatorParams) SetValidator(validator string) {
	o.Validator = validator
}