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

package signed_in_user

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

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

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

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

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

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

	for the star dashboard by UID operation.

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

	// DashboardUID.
	DashboardUID string

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

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

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

// WithTimeout adds the timeout to the star dashboard by UID params
func (o *StarDashboardByUIDParams) WithTimeout(timeout time.Duration) *StarDashboardByUIDParams {
	o.SetTimeout(timeout)
	return o
}

// SetTimeout adds the timeout to the star dashboard by UID params
func (o *StarDashboardByUIDParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}

// WithContext adds the context to the star dashboard by UID params
func (o *StarDashboardByUIDParams) WithContext(ctx context.Context) *StarDashboardByUIDParams {
	o.SetContext(ctx)
	return o
}

// SetContext adds the context to the star dashboard by UID params
func (o *StarDashboardByUIDParams) SetContext(ctx context.Context) {
	o.Context = ctx
}

// WithHTTPClient adds the HTTPClient to the star dashboard by UID params
func (o *StarDashboardByUIDParams) WithHTTPClient(client *http.Client) *StarDashboardByUIDParams {
	o.SetHTTPClient(client)
	return o
}

// SetHTTPClient adds the HTTPClient to the star dashboard by UID params
func (o *StarDashboardByUIDParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}

// WithDashboardUID adds the dashboardUID to the star dashboard by UID params
func (o *StarDashboardByUIDParams) WithDashboardUID(dashboardUID string) *StarDashboardByUIDParams {
	o.SetDashboardUID(dashboardUID)
	return o
}

// SetDashboardUID adds the dashboardUid to the star dashboard by UID params
func (o *StarDashboardByUIDParams) SetDashboardUID(dashboardUID string) {
	o.DashboardUID = dashboardUID
}

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

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

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

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