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

package operations

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

	"github.com/fiskerinc/cloud-services/pkg/ota_api/models"
)

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

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

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

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

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

	for the post fleet name vehicles delete operation.

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

	/* Name.

	   Name
	*/
	Name string

	/* Vins.

	   VINs
	*/
	Vins *models.CommonVINs

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

// WithDefaults hydrates default values in the post fleet name vehicles delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *PostFleetNameVehiclesDeleteParams) WithDefaults() *PostFleetNameVehiclesDeleteParams {
	o.SetDefaults()
	return o
}

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

// WithTimeout adds the timeout to the post fleet name vehicles delete params
func (o *PostFleetNameVehiclesDeleteParams) WithTimeout(timeout time.Duration) *PostFleetNameVehiclesDeleteParams {
	o.SetTimeout(timeout)
	return o
}

// SetTimeout adds the timeout to the post fleet name vehicles delete params
func (o *PostFleetNameVehiclesDeleteParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}

// WithContext adds the context to the post fleet name vehicles delete params
func (o *PostFleetNameVehiclesDeleteParams) WithContext(ctx context.Context) *PostFleetNameVehiclesDeleteParams {
	o.SetContext(ctx)
	return o
}

// SetContext adds the context to the post fleet name vehicles delete params
func (o *PostFleetNameVehiclesDeleteParams) SetContext(ctx context.Context) {
	o.Context = ctx
}

// WithHTTPClient adds the HTTPClient to the post fleet name vehicles delete params
func (o *PostFleetNameVehiclesDeleteParams) WithHTTPClient(client *http.Client) *PostFleetNameVehiclesDeleteParams {
	o.SetHTTPClient(client)
	return o
}

// SetHTTPClient adds the HTTPClient to the post fleet name vehicles delete params
func (o *PostFleetNameVehiclesDeleteParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}

// WithName adds the name to the post fleet name vehicles delete params
func (o *PostFleetNameVehiclesDeleteParams) WithName(name string) *PostFleetNameVehiclesDeleteParams {
	o.SetName(name)
	return o
}

// SetName adds the name to the post fleet name vehicles delete params
func (o *PostFleetNameVehiclesDeleteParams) SetName(name string) {
	o.Name = name
}

// WithVins adds the vins to the post fleet name vehicles delete params
func (o *PostFleetNameVehiclesDeleteParams) WithVins(vins *models.CommonVINs) *PostFleetNameVehiclesDeleteParams {
	o.SetVins(vins)
	return o
}

// SetVins adds the vins to the post fleet name vehicles delete params
func (o *PostFleetNameVehiclesDeleteParams) SetVins(vins *models.CommonVINs) {
	o.Vins = vins
}

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

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

	// path param name
	if err := r.SetPathParam("name", o.Name); err != nil {
		return err
	}
	if o.Vins != nil {
		if err := r.SetBodyParam(o.Vins); err != nil {
			return err
		}
	}

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