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

package snake_enum_service

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

// NewSnakeEnumServiceSnakeEnumParams creates a new SnakeEnumServiceSnakeEnumParams object,
// with the default timeout for this client.
//
// Default values are not hydrated, since defaults are normally applied by the API server side.
//
// To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewSnakeEnumServiceSnakeEnumParams() *SnakeEnumServiceSnakeEnumParams {
	return &SnakeEnumServiceSnakeEnumParams{
		timeout: cr.DefaultTimeout,
	}
}

// NewSnakeEnumServiceSnakeEnumParamsWithTimeout creates a new SnakeEnumServiceSnakeEnumParams object
// with the ability to set a timeout on a request.
func NewSnakeEnumServiceSnakeEnumParamsWithTimeout(timeout time.Duration) *SnakeEnumServiceSnakeEnumParams {
	return &SnakeEnumServiceSnakeEnumParams{
		timeout: timeout,
	}
}

// NewSnakeEnumServiceSnakeEnumParamsWithContext creates a new SnakeEnumServiceSnakeEnumParams object
// with the ability to set a context for a request.
func NewSnakeEnumServiceSnakeEnumParamsWithContext(ctx context.Context) *SnakeEnumServiceSnakeEnumParams {
	return &SnakeEnumServiceSnakeEnumParams{
		Context: ctx,
	}
}

// NewSnakeEnumServiceSnakeEnumParamsWithHTTPClient creates a new SnakeEnumServiceSnakeEnumParams object
// with the ability to set a custom HTTPClient for a request.
func NewSnakeEnumServiceSnakeEnumParamsWithHTTPClient(client *http.Client) *SnakeEnumServiceSnakeEnumParams {
	return &SnakeEnumServiceSnakeEnumParams{
		HTTPClient: client,
	}
}

/*
SnakeEnumServiceSnakeEnumParams contains all the parameters to send to the API endpoint

	for the snake enum service snake enum operation.

	Typically these are written to a http.Request.
*/
type SnakeEnumServiceSnakeEnumParams struct {

	// What.
	What string

	// Where.
	Where string

	// Who.
	Who string

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

// WithDefaults hydrates default values in the snake enum service snake enum params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SnakeEnumServiceSnakeEnumParams) WithDefaults() *SnakeEnumServiceSnakeEnumParams {
	o.SetDefaults()
	return o
}

// SetDefaults hydrates default values in the snake enum service snake enum params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SnakeEnumServiceSnakeEnumParams) SetDefaults() {
	// no default values defined for this parameter
}

// WithTimeout adds the timeout to the snake enum service snake enum params
func (o *SnakeEnumServiceSnakeEnumParams) WithTimeout(timeout time.Duration) *SnakeEnumServiceSnakeEnumParams {
	o.SetTimeout(timeout)
	return o
}

// SetTimeout adds the timeout to the snake enum service snake enum params
func (o *SnakeEnumServiceSnakeEnumParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}

// WithContext adds the context to the snake enum service snake enum params
func (o *SnakeEnumServiceSnakeEnumParams) WithContext(ctx context.Context) *SnakeEnumServiceSnakeEnumParams {
	o.SetContext(ctx)
	return o
}

// SetContext adds the context to the snake enum service snake enum params
func (o *SnakeEnumServiceSnakeEnumParams) SetContext(ctx context.Context) {
	o.Context = ctx
}

// WithHTTPClient adds the HTTPClient to the snake enum service snake enum params
func (o *SnakeEnumServiceSnakeEnumParams) WithHTTPClient(client *http.Client) *SnakeEnumServiceSnakeEnumParams {
	o.SetHTTPClient(client)
	return o
}

// SetHTTPClient adds the HTTPClient to the snake enum service snake enum params
func (o *SnakeEnumServiceSnakeEnumParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}

// WithWhat adds the what to the snake enum service snake enum params
func (o *SnakeEnumServiceSnakeEnumParams) WithWhat(what string) *SnakeEnumServiceSnakeEnumParams {
	o.SetWhat(what)
	return o
}

// SetWhat adds the what to the snake enum service snake enum params
func (o *SnakeEnumServiceSnakeEnumParams) SetWhat(what string) {
	o.What = what
}

// WithWhere adds the where to the snake enum service snake enum params
func (o *SnakeEnumServiceSnakeEnumParams) WithWhere(where string) *SnakeEnumServiceSnakeEnumParams {
	o.SetWhere(where)
	return o
}

// SetWhere adds the where to the snake enum service snake enum params
func (o *SnakeEnumServiceSnakeEnumParams) SetWhere(where string) {
	o.Where = where
}

// WithWho adds the who to the snake enum service snake enum params
func (o *SnakeEnumServiceSnakeEnumParams) WithWho(who string) *SnakeEnumServiceSnakeEnumParams {
	o.SetWho(who)
	return o
}

// SetWho adds the who to the snake enum service snake enum params
func (o *SnakeEnumServiceSnakeEnumParams) SetWho(who string) {
	o.Who = who
}

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

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

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

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

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

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