// 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"
	"github.com/go-openapi/strfmt"
)

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

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

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

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

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

	for the recurring run service disable recurring run operation.

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

	/* RecurringRunID.

	   The ID of the recurring runs to be disabled.
	*/
	RecurringRunID string

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

// WithDefaults hydrates default values in the recurring run service disable recurring run params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *RecurringRunServiceDisableRecurringRunParams) WithDefaults() *RecurringRunServiceDisableRecurringRunParams {
	o.SetDefaults()
	return o
}

// SetDefaults hydrates default values in the recurring run service disable recurring run params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *RecurringRunServiceDisableRecurringRunParams) SetDefaults() {
	// no default values defined for this parameter
}

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

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

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

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

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

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

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

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

// WriteToRequest writes these params to a swagger request
func (o *RecurringRunServiceDisableRecurringRunParams) 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
}
