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

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

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

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

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

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

	for the internal v1 storage regions thresholds get operation.

	Typically these are written to a http.Request.
*/
type InternalV1StorageRegionsThresholdsGetParams 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 thresholds get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *InternalV1StorageRegionsThresholdsGetParams) WithDefaults() *InternalV1StorageRegionsThresholdsGetParams {
	o.SetDefaults()
	return o
}

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

// WithTimeout adds the timeout to the internal v1 storage regions thresholds get params
func (o *InternalV1StorageRegionsThresholdsGetParams) WithTimeout(timeout time.Duration) *InternalV1StorageRegionsThresholdsGetParams {
	o.SetTimeout(timeout)
	return o
}

// SetTimeout adds the timeout to the internal v1 storage regions thresholds get params
func (o *InternalV1StorageRegionsThresholdsGetParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}

// WithContext adds the context to the internal v1 storage regions thresholds get params
func (o *InternalV1StorageRegionsThresholdsGetParams) WithContext(ctx context.Context) *InternalV1StorageRegionsThresholdsGetParams {
	o.SetContext(ctx)
	return o
}

// SetContext adds the context to the internal v1 storage regions thresholds get params
func (o *InternalV1StorageRegionsThresholdsGetParams) SetContext(ctx context.Context) {
	o.Context = ctx
}

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

// SetHTTPClient adds the HTTPClient to the internal v1 storage regions thresholds get params
func (o *InternalV1StorageRegionsThresholdsGetParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}

// WithRegionZoneID adds the regionZoneID to the internal v1 storage regions thresholds get params
func (o *InternalV1StorageRegionsThresholdsGetParams) WithRegionZoneID(regionZoneID string) *InternalV1StorageRegionsThresholdsGetParams {
	o.SetRegionZoneID(regionZoneID)
	return o
}

// SetRegionZoneID adds the regionZoneId to the internal v1 storage regions thresholds get params
func (o *InternalV1StorageRegionsThresholdsGetParams) SetRegionZoneID(regionZoneID string) {
	o.RegionZoneID = regionZoneID
}

// WriteToRequest writes these params to a swagger request
func (o *InternalV1StorageRegionsThresholdsGetParams) 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
}
