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

package secret_service

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

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

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

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

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

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

	for the get organization lock status operation.

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

	// OrganizationID.
	OrganizationID string

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

// WithDefaults hydrates default values in the get organization lock status params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *GetOrganizationLockStatusParams) WithDefaults() *GetOrganizationLockStatusParams {
	o.SetDefaults()
	return o
}

// SetDefaults hydrates default values in the get organization lock status params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *GetOrganizationLockStatusParams) SetDefaults() {
	// no default values defined for this parameter
}

// WithTimeout adds the timeout to the get organization lock status params
func (o *GetOrganizationLockStatusParams) WithTimeout(timeout time.Duration) *GetOrganizationLockStatusParams {
	o.SetTimeout(timeout)
	return o
}

// SetTimeout adds the timeout to the get organization lock status params
func (o *GetOrganizationLockStatusParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}

// WithContext adds the context to the get organization lock status params
func (o *GetOrganizationLockStatusParams) WithContext(ctx context.Context) *GetOrganizationLockStatusParams {
	o.SetContext(ctx)
	return o
}

// SetContext adds the context to the get organization lock status params
func (o *GetOrganizationLockStatusParams) SetContext(ctx context.Context) {
	o.Context = ctx
}

// WithHTTPClient adds the HTTPClient to the get organization lock status params
func (o *GetOrganizationLockStatusParams) WithHTTPClient(client *http.Client) *GetOrganizationLockStatusParams {
	o.SetHTTPClient(client)
	return o
}

// SetHTTPClient adds the HTTPClient to the get organization lock status params
func (o *GetOrganizationLockStatusParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}

// WithOrganizationID adds the organizationID to the get organization lock status params
func (o *GetOrganizationLockStatusParams) WithOrganizationID(organizationID string) *GetOrganizationLockStatusParams {
	o.SetOrganizationID(organizationID)
	return o
}

// SetOrganizationID adds the organizationId to the get organization lock status params
func (o *GetOrganizationLockStatusParams) SetOrganizationID(organizationID string) {
	o.OrganizationID = organizationID
}

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

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

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

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