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

package p_cloud_volume_onboarding

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

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

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

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

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

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

	for the pcloud volume onboarding get operation.

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

	/* CloudInstanceID.

	   Cloud Instance ID of a PCloud Instance
	*/
	CloudInstanceID string

	/* VolumeOnboardingID.

	   Indicates volume onboarding operation id
	*/
	VolumeOnboardingID string

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

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

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

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

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

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

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

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

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

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

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

// WithVolumeOnboardingID adds the volumeOnboardingID to the pcloud volume onboarding get params
func (o *PcloudVolumeOnboardingGetParams) WithVolumeOnboardingID(volumeOnboardingID string) *PcloudVolumeOnboardingGetParams {
	o.SetVolumeOnboardingID(volumeOnboardingID)
	return o
}

// SetVolumeOnboardingID adds the volumeOnboardingId to the pcloud volume onboarding get params
func (o *PcloudVolumeOnboardingGetParams) SetVolumeOnboardingID(volumeOnboardingID string) {
	o.VolumeOnboardingID = volumeOnboardingID
}

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

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