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

package account_management

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

// NewDisableAccountParams creates a new DisableAccountParams object
// with the default values initialized.
func NewDisableAccountParams() *DisableAccountParams {
	var ()
	return &DisableAccountParams{

		timeout: cr.DefaultTimeout,
	}
}

// NewDisableAccountParamsWithTimeout creates a new DisableAccountParams object
// with the default values initialized, and the ability to set a timeout on a request
func NewDisableAccountParamsWithTimeout(timeout time.Duration) *DisableAccountParams {
	var ()
	return &DisableAccountParams{

		timeout: timeout,
	}
}

// NewDisableAccountParamsWithContext creates a new DisableAccountParams object
// with the default values initialized, and the ability to set a context for a request
func NewDisableAccountParamsWithContext(ctx context.Context) *DisableAccountParams {
	var ()
	return &DisableAccountParams{

		Context: ctx,
	}
}

// NewDisableAccountParamsWithHTTPClient creates a new DisableAccountParams object
// with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDisableAccountParamsWithHTTPClient(client *http.Client) *DisableAccountParams {
	var ()
	return &DisableAccountParams{
		HTTPClient: client,
	}
}

/*DisableAccountParams contains all the parameters to send to the API endpoint
for the disable account operation typically these are written to a http.Request
*/
type DisableAccountParams struct {

	/*ID
	  Id of the account to be disabled

	*/
	ID string

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

// WithTimeout adds the timeout to the disable account params
func (o *DisableAccountParams) WithTimeout(timeout time.Duration) *DisableAccountParams {
	o.SetTimeout(timeout)
	return o
}

// SetTimeout adds the timeout to the disable account params
func (o *DisableAccountParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}

// WithContext adds the context to the disable account params
func (o *DisableAccountParams) WithContext(ctx context.Context) *DisableAccountParams {
	o.SetContext(ctx)
	return o
}

// SetContext adds the context to the disable account params
func (o *DisableAccountParams) SetContext(ctx context.Context) {
	o.Context = ctx
}

// WithHTTPClient adds the HTTPClient to the disable account params
func (o *DisableAccountParams) WithHTTPClient(client *http.Client) *DisableAccountParams {
	o.SetHTTPClient(client)
	return o
}

// SetHTTPClient adds the HTTPClient to the disable account params
func (o *DisableAccountParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}

// WithID adds the id to the disable account params
func (o *DisableAccountParams) WithID(id string) *DisableAccountParams {
	o.SetID(id)
	return o
}

// SetID adds the id to the disable account params
func (o *DisableAccountParams) SetID(id string) {
	o.ID = id
}

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

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

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

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