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

package snapshots

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

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

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

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

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

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

	for the delete dashboard snapshot by delete key operation.

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

	// DeleteKey.
	DeleteKey string

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

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

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

// WithTimeout adds the timeout to the delete dashboard snapshot by delete key params
func (o *DeleteDashboardSnapshotByDeleteKeyParams) WithTimeout(timeout time.Duration) *DeleteDashboardSnapshotByDeleteKeyParams {
	o.SetTimeout(timeout)
	return o
}

// SetTimeout adds the timeout to the delete dashboard snapshot by delete key params
func (o *DeleteDashboardSnapshotByDeleteKeyParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}

// WithContext adds the context to the delete dashboard snapshot by delete key params
func (o *DeleteDashboardSnapshotByDeleteKeyParams) WithContext(ctx context.Context) *DeleteDashboardSnapshotByDeleteKeyParams {
	o.SetContext(ctx)
	return o
}

// SetContext adds the context to the delete dashboard snapshot by delete key params
func (o *DeleteDashboardSnapshotByDeleteKeyParams) SetContext(ctx context.Context) {
	o.Context = ctx
}

// WithHTTPClient adds the HTTPClient to the delete dashboard snapshot by delete key params
func (o *DeleteDashboardSnapshotByDeleteKeyParams) WithHTTPClient(client *http.Client) *DeleteDashboardSnapshotByDeleteKeyParams {
	o.SetHTTPClient(client)
	return o
}

// SetHTTPClient adds the HTTPClient to the delete dashboard snapshot by delete key params
func (o *DeleteDashboardSnapshotByDeleteKeyParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}

// WithDeleteKey adds the deleteKey to the delete dashboard snapshot by delete key params
func (o *DeleteDashboardSnapshotByDeleteKeyParams) WithDeleteKey(deleteKey string) *DeleteDashboardSnapshotByDeleteKeyParams {
	o.SetDeleteKey(deleteKey)
	return o
}

// SetDeleteKey adds the deleteKey to the delete dashboard snapshot by delete key params
func (o *DeleteDashboardSnapshotByDeleteKeyParams) SetDeleteKey(deleteKey string) {
	o.DeleteKey = deleteKey
}

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

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

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

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