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

package signed_in_user

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

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

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

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

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

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

	for the get signed in user team list operation.

	Typically these are written to a http.Request.
*/
type GetSignedInUserTeamListParams struct {
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}

// WithDefaults hydrates default values in the get signed in user team list params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *GetSignedInUserTeamListParams) WithDefaults() *GetSignedInUserTeamListParams {
	o.SetDefaults()
	return o
}

// SetDefaults hydrates default values in the get signed in user team list params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *GetSignedInUserTeamListParams) SetDefaults() {
	// no default values defined for this parameter
}

// WithTimeout adds the timeout to the get signed in user team list params
func (o *GetSignedInUserTeamListParams) WithTimeout(timeout time.Duration) *GetSignedInUserTeamListParams {
	o.SetTimeout(timeout)
	return o
}

// SetTimeout adds the timeout to the get signed in user team list params
func (o *GetSignedInUserTeamListParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}

// WithContext adds the context to the get signed in user team list params
func (o *GetSignedInUserTeamListParams) WithContext(ctx context.Context) *GetSignedInUserTeamListParams {
	o.SetContext(ctx)
	return o
}

// SetContext adds the context to the get signed in user team list params
func (o *GetSignedInUserTeamListParams) SetContext(ctx context.Context) {
	o.Context = ctx
}

// WithHTTPClient adds the HTTPClient to the get signed in user team list params
func (o *GetSignedInUserTeamListParams) WithHTTPClient(client *http.Client) *GetSignedInUserTeamListParams {
	o.SetHTTPClient(client)
	return o
}

// SetHTTPClient adds the HTTPClient to the get signed in user team list params
func (o *GetSignedInUserTeamListParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}

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

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

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