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

package dashboard_public

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

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

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

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

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

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

	for the delete public dashboard operation.

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

	// DashboardUID.
	DashboardUID string

	// UID.
	UID string

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

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

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

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

// SetTimeout adds the timeout to the delete public dashboard params
func (o *DeletePublicDashboardParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}

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

// SetContext adds the context to the delete public dashboard params
func (o *DeletePublicDashboardParams) SetContext(ctx context.Context) {
	o.Context = ctx
}

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

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

// WithDashboardUID adds the dashboardUID to the delete public dashboard params
func (o *DeletePublicDashboardParams) WithDashboardUID(dashboardUID string) *DeletePublicDashboardParams {
	o.SetDashboardUID(dashboardUID)
	return o
}

// SetDashboardUID adds the dashboardUid to the delete public dashboard params
func (o *DeletePublicDashboardParams) SetDashboardUID(dashboardUID string) {
	o.DashboardUID = dashboardUID
}

// WithUID adds the uid to the delete public dashboard params
func (o *DeletePublicDashboardParams) WithUID(uid string) *DeletePublicDashboardParams {
	o.SetUID(uid)
	return o
}

// SetUID adds the uid to the delete public dashboard params
func (o *DeletePublicDashboardParams) SetUID(uid string) {
	o.UID = uid
}

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

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

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

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

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