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

package internal_storage_regions

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

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

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

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

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

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

	for the internal v1 storage regions storage pools getall operation.

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

	/* RegionZoneID.

	   ID of a Power Cloud Region Zone
	*/
	RegionZoneID string

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

// WithDefaults hydrates default values in the internal v1 storage regions storage pools getall params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *InternalV1StorageRegionsStoragePoolsGetallParams) WithDefaults() *InternalV1StorageRegionsStoragePoolsGetallParams {
	o.SetDefaults()
	return o
}

// SetDefaults hydrates default values in the internal v1 storage regions storage pools getall params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *InternalV1StorageRegionsStoragePoolsGetallParams) SetDefaults() {
	// no default values defined for this parameter
}

// WithTimeout adds the timeout to the internal v1 storage regions storage pools getall params
func (o *InternalV1StorageRegionsStoragePoolsGetallParams) WithTimeout(timeout time.Duration) *InternalV1StorageRegionsStoragePoolsGetallParams {
	o.SetTimeout(timeout)
	return o
}

// SetTimeout adds the timeout to the internal v1 storage regions storage pools getall params
func (o *InternalV1StorageRegionsStoragePoolsGetallParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}

// WithContext adds the context to the internal v1 storage regions storage pools getall params
func (o *InternalV1StorageRegionsStoragePoolsGetallParams) WithContext(ctx context.Context) *InternalV1StorageRegionsStoragePoolsGetallParams {
	o.SetContext(ctx)
	return o
}

// SetContext adds the context to the internal v1 storage regions storage pools getall params
func (o *InternalV1StorageRegionsStoragePoolsGetallParams) SetContext(ctx context.Context) {
	o.Context = ctx
}

// WithHTTPClient adds the HTTPClient to the internal v1 storage regions storage pools getall params
func (o *InternalV1StorageRegionsStoragePoolsGetallParams) WithHTTPClient(client *http.Client) *InternalV1StorageRegionsStoragePoolsGetallParams {
	o.SetHTTPClient(client)
	return o
}

// SetHTTPClient adds the HTTPClient to the internal v1 storage regions storage pools getall params
func (o *InternalV1StorageRegionsStoragePoolsGetallParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}

// WithRegionZoneID adds the regionZoneID to the internal v1 storage regions storage pools getall params
func (o *InternalV1StorageRegionsStoragePoolsGetallParams) WithRegionZoneID(regionZoneID string) *InternalV1StorageRegionsStoragePoolsGetallParams {
	o.SetRegionZoneID(regionZoneID)
	return o
}

// SetRegionZoneID adds the regionZoneId to the internal v1 storage regions storage pools getall params
func (o *InternalV1StorageRegionsStoragePoolsGetallParams) SetRegionZoneID(regionZoneID string) {
	o.RegionZoneID = regionZoneID
}

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

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

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

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