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

package recurring_run_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"
)

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

		timeout: cr.DefaultTimeout,
	}
}

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

		timeout: timeout,
	}
}

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

		Context: ctx,
	}
}

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

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

	/*RecurringRunID
	  The ID of the recurring run to be retrieved.

	*/
	RecurringRunID string

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

// WithTimeout adds the timeout to the get recurring run params
func (o *GetRecurringRunParams) WithTimeout(timeout time.Duration) *GetRecurringRunParams {
	o.SetTimeout(timeout)
	return o
}

// SetTimeout adds the timeout to the get recurring run params
func (o *GetRecurringRunParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}

// WithContext adds the context to the get recurring run params
func (o *GetRecurringRunParams) WithContext(ctx context.Context) *GetRecurringRunParams {
	o.SetContext(ctx)
	return o
}

// SetContext adds the context to the get recurring run params
func (o *GetRecurringRunParams) SetContext(ctx context.Context) {
	o.Context = ctx
}

// WithHTTPClient adds the HTTPClient to the get recurring run params
func (o *GetRecurringRunParams) WithHTTPClient(client *http.Client) *GetRecurringRunParams {
	o.SetHTTPClient(client)
	return o
}

// SetHTTPClient adds the HTTPClient to the get recurring run params
func (o *GetRecurringRunParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}

// WithRecurringRunID adds the recurringRunID to the get recurring run params
func (o *GetRecurringRunParams) WithRecurringRunID(recurringRunID string) *GetRecurringRunParams {
	o.SetRecurringRunID(recurringRunID)
	return o
}

// SetRecurringRunID adds the recurringRunId to the get recurring run params
func (o *GetRecurringRunParams) SetRecurringRunID(recurringRunID string) {
	o.RecurringRunID = recurringRunID
}

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

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

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

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