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

package scalesets

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

// NewGetScaleSetParams creates a new GetScaleSetParams 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 NewGetScaleSetParams() *GetScaleSetParams {
	return &GetScaleSetParams{
		timeout: cr.DefaultTimeout,
	}
}

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

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

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

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

	for the get scale set operation.

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

	/* ScalesetID.

	   ID of the scale set to fetch.
	*/
	ScalesetID string

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

// WithDefaults hydrates default values in the get scale set params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *GetScaleSetParams) WithDefaults() *GetScaleSetParams {
	o.SetDefaults()
	return o
}

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

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

// SetTimeout adds the timeout to the get scale set params
func (o *GetScaleSetParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}

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

// SetContext adds the context to the get scale set params
func (o *GetScaleSetParams) SetContext(ctx context.Context) {
	o.Context = ctx
}

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

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

// WithScalesetID adds the scalesetID to the get scale set params
func (o *GetScaleSetParams) WithScalesetID(scalesetID string) *GetScaleSetParams {
	o.SetScalesetID(scalesetID)
	return o
}

// SetScalesetID adds the scalesetId to the get scale set params
func (o *GetScaleSetParams) SetScalesetID(scalesetID string) {
	o.ScalesetID = scalesetID
}

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

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

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

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