// Code generated by go-swagger; DO NOT EDIT.

// All Code Copyright(c) 2018-2020 by Taxnexus, Inc.
// All rights reserved worldwide.
// Proprietary product; unlicensed use is not allowed

package vendors

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

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"
)

// NewGetVendorParams creates a new GetVendorParams object
// with the default values initialized.
func NewGetVendorParams() *GetVendorParams {
	var ()
	return &GetVendorParams{

		timeout: cr.DefaultTimeout,
	}
}

// NewGetVendorParamsWithTimeout creates a new GetVendorParams object
// with the default values initialized, and the ability to set a timeout on a request
func NewGetVendorParamsWithTimeout(timeout time.Duration) *GetVendorParams {
	var ()
	return &GetVendorParams{

		timeout: timeout,
	}
}

// NewGetVendorParamsWithContext creates a new GetVendorParams object
// with the default values initialized, and the ability to set a context for a request
func NewGetVendorParamsWithContext(ctx context.Context) *GetVendorParams {
	var ()
	return &GetVendorParams{

		Context: ctx,
	}
}

// NewGetVendorParamsWithHTTPClient creates a new GetVendorParams object
// with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetVendorParamsWithHTTPClient(client *http.Client) *GetVendorParams {
	var ()
	return &GetVendorParams{
		HTTPClient: client,
	}
}

/*GetVendorParams contains all the parameters to send to the API endpoint
for the get vendor operation typically these are written to a http.Request
*/
type GetVendorParams struct {

	/*VendorID
	  The Blaze Vendor Object Id

	*/
	VendorID string

	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}

// WithTimeout adds the timeout to the get vendor params
func (o *GetVendorParams) WithTimeout(timeout time.Duration) *GetVendorParams {
	o.SetTimeout(timeout)
	return o
}

// SetTimeout adds the timeout to the get vendor params
func (o *GetVendorParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}

// WithContext adds the context to the get vendor params
func (o *GetVendorParams) WithContext(ctx context.Context) *GetVendorParams {
	o.SetContext(ctx)
	return o
}

// SetContext adds the context to the get vendor params
func (o *GetVendorParams) SetContext(ctx context.Context) {
	o.Context = ctx
}

// WithHTTPClient adds the HTTPClient to the get vendor params
func (o *GetVendorParams) WithHTTPClient(client *http.Client) *GetVendorParams {
	o.SetHTTPClient(client)
	return o
}

// SetHTTPClient adds the HTTPClient to the get vendor params
func (o *GetVendorParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}

// WithVendorID adds the vendorID to the get vendor params
func (o *GetVendorParams) WithVendorID(vendorID string) *GetVendorParams {
	o.SetVendorID(vendorID)
	return o
}

// SetVendorID adds the vendorId to the get vendor params
func (o *GetVendorParams) SetVendorID(vendorID string) {
	o.VendorID = vendorID
}

// WriteToRequest writes these params to a swagger request
func (o *GetVendorParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {

	if err := r.SetTimeout(o.timeout); err != nil {
		return err
	}
	var res []error

	// path param vendorId
	if err := r.SetPathParam("vendorId", o.VendorID); err != nil {
		return err
	}

	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
