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

package pipeline_service

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

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

		timeout: cr.DefaultTimeout,
	}
}

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

		timeout: timeout,
	}
}

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

		Context: ctx,
	}
}

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

/*DeletePipelineParams contains all the parameters to send to the API endpoint
for the delete pipeline operation typically these are written to a http.Request
*/
type DeletePipelineParams struct {

	/*PipelineID
	  Required input. ID of the pipeline to be deleted.

	*/
	PipelineID string

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

// WithTimeout adds the timeout to the delete pipeline params
func (o *DeletePipelineParams) WithTimeout(timeout time.Duration) *DeletePipelineParams {
	o.SetTimeout(timeout)
	return o
}

// SetTimeout adds the timeout to the delete pipeline params
func (o *DeletePipelineParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}

// WithContext adds the context to the delete pipeline params
func (o *DeletePipelineParams) WithContext(ctx context.Context) *DeletePipelineParams {
	o.SetContext(ctx)
	return o
}

// SetContext adds the context to the delete pipeline params
func (o *DeletePipelineParams) SetContext(ctx context.Context) {
	o.Context = ctx
}

// WithHTTPClient adds the HTTPClient to the delete pipeline params
func (o *DeletePipelineParams) WithHTTPClient(client *http.Client) *DeletePipelineParams {
	o.SetHTTPClient(client)
	return o
}

// SetHTTPClient adds the HTTPClient to the delete pipeline params
func (o *DeletePipelineParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}

// WithPipelineID adds the pipelineID to the delete pipeline params
func (o *DeletePipelineParams) WithPipelineID(pipelineID string) *DeletePipelineParams {
	o.SetPipelineID(pipelineID)
	return o
}

// SetPipelineID adds the pipelineId to the delete pipeline params
func (o *DeletePipelineParams) SetPipelineID(pipelineID string) {
	o.PipelineID = pipelineID
}

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

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

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

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