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

package p_cloud_service_d_h_c_p

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

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

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

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

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

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

	for the pcloud dhcp get operation.

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

	/* CloudInstanceID.

	   Cloud Instance ID of a PCloud Instance
	*/
	CloudInstanceID string

	/* DhcpID.

	   The ID of the DHCP Server
	*/
	DhcpID string

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

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

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

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

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

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

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

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

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

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

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

// WithDhcpID adds the dhcpID to the pcloud dhcp get params
func (o *PcloudDhcpGetParams) WithDhcpID(dhcpID string) *PcloudDhcpGetParams {
	o.SetDhcpID(dhcpID)
	return o
}

// SetDhcpID adds the dhcpId to the pcloud dhcp get params
func (o *PcloudDhcpGetParams) SetDhcpID(dhcpID string) {
	o.DhcpID = dhcpID
}

// WriteToRequest writes these params to a swagger request
func (o *PcloudDhcpGetParams) 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 dhcp_id
	if err := r.SetPathParam("dhcp_id", o.DhcpID); err != nil {
		return err
	}

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