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

package plan_management

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

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

		timeout: cr.DefaultTimeout,
	}
}

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

		timeout: timeout,
	}
}

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

		Context: ctx,
	}
}

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

/*GetCompletePlanParams contains all the parameters to send to the API endpoint
for the get complete plan operation typically these are written to a http.Request
*/
type GetCompletePlanParams struct {

	/*ID
	  Id of plan to be obtained

	*/
	ID string

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

// WithTimeout adds the timeout to the get complete plan params
func (o *GetCompletePlanParams) WithTimeout(timeout time.Duration) *GetCompletePlanParams {
	o.SetTimeout(timeout)
	return o
}

// SetTimeout adds the timeout to the get complete plan params
func (o *GetCompletePlanParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}

// WithContext adds the context to the get complete plan params
func (o *GetCompletePlanParams) WithContext(ctx context.Context) *GetCompletePlanParams {
	o.SetContext(ctx)
	return o
}

// SetContext adds the context to the get complete plan params
func (o *GetCompletePlanParams) SetContext(ctx context.Context) {
	o.Context = ctx
}

// WithHTTPClient adds the HTTPClient to the get complete plan params
func (o *GetCompletePlanParams) WithHTTPClient(client *http.Client) *GetCompletePlanParams {
	o.SetHTTPClient(client)
	return o
}

// SetHTTPClient adds the HTTPClient to the get complete plan params
func (o *GetCompletePlanParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}

// WithID adds the id to the get complete plan params
func (o *GetCompletePlanParams) WithID(id string) *GetCompletePlanParams {
	o.SetID(id)
	return o
}

// SetID adds the id to the get complete plan params
func (o *GetCompletePlanParams) SetID(id string) {
	o.ID = id
}

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

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

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

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