func (o *GetPrivateWithdrawParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
	if err := r.SetTimeout(o.timeout); err != nil {
		return err
	}
	var res []error
	qrAddress := o.Address
	qAddress := qrAddress
	if qAddress != "" {
		if err := r.SetQueryParam("address", qAddress); err != nil {
			return err
		}
	}
	qrAmount := o.Amount
	qAmount := swag.FormatFloat64(qrAmount)
	if qAmount != "" {
		if err := r.SetQueryParam("amount", qAmount); err != nil {
			return err
		}
	}
	qrCurrency := o.Currency
	qCurrency := qrCurrency
	if qCurrency != "" {
		if err := r.SetQueryParam("currency", qCurrency); err != nil {
			return err
		}
	}
	if o.Priority != nil {
		var qrPriority string
		if o.Priority != nil {
			qrPriority = *o.Priority
		}
		qPriority := qrPriority
		if qPriority != "" {
			if err := r.SetQueryParam("priority", qPriority); err != nil {
				return err
			}
		}
	}
	if o.Tfa != nil {
		var qrTfa string
		if o.Tfa != nil {
			qrTfa = *o.Tfa
		}
		qTfa := qrTfa
		if qTfa != "" {
			if err := r.SetQueryParam("tfa", qTfa); err != nil {
				return err
			}
		}
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
WriteToRequest writes these params to a swagger request
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/swag"
	strfmt "github.com/go-openapi/strfmt"
)
func NewGetPrivateWithdrawParams() *GetPrivateWithdrawParams {
	var ()
	return &GetPrivateWithdrawParams{
		timeout: cr.DefaultTimeout,
	}
}
func NewGetPrivateWithdrawParamsWithTimeout(timeout time.Duration) *GetPrivateWithdrawParams {
	var ()
	return &GetPrivateWithdrawParams{
		timeout: timeout,
	}
}
func NewGetPrivateWithdrawParamsWithContext(ctx context.Context) *GetPrivateWithdrawParams {
	var ()
	return &GetPrivateWithdrawParams{
		Context: ctx,
	}
}
func NewGetPrivateWithdrawParamsWithHTTPClient(client *http.Client) *GetPrivateWithdrawParams {
	var ()
	return &GetPrivateWithdrawParams{
		HTTPClient: client,
	}
}
type GetPrivateWithdrawParams struct {
	Address string
	Amount float64
	Currency string
	Priority *string
	Tfa *string
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *GetPrivateWithdrawParams) WithTimeout(timeout time.Duration) *GetPrivateWithdrawParams {
	o.SetTimeout(timeout)
	return o
}
func (o *GetPrivateWithdrawParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *GetPrivateWithdrawParams) WithContext(ctx context.Context) *GetPrivateWithdrawParams {
	o.SetContext(ctx)
	return o
}
func (o *GetPrivateWithdrawParams) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *GetPrivateWithdrawParams) WithHTTPClient(client *http.Client) *GetPrivateWithdrawParams {
	o.SetHTTPClient(client)
	return o
}
func (o *GetPrivateWithdrawParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}
func (o *GetPrivateWithdrawParams) WithAddress(address string) *GetPrivateWithdrawParams {
	o.SetAddress(address)
	return o
}
func (o *GetPrivateWithdrawParams) SetAddress(address string) {
	o.Address = address
}
func (o *GetPrivateWithdrawParams) WithAmount(amount float64) *GetPrivateWithdrawParams {
	o.SetAmount(amount)
	return o
}
func (o *GetPrivateWithdrawParams) SetAmount(amount float64) {
	o.Amount = amount
}
func (o *GetPrivateWithdrawParams) WithCurrency(currency string) *GetPrivateWithdrawParams {
	o.SetCurrency(currency)
	return o
}
func (o *GetPrivateWithdrawParams) SetCurrency(currency string) {
	o.Currency = currency
}
func (o *GetPrivateWithdrawParams) WithPriority(priority *string) *GetPrivateWithdrawParams {
	o.SetPriority(priority)
	return o
}
func (o *GetPrivateWithdrawParams) SetPriority(priority *string) {
	o.Priority = priority
}
func (o *GetPrivateWithdrawParams) WithTfa(tfa *string) *GetPrivateWithdrawParams {
	o.SetTfa(tfa)
	return o
}
func (o *GetPrivateWithdrawParams) SetTfa(tfa *string) {
	o.Tfa = tfa
}