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

package p_cloud_volumes

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

	strfmt "github.com/go-openapi/strfmt"
)

// NewPcloudV2VolumesClonetasksGetParams creates a new PcloudV2VolumesClonetasksGetParams object
// with the default values initialized.
func NewPcloudV2VolumesClonetasksGetParams() *PcloudV2VolumesClonetasksGetParams {
	var ()
	return &PcloudV2VolumesClonetasksGetParams{

		timeout: cr.DefaultTimeout,
	}
}

// NewPcloudV2VolumesClonetasksGetParamsWithTimeout creates a new PcloudV2VolumesClonetasksGetParams object
// with the default values initialized, and the ability to set a timeout on a request
func NewPcloudV2VolumesClonetasksGetParamsWithTimeout(timeout time.Duration) *PcloudV2VolumesClonetasksGetParams {
	var ()
	return &PcloudV2VolumesClonetasksGetParams{

		timeout: timeout,
	}
}

// NewPcloudV2VolumesClonetasksGetParamsWithContext creates a new PcloudV2VolumesClonetasksGetParams object
// with the default values initialized, and the ability to set a context for a request
func NewPcloudV2VolumesClonetasksGetParamsWithContext(ctx context.Context) *PcloudV2VolumesClonetasksGetParams {
	var ()
	return &PcloudV2VolumesClonetasksGetParams{

		Context: ctx,
	}
}

// NewPcloudV2VolumesClonetasksGetParamsWithHTTPClient creates a new PcloudV2VolumesClonetasksGetParams object
// with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPcloudV2VolumesClonetasksGetParamsWithHTTPClient(client *http.Client) *PcloudV2VolumesClonetasksGetParams {
	var ()
	return &PcloudV2VolumesClonetasksGetParams{
		HTTPClient: client,
	}
}

/*PcloudV2VolumesClonetasksGetParams contains all the parameters to send to the API endpoint
for the pcloud v2 volumes clonetasks get operation typically these are written to a http.Request
*/
type PcloudV2VolumesClonetasksGetParams struct {

	/*CloneTaskID
	  Volumes Clone Task ID

	*/
	CloneTaskID string
	/*CloudInstanceID
	  Cloud Instance ID of a PCloud Instance

	*/
	CloudInstanceID string

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

// WithTimeout adds the timeout to the pcloud v2 volumes clonetasks get params
func (o *PcloudV2VolumesClonetasksGetParams) WithTimeout(timeout time.Duration) *PcloudV2VolumesClonetasksGetParams {
	o.SetTimeout(timeout)
	return o
}

// SetTimeout adds the timeout to the pcloud v2 volumes clonetasks get params
func (o *PcloudV2VolumesClonetasksGetParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}

// WithContext adds the context to the pcloud v2 volumes clonetasks get params
func (o *PcloudV2VolumesClonetasksGetParams) WithContext(ctx context.Context) *PcloudV2VolumesClonetasksGetParams {
	o.SetContext(ctx)
	return o
}

// SetContext adds the context to the pcloud v2 volumes clonetasks get params
func (o *PcloudV2VolumesClonetasksGetParams) SetContext(ctx context.Context) {
	o.Context = ctx
}

// WithHTTPClient adds the HTTPClient to the pcloud v2 volumes clonetasks get params
func (o *PcloudV2VolumesClonetasksGetParams) WithHTTPClient(client *http.Client) *PcloudV2VolumesClonetasksGetParams {
	o.SetHTTPClient(client)
	return o
}

// SetHTTPClient adds the HTTPClient to the pcloud v2 volumes clonetasks get params
func (o *PcloudV2VolumesClonetasksGetParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}

// WithCloneTaskID adds the cloneTaskID to the pcloud v2 volumes clonetasks get params
func (o *PcloudV2VolumesClonetasksGetParams) WithCloneTaskID(cloneTaskID string) *PcloudV2VolumesClonetasksGetParams {
	o.SetCloneTaskID(cloneTaskID)
	return o
}

// SetCloneTaskID adds the cloneTaskId to the pcloud v2 volumes clonetasks get params
func (o *PcloudV2VolumesClonetasksGetParams) SetCloneTaskID(cloneTaskID string) {
	o.CloneTaskID = cloneTaskID
}

// WithCloudInstanceID adds the cloudInstanceID to the pcloud v2 volumes clonetasks get params
func (o *PcloudV2VolumesClonetasksGetParams) WithCloudInstanceID(cloudInstanceID string) *PcloudV2VolumesClonetasksGetParams {
	o.SetCloudInstanceID(cloudInstanceID)
	return o
}

// SetCloudInstanceID adds the cloudInstanceId to the pcloud v2 volumes clonetasks get params
func (o *PcloudV2VolumesClonetasksGetParams) SetCloudInstanceID(cloudInstanceID string) {
	o.CloudInstanceID = cloudInstanceID
}

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

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

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

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

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