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

package enterprises

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

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

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

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

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

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

	for the get enterprise pool operation.

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

	/* EnterpriseID.

	   Enterprise ID.
	*/
	EnterpriseID string

	/* PoolID.

	   Pool ID.
	*/
	PoolID string

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

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

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

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

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

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

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

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

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

// WithEnterpriseID adds the enterpriseID to the get enterprise pool params
func (o *GetEnterprisePoolParams) WithEnterpriseID(enterpriseID string) *GetEnterprisePoolParams {
	o.SetEnterpriseID(enterpriseID)
	return o
}

// SetEnterpriseID adds the enterpriseId to the get enterprise pool params
func (o *GetEnterprisePoolParams) SetEnterpriseID(enterpriseID string) {
	o.EnterpriseID = enterpriseID
}

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

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

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

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

	// path param enterpriseID
	if err := r.SetPathParam("enterpriseID", o.EnterpriseID); 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
}
