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

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

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

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

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

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

	for the recurring run service delete recurring run operation.

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

	/* RecurringRunID.

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

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

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

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

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

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

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

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

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

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

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

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

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