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

package bundle_management

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

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

		timeout: cr.DefaultTimeout,
	}
}

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

		timeout: timeout,
	}
}

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

		Context: ctx,
	}
}

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

/*GetSkuBundleByNameParams contains all the parameters to send to the API endpoint
for the get sku bundle by name operation typically these are written to a http.Request
*/
type GetSkuBundleByNameParams struct {

	/*Name
	  Id of sku bundle to be obtained

	*/
	Name string

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

// WithTimeout adds the timeout to the get sku bundle by name params
func (o *GetSkuBundleByNameParams) WithTimeout(timeout time.Duration) *GetSkuBundleByNameParams {
	o.SetTimeout(timeout)
	return o
}

// SetTimeout adds the timeout to the get sku bundle by name params
func (o *GetSkuBundleByNameParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}

// WithContext adds the context to the get sku bundle by name params
func (o *GetSkuBundleByNameParams) WithContext(ctx context.Context) *GetSkuBundleByNameParams {
	o.SetContext(ctx)
	return o
}

// SetContext adds the context to the get sku bundle by name params
func (o *GetSkuBundleByNameParams) SetContext(ctx context.Context) {
	o.Context = ctx
}

// WithHTTPClient adds the HTTPClient to the get sku bundle by name params
func (o *GetSkuBundleByNameParams) WithHTTPClient(client *http.Client) *GetSkuBundleByNameParams {
	o.SetHTTPClient(client)
	return o
}

// SetHTTPClient adds the HTTPClient to the get sku bundle by name params
func (o *GetSkuBundleByNameParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}

// WithName adds the name to the get sku bundle by name params
func (o *GetSkuBundleByNameParams) WithName(name string) *GetSkuBundleByNameParams {
	o.SetName(name)
	return o
}

// SetName adds the name to the get sku bundle by name params
func (o *GetSkuBundleByNameParams) SetName(name string) {
	o.Name = name
}

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

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

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

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