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

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

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

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

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

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

	for the post manifestmigrate manifest ID operation.

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

	/* ManifestID.

	   Manifest ID
	*/
	ManifestID string

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

// WithDefaults hydrates default values in the post manifestmigrate manifest ID params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *PostManifestmigrateManifestIDParams) WithDefaults() *PostManifestmigrateManifestIDParams {
	o.SetDefaults()
	return o
}

// SetDefaults hydrates default values in the post manifestmigrate manifest ID params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *PostManifestmigrateManifestIDParams) SetDefaults() {
	// no default values defined for this parameter
}

// WithTimeout adds the timeout to the post manifestmigrate manifest ID params
func (o *PostManifestmigrateManifestIDParams) WithTimeout(timeout time.Duration) *PostManifestmigrateManifestIDParams {
	o.SetTimeout(timeout)
	return o
}

// SetTimeout adds the timeout to the post manifestmigrate manifest ID params
func (o *PostManifestmigrateManifestIDParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}

// WithContext adds the context to the post manifestmigrate manifest ID params
func (o *PostManifestmigrateManifestIDParams) WithContext(ctx context.Context) *PostManifestmigrateManifestIDParams {
	o.SetContext(ctx)
	return o
}

// SetContext adds the context to the post manifestmigrate manifest ID params
func (o *PostManifestmigrateManifestIDParams) SetContext(ctx context.Context) {
	o.Context = ctx
}

// WithHTTPClient adds the HTTPClient to the post manifestmigrate manifest ID params
func (o *PostManifestmigrateManifestIDParams) WithHTTPClient(client *http.Client) *PostManifestmigrateManifestIDParams {
	o.SetHTTPClient(client)
	return o
}

// SetHTTPClient adds the HTTPClient to the post manifestmigrate manifest ID params
func (o *PostManifestmigrateManifestIDParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}

// WithManifestID adds the manifestID to the post manifestmigrate manifest ID params
func (o *PostManifestmigrateManifestIDParams) WithManifestID(manifestID string) *PostManifestmigrateManifestIDParams {
	o.SetManifestID(manifestID)
	return o
}

// SetManifestID adds the manifestId to the post manifestmigrate manifest ID params
func (o *PostManifestmigrateManifestIDParams) SetManifestID(manifestID string) {
	o.ManifestID = manifestID
}

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

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

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

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