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

package organizations

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

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

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

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

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

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

	for the get org pool operation.

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

	/* OrgID.

	   Organization ID.
	*/
	OrgID string

	/* PoolID.

	   Pool ID.
	*/
	PoolID string

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

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

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

// WithTimeout adds the timeout to the get org pool params
func (o *GetOrgPoolParams) WithTimeout(timeout time.Duration) *GetOrgPoolParams {
	o.SetTimeout(timeout)
	return o
}

// SetTimeout adds the timeout to the get org pool params
func (o *GetOrgPoolParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}

// WithContext adds the context to the get org pool params
func (o *GetOrgPoolParams) WithContext(ctx context.Context) *GetOrgPoolParams {
	o.SetContext(ctx)
	return o
}

// SetContext adds the context to the get org pool params
func (o *GetOrgPoolParams) SetContext(ctx context.Context) {
	o.Context = ctx
}

// WithHTTPClient adds the HTTPClient to the get org pool params
func (o *GetOrgPoolParams) WithHTTPClient(client *http.Client) *GetOrgPoolParams {
	o.SetHTTPClient(client)
	return o
}

// SetHTTPClient adds the HTTPClient to the get org pool params
func (o *GetOrgPoolParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}

// WithOrgID adds the orgID to the get org pool params
func (o *GetOrgPoolParams) WithOrgID(orgID string) *GetOrgPoolParams {
	o.SetOrgID(orgID)
	return o
}

// SetOrgID adds the orgId to the get org pool params
func (o *GetOrgPoolParams) SetOrgID(orgID string) {
	o.OrgID = orgID
}

// WithPoolID adds the poolID to the get org pool params
func (o *GetOrgPoolParams) WithPoolID(poolID string) *GetOrgPoolParams {
	o.SetPoolID(poolID)
	return o
}

// SetPoolID adds the poolId to the get org pool params
func (o *GetOrgPoolParams) SetPoolID(poolID string) {
	o.PoolID = poolID
}

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

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

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

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

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