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

// NewListSkuBundlesParams creates a new ListSkuBundlesParams object
// with the default values initialized.
func NewListSkuBundlesParams() *ListSkuBundlesParams {

	return &ListSkuBundlesParams{

		timeout: cr.DefaultTimeout,
	}
}

// NewListSkuBundlesParamsWithTimeout creates a new ListSkuBundlesParams object
// with the default values initialized, and the ability to set a timeout on a request
func NewListSkuBundlesParamsWithTimeout(timeout time.Duration) *ListSkuBundlesParams {

	return &ListSkuBundlesParams{

		timeout: timeout,
	}
}

// NewListSkuBundlesParamsWithContext creates a new ListSkuBundlesParams object
// with the default values initialized, and the ability to set a context for a request
func NewListSkuBundlesParamsWithContext(ctx context.Context) *ListSkuBundlesParams {

	return &ListSkuBundlesParams{

		Context: ctx,
	}
}

// NewListSkuBundlesParamsWithHTTPClient creates a new ListSkuBundlesParams object
// with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListSkuBundlesParamsWithHTTPClient(client *http.Client) *ListSkuBundlesParams {

	return &ListSkuBundlesParams{
		HTTPClient: client,
	}
}

/*ListSkuBundlesParams contains all the parameters to send to the API endpoint
for the list sku bundles operation typically these are written to a http.Request
*/
type ListSkuBundlesParams struct {
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}

// WithTimeout adds the timeout to the list sku bundles params
func (o *ListSkuBundlesParams) WithTimeout(timeout time.Duration) *ListSkuBundlesParams {
	o.SetTimeout(timeout)
	return o
}

// SetTimeout adds the timeout to the list sku bundles params
func (o *ListSkuBundlesParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}

// WithContext adds the context to the list sku bundles params
func (o *ListSkuBundlesParams) WithContext(ctx context.Context) *ListSkuBundlesParams {
	o.SetContext(ctx)
	return o
}

// SetContext adds the context to the list sku bundles params
func (o *ListSkuBundlesParams) SetContext(ctx context.Context) {
	o.Context = ctx
}

// WithHTTPClient adds the HTTPClient to the list sku bundles params
func (o *ListSkuBundlesParams) WithHTTPClient(client *http.Client) *ListSkuBundlesParams {
	o.SetHTTPClient(client)
	return o
}

// SetHTTPClient adds the HTTPClient to the list sku bundles params
func (o *ListSkuBundlesParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}

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

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

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