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

package p_cloud_storage_capacity

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

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

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

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

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

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

	for the pcloud storagecapacity types get operation.

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

	/* CloudInstanceID.

	   Cloud Instance ID of a PCloud Instance
	*/
	CloudInstanceID string

	/* StorageTypeName.

	   Storage type name
	*/
	StorageTypeName string

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

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

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

// WithTimeout adds the timeout to the pcloud storagecapacity types get params
func (o *PcloudStoragecapacityTypesGetParams) WithTimeout(timeout time.Duration) *PcloudStoragecapacityTypesGetParams {
	o.SetTimeout(timeout)
	return o
}

// SetTimeout adds the timeout to the pcloud storagecapacity types get params
func (o *PcloudStoragecapacityTypesGetParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}

// WithContext adds the context to the pcloud storagecapacity types get params
func (o *PcloudStoragecapacityTypesGetParams) WithContext(ctx context.Context) *PcloudStoragecapacityTypesGetParams {
	o.SetContext(ctx)
	return o
}

// SetContext adds the context to the pcloud storagecapacity types get params
func (o *PcloudStoragecapacityTypesGetParams) SetContext(ctx context.Context) {
	o.Context = ctx
}

// WithHTTPClient adds the HTTPClient to the pcloud storagecapacity types get params
func (o *PcloudStoragecapacityTypesGetParams) WithHTTPClient(client *http.Client) *PcloudStoragecapacityTypesGetParams {
	o.SetHTTPClient(client)
	return o
}

// SetHTTPClient adds the HTTPClient to the pcloud storagecapacity types get params
func (o *PcloudStoragecapacityTypesGetParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}

// WithCloudInstanceID adds the cloudInstanceID to the pcloud storagecapacity types get params
func (o *PcloudStoragecapacityTypesGetParams) WithCloudInstanceID(cloudInstanceID string) *PcloudStoragecapacityTypesGetParams {
	o.SetCloudInstanceID(cloudInstanceID)
	return o
}

// SetCloudInstanceID adds the cloudInstanceId to the pcloud storagecapacity types get params
func (o *PcloudStoragecapacityTypesGetParams) SetCloudInstanceID(cloudInstanceID string) {
	o.CloudInstanceID = cloudInstanceID
}

// WithStorageTypeName adds the storageTypeName to the pcloud storagecapacity types get params
func (o *PcloudStoragecapacityTypesGetParams) WithStorageTypeName(storageTypeName string) *PcloudStoragecapacityTypesGetParams {
	o.SetStorageTypeName(storageTypeName)
	return o
}

// SetStorageTypeName adds the storageTypeName to the pcloud storagecapacity types get params
func (o *PcloudStoragecapacityTypesGetParams) SetStorageTypeName(storageTypeName string) {
	o.StorageTypeName = storageTypeName
}

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

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

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

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

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