github.com/digitalocean/go-netbox@v0.0.2/netbox/client/users/users_users_list_parameters.go (about)

     1  // Code generated by go-swagger; DO NOT EDIT.
     2  
     3  // Copyright 2020 The go-netbox Authors.
     4  //
     5  // Licensed under the Apache License, Version 2.0 (the "License");
     6  // you may not use this file except in compliance with the License.
     7  // You may obtain a copy of the License at
     8  //
     9  //   http://www.apache.org/licenses/LICENSE-2.0
    10  //
    11  // Unless required by applicable law or agreed to in writing, software
    12  // distributed under the License is distributed on an "AS IS" BASIS,
    13  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14  // See the License for the specific language governing permissions and
    15  // limitations under the License.
    16  //
    17  
    18  package users
    19  
    20  // This file was generated by the swagger tool.
    21  // Editing this file might prove futile when you re-run the swagger generate command
    22  
    23  import (
    24  	"context"
    25  	"net/http"
    26  	"time"
    27  
    28  	"github.com/go-openapi/errors"
    29  	"github.com/go-openapi/runtime"
    30  	cr "github.com/go-openapi/runtime/client"
    31  	"github.com/go-openapi/strfmt"
    32  	"github.com/go-openapi/swag"
    33  )
    34  
    35  // NewUsersUsersListParams creates a new UsersUsersListParams object,
    36  // with the default timeout for this client.
    37  //
    38  // Default values are not hydrated, since defaults are normally applied by the API server side.
    39  //
    40  // To enforce default values in parameter, use SetDefaults or WithDefaults.
    41  func NewUsersUsersListParams() *UsersUsersListParams {
    42  	return &UsersUsersListParams{
    43  		timeout: cr.DefaultTimeout,
    44  	}
    45  }
    46  
    47  // NewUsersUsersListParamsWithTimeout creates a new UsersUsersListParams object
    48  // with the ability to set a timeout on a request.
    49  func NewUsersUsersListParamsWithTimeout(timeout time.Duration) *UsersUsersListParams {
    50  	return &UsersUsersListParams{
    51  		timeout: timeout,
    52  	}
    53  }
    54  
    55  // NewUsersUsersListParamsWithContext creates a new UsersUsersListParams object
    56  // with the ability to set a context for a request.
    57  func NewUsersUsersListParamsWithContext(ctx context.Context) *UsersUsersListParams {
    58  	return &UsersUsersListParams{
    59  		Context: ctx,
    60  	}
    61  }
    62  
    63  // NewUsersUsersListParamsWithHTTPClient creates a new UsersUsersListParams object
    64  // with the ability to set a custom HTTPClient for a request.
    65  func NewUsersUsersListParamsWithHTTPClient(client *http.Client) *UsersUsersListParams {
    66  	return &UsersUsersListParams{
    67  		HTTPClient: client,
    68  	}
    69  }
    70  
    71  /* UsersUsersListParams contains all the parameters to send to the API endpoint
    72     for the users users list operation.
    73  
    74     Typically these are written to a http.Request.
    75  */
    76  type UsersUsersListParams struct {
    77  
    78  	// Email.
    79  	Email *string
    80  
    81  	// EmailEmpty.
    82  	EmailEmpty *string
    83  
    84  	// EmailIc.
    85  	EmailIc *string
    86  
    87  	// EmailIe.
    88  	EmailIe *string
    89  
    90  	// EmailIew.
    91  	EmailIew *string
    92  
    93  	// EmailIsw.
    94  	EmailIsw *string
    95  
    96  	// Emailn.
    97  	Emailn *string
    98  
    99  	// EmailNic.
   100  	EmailNic *string
   101  
   102  	// EmailNie.
   103  	EmailNie *string
   104  
   105  	// EmailNiew.
   106  	EmailNiew *string
   107  
   108  	// EmailNisw.
   109  	EmailNisw *string
   110  
   111  	// FirstName.
   112  	FirstName *string
   113  
   114  	// FirstNameEmpty.
   115  	FirstNameEmpty *string
   116  
   117  	// FirstNameIc.
   118  	FirstNameIc *string
   119  
   120  	// FirstNameIe.
   121  	FirstNameIe *string
   122  
   123  	// FirstNameIew.
   124  	FirstNameIew *string
   125  
   126  	// FirstNameIsw.
   127  	FirstNameIsw *string
   128  
   129  	// FirstNamen.
   130  	FirstNamen *string
   131  
   132  	// FirstNameNic.
   133  	FirstNameNic *string
   134  
   135  	// FirstNameNie.
   136  	FirstNameNie *string
   137  
   138  	// FirstNameNiew.
   139  	FirstNameNiew *string
   140  
   141  	// FirstNameNisw.
   142  	FirstNameNisw *string
   143  
   144  	// Group.
   145  	Group *string
   146  
   147  	// Groupn.
   148  	Groupn *string
   149  
   150  	// GroupID.
   151  	GroupID *string
   152  
   153  	// GroupIDn.
   154  	GroupIDn *string
   155  
   156  	// ID.
   157  	ID *string
   158  
   159  	// IDGt.
   160  	IDGt *string
   161  
   162  	// IDGte.
   163  	IDGte *string
   164  
   165  	// IDLt.
   166  	IDLt *string
   167  
   168  	// IDLte.
   169  	IDLte *string
   170  
   171  	// IDn.
   172  	IDn *string
   173  
   174  	// IsActive.
   175  	IsActive *string
   176  
   177  	// IsStaff.
   178  	IsStaff *string
   179  
   180  	// LastName.
   181  	LastName *string
   182  
   183  	// LastNameEmpty.
   184  	LastNameEmpty *string
   185  
   186  	// LastNameIc.
   187  	LastNameIc *string
   188  
   189  	// LastNameIe.
   190  	LastNameIe *string
   191  
   192  	// LastNameIew.
   193  	LastNameIew *string
   194  
   195  	// LastNameIsw.
   196  	LastNameIsw *string
   197  
   198  	// LastNamen.
   199  	LastNamen *string
   200  
   201  	// LastNameNic.
   202  	LastNameNic *string
   203  
   204  	// LastNameNie.
   205  	LastNameNie *string
   206  
   207  	// LastNameNiew.
   208  	LastNameNiew *string
   209  
   210  	// LastNameNisw.
   211  	LastNameNisw *string
   212  
   213  	/* Limit.
   214  
   215  	   Number of results to return per page.
   216  	*/
   217  	Limit *int64
   218  
   219  	/* Offset.
   220  
   221  	   The initial index from which to return the results.
   222  	*/
   223  	Offset *int64
   224  
   225  	// Q.
   226  	Q *string
   227  
   228  	// Username.
   229  	Username *string
   230  
   231  	// UsernameEmpty.
   232  	UsernameEmpty *string
   233  
   234  	// UsernameIc.
   235  	UsernameIc *string
   236  
   237  	// UsernameIe.
   238  	UsernameIe *string
   239  
   240  	// UsernameIew.
   241  	UsernameIew *string
   242  
   243  	// UsernameIsw.
   244  	UsernameIsw *string
   245  
   246  	// Usernamen.
   247  	Usernamen *string
   248  
   249  	// UsernameNic.
   250  	UsernameNic *string
   251  
   252  	// UsernameNie.
   253  	UsernameNie *string
   254  
   255  	// UsernameNiew.
   256  	UsernameNiew *string
   257  
   258  	// UsernameNisw.
   259  	UsernameNisw *string
   260  
   261  	timeout    time.Duration
   262  	Context    context.Context
   263  	HTTPClient *http.Client
   264  }
   265  
   266  // WithDefaults hydrates default values in the users users list params (not the query body).
   267  //
   268  // All values with no default are reset to their zero value.
   269  func (o *UsersUsersListParams) WithDefaults() *UsersUsersListParams {
   270  	o.SetDefaults()
   271  	return o
   272  }
   273  
   274  // SetDefaults hydrates default values in the users users list params (not the query body).
   275  //
   276  // All values with no default are reset to their zero value.
   277  func (o *UsersUsersListParams) SetDefaults() {
   278  	// no default values defined for this parameter
   279  }
   280  
   281  // WithTimeout adds the timeout to the users users list params
   282  func (o *UsersUsersListParams) WithTimeout(timeout time.Duration) *UsersUsersListParams {
   283  	o.SetTimeout(timeout)
   284  	return o
   285  }
   286  
   287  // SetTimeout adds the timeout to the users users list params
   288  func (o *UsersUsersListParams) SetTimeout(timeout time.Duration) {
   289  	o.timeout = timeout
   290  }
   291  
   292  // WithContext adds the context to the users users list params
   293  func (o *UsersUsersListParams) WithContext(ctx context.Context) *UsersUsersListParams {
   294  	o.SetContext(ctx)
   295  	return o
   296  }
   297  
   298  // SetContext adds the context to the users users list params
   299  func (o *UsersUsersListParams) SetContext(ctx context.Context) {
   300  	o.Context = ctx
   301  }
   302  
   303  // WithHTTPClient adds the HTTPClient to the users users list params
   304  func (o *UsersUsersListParams) WithHTTPClient(client *http.Client) *UsersUsersListParams {
   305  	o.SetHTTPClient(client)
   306  	return o
   307  }
   308  
   309  // SetHTTPClient adds the HTTPClient to the users users list params
   310  func (o *UsersUsersListParams) SetHTTPClient(client *http.Client) {
   311  	o.HTTPClient = client
   312  }
   313  
   314  // WithEmail adds the email to the users users list params
   315  func (o *UsersUsersListParams) WithEmail(email *string) *UsersUsersListParams {
   316  	o.SetEmail(email)
   317  	return o
   318  }
   319  
   320  // SetEmail adds the email to the users users list params
   321  func (o *UsersUsersListParams) SetEmail(email *string) {
   322  	o.Email = email
   323  }
   324  
   325  // WithEmailEmpty adds the emailEmpty to the users users list params
   326  func (o *UsersUsersListParams) WithEmailEmpty(emailEmpty *string) *UsersUsersListParams {
   327  	o.SetEmailEmpty(emailEmpty)
   328  	return o
   329  }
   330  
   331  // SetEmailEmpty adds the emailEmpty to the users users list params
   332  func (o *UsersUsersListParams) SetEmailEmpty(emailEmpty *string) {
   333  	o.EmailEmpty = emailEmpty
   334  }
   335  
   336  // WithEmailIc adds the emailIc to the users users list params
   337  func (o *UsersUsersListParams) WithEmailIc(emailIc *string) *UsersUsersListParams {
   338  	o.SetEmailIc(emailIc)
   339  	return o
   340  }
   341  
   342  // SetEmailIc adds the emailIc to the users users list params
   343  func (o *UsersUsersListParams) SetEmailIc(emailIc *string) {
   344  	o.EmailIc = emailIc
   345  }
   346  
   347  // WithEmailIe adds the emailIe to the users users list params
   348  func (o *UsersUsersListParams) WithEmailIe(emailIe *string) *UsersUsersListParams {
   349  	o.SetEmailIe(emailIe)
   350  	return o
   351  }
   352  
   353  // SetEmailIe adds the emailIe to the users users list params
   354  func (o *UsersUsersListParams) SetEmailIe(emailIe *string) {
   355  	o.EmailIe = emailIe
   356  }
   357  
   358  // WithEmailIew adds the emailIew to the users users list params
   359  func (o *UsersUsersListParams) WithEmailIew(emailIew *string) *UsersUsersListParams {
   360  	o.SetEmailIew(emailIew)
   361  	return o
   362  }
   363  
   364  // SetEmailIew adds the emailIew to the users users list params
   365  func (o *UsersUsersListParams) SetEmailIew(emailIew *string) {
   366  	o.EmailIew = emailIew
   367  }
   368  
   369  // WithEmailIsw adds the emailIsw to the users users list params
   370  func (o *UsersUsersListParams) WithEmailIsw(emailIsw *string) *UsersUsersListParams {
   371  	o.SetEmailIsw(emailIsw)
   372  	return o
   373  }
   374  
   375  // SetEmailIsw adds the emailIsw to the users users list params
   376  func (o *UsersUsersListParams) SetEmailIsw(emailIsw *string) {
   377  	o.EmailIsw = emailIsw
   378  }
   379  
   380  // WithEmailn adds the emailn to the users users list params
   381  func (o *UsersUsersListParams) WithEmailn(emailn *string) *UsersUsersListParams {
   382  	o.SetEmailn(emailn)
   383  	return o
   384  }
   385  
   386  // SetEmailn adds the emailN to the users users list params
   387  func (o *UsersUsersListParams) SetEmailn(emailn *string) {
   388  	o.Emailn = emailn
   389  }
   390  
   391  // WithEmailNic adds the emailNic to the users users list params
   392  func (o *UsersUsersListParams) WithEmailNic(emailNic *string) *UsersUsersListParams {
   393  	o.SetEmailNic(emailNic)
   394  	return o
   395  }
   396  
   397  // SetEmailNic adds the emailNic to the users users list params
   398  func (o *UsersUsersListParams) SetEmailNic(emailNic *string) {
   399  	o.EmailNic = emailNic
   400  }
   401  
   402  // WithEmailNie adds the emailNie to the users users list params
   403  func (o *UsersUsersListParams) WithEmailNie(emailNie *string) *UsersUsersListParams {
   404  	o.SetEmailNie(emailNie)
   405  	return o
   406  }
   407  
   408  // SetEmailNie adds the emailNie to the users users list params
   409  func (o *UsersUsersListParams) SetEmailNie(emailNie *string) {
   410  	o.EmailNie = emailNie
   411  }
   412  
   413  // WithEmailNiew adds the emailNiew to the users users list params
   414  func (o *UsersUsersListParams) WithEmailNiew(emailNiew *string) *UsersUsersListParams {
   415  	o.SetEmailNiew(emailNiew)
   416  	return o
   417  }
   418  
   419  // SetEmailNiew adds the emailNiew to the users users list params
   420  func (o *UsersUsersListParams) SetEmailNiew(emailNiew *string) {
   421  	o.EmailNiew = emailNiew
   422  }
   423  
   424  // WithEmailNisw adds the emailNisw to the users users list params
   425  func (o *UsersUsersListParams) WithEmailNisw(emailNisw *string) *UsersUsersListParams {
   426  	o.SetEmailNisw(emailNisw)
   427  	return o
   428  }
   429  
   430  // SetEmailNisw adds the emailNisw to the users users list params
   431  func (o *UsersUsersListParams) SetEmailNisw(emailNisw *string) {
   432  	o.EmailNisw = emailNisw
   433  }
   434  
   435  // WithFirstName adds the firstName to the users users list params
   436  func (o *UsersUsersListParams) WithFirstName(firstName *string) *UsersUsersListParams {
   437  	o.SetFirstName(firstName)
   438  	return o
   439  }
   440  
   441  // SetFirstName adds the firstName to the users users list params
   442  func (o *UsersUsersListParams) SetFirstName(firstName *string) {
   443  	o.FirstName = firstName
   444  }
   445  
   446  // WithFirstNameEmpty adds the firstNameEmpty to the users users list params
   447  func (o *UsersUsersListParams) WithFirstNameEmpty(firstNameEmpty *string) *UsersUsersListParams {
   448  	o.SetFirstNameEmpty(firstNameEmpty)
   449  	return o
   450  }
   451  
   452  // SetFirstNameEmpty adds the firstNameEmpty to the users users list params
   453  func (o *UsersUsersListParams) SetFirstNameEmpty(firstNameEmpty *string) {
   454  	o.FirstNameEmpty = firstNameEmpty
   455  }
   456  
   457  // WithFirstNameIc adds the firstNameIc to the users users list params
   458  func (o *UsersUsersListParams) WithFirstNameIc(firstNameIc *string) *UsersUsersListParams {
   459  	o.SetFirstNameIc(firstNameIc)
   460  	return o
   461  }
   462  
   463  // SetFirstNameIc adds the firstNameIc to the users users list params
   464  func (o *UsersUsersListParams) SetFirstNameIc(firstNameIc *string) {
   465  	o.FirstNameIc = firstNameIc
   466  }
   467  
   468  // WithFirstNameIe adds the firstNameIe to the users users list params
   469  func (o *UsersUsersListParams) WithFirstNameIe(firstNameIe *string) *UsersUsersListParams {
   470  	o.SetFirstNameIe(firstNameIe)
   471  	return o
   472  }
   473  
   474  // SetFirstNameIe adds the firstNameIe to the users users list params
   475  func (o *UsersUsersListParams) SetFirstNameIe(firstNameIe *string) {
   476  	o.FirstNameIe = firstNameIe
   477  }
   478  
   479  // WithFirstNameIew adds the firstNameIew to the users users list params
   480  func (o *UsersUsersListParams) WithFirstNameIew(firstNameIew *string) *UsersUsersListParams {
   481  	o.SetFirstNameIew(firstNameIew)
   482  	return o
   483  }
   484  
   485  // SetFirstNameIew adds the firstNameIew to the users users list params
   486  func (o *UsersUsersListParams) SetFirstNameIew(firstNameIew *string) {
   487  	o.FirstNameIew = firstNameIew
   488  }
   489  
   490  // WithFirstNameIsw adds the firstNameIsw to the users users list params
   491  func (o *UsersUsersListParams) WithFirstNameIsw(firstNameIsw *string) *UsersUsersListParams {
   492  	o.SetFirstNameIsw(firstNameIsw)
   493  	return o
   494  }
   495  
   496  // SetFirstNameIsw adds the firstNameIsw to the users users list params
   497  func (o *UsersUsersListParams) SetFirstNameIsw(firstNameIsw *string) {
   498  	o.FirstNameIsw = firstNameIsw
   499  }
   500  
   501  // WithFirstNamen adds the firstNamen to the users users list params
   502  func (o *UsersUsersListParams) WithFirstNamen(firstNamen *string) *UsersUsersListParams {
   503  	o.SetFirstNamen(firstNamen)
   504  	return o
   505  }
   506  
   507  // SetFirstNamen adds the firstNameN to the users users list params
   508  func (o *UsersUsersListParams) SetFirstNamen(firstNamen *string) {
   509  	o.FirstNamen = firstNamen
   510  }
   511  
   512  // WithFirstNameNic adds the firstNameNic to the users users list params
   513  func (o *UsersUsersListParams) WithFirstNameNic(firstNameNic *string) *UsersUsersListParams {
   514  	o.SetFirstNameNic(firstNameNic)
   515  	return o
   516  }
   517  
   518  // SetFirstNameNic adds the firstNameNic to the users users list params
   519  func (o *UsersUsersListParams) SetFirstNameNic(firstNameNic *string) {
   520  	o.FirstNameNic = firstNameNic
   521  }
   522  
   523  // WithFirstNameNie adds the firstNameNie to the users users list params
   524  func (o *UsersUsersListParams) WithFirstNameNie(firstNameNie *string) *UsersUsersListParams {
   525  	o.SetFirstNameNie(firstNameNie)
   526  	return o
   527  }
   528  
   529  // SetFirstNameNie adds the firstNameNie to the users users list params
   530  func (o *UsersUsersListParams) SetFirstNameNie(firstNameNie *string) {
   531  	o.FirstNameNie = firstNameNie
   532  }
   533  
   534  // WithFirstNameNiew adds the firstNameNiew to the users users list params
   535  func (o *UsersUsersListParams) WithFirstNameNiew(firstNameNiew *string) *UsersUsersListParams {
   536  	o.SetFirstNameNiew(firstNameNiew)
   537  	return o
   538  }
   539  
   540  // SetFirstNameNiew adds the firstNameNiew to the users users list params
   541  func (o *UsersUsersListParams) SetFirstNameNiew(firstNameNiew *string) {
   542  	o.FirstNameNiew = firstNameNiew
   543  }
   544  
   545  // WithFirstNameNisw adds the firstNameNisw to the users users list params
   546  func (o *UsersUsersListParams) WithFirstNameNisw(firstNameNisw *string) *UsersUsersListParams {
   547  	o.SetFirstNameNisw(firstNameNisw)
   548  	return o
   549  }
   550  
   551  // SetFirstNameNisw adds the firstNameNisw to the users users list params
   552  func (o *UsersUsersListParams) SetFirstNameNisw(firstNameNisw *string) {
   553  	o.FirstNameNisw = firstNameNisw
   554  }
   555  
   556  // WithGroup adds the group to the users users list params
   557  func (o *UsersUsersListParams) WithGroup(group *string) *UsersUsersListParams {
   558  	o.SetGroup(group)
   559  	return o
   560  }
   561  
   562  // SetGroup adds the group to the users users list params
   563  func (o *UsersUsersListParams) SetGroup(group *string) {
   564  	o.Group = group
   565  }
   566  
   567  // WithGroupn adds the groupn to the users users list params
   568  func (o *UsersUsersListParams) WithGroupn(groupn *string) *UsersUsersListParams {
   569  	o.SetGroupn(groupn)
   570  	return o
   571  }
   572  
   573  // SetGroupn adds the groupN to the users users list params
   574  func (o *UsersUsersListParams) SetGroupn(groupn *string) {
   575  	o.Groupn = groupn
   576  }
   577  
   578  // WithGroupID adds the groupID to the users users list params
   579  func (o *UsersUsersListParams) WithGroupID(groupID *string) *UsersUsersListParams {
   580  	o.SetGroupID(groupID)
   581  	return o
   582  }
   583  
   584  // SetGroupID adds the groupId to the users users list params
   585  func (o *UsersUsersListParams) SetGroupID(groupID *string) {
   586  	o.GroupID = groupID
   587  }
   588  
   589  // WithGroupIDn adds the groupIDn to the users users list params
   590  func (o *UsersUsersListParams) WithGroupIDn(groupIDn *string) *UsersUsersListParams {
   591  	o.SetGroupIDn(groupIDn)
   592  	return o
   593  }
   594  
   595  // SetGroupIDn adds the groupIdN to the users users list params
   596  func (o *UsersUsersListParams) SetGroupIDn(groupIDn *string) {
   597  	o.GroupIDn = groupIDn
   598  }
   599  
   600  // WithID adds the id to the users users list params
   601  func (o *UsersUsersListParams) WithID(id *string) *UsersUsersListParams {
   602  	o.SetID(id)
   603  	return o
   604  }
   605  
   606  // SetID adds the id to the users users list params
   607  func (o *UsersUsersListParams) SetID(id *string) {
   608  	o.ID = id
   609  }
   610  
   611  // WithIDGt adds the iDGt to the users users list params
   612  func (o *UsersUsersListParams) WithIDGt(iDGt *string) *UsersUsersListParams {
   613  	o.SetIDGt(iDGt)
   614  	return o
   615  }
   616  
   617  // SetIDGt adds the idGt to the users users list params
   618  func (o *UsersUsersListParams) SetIDGt(iDGt *string) {
   619  	o.IDGt = iDGt
   620  }
   621  
   622  // WithIDGte adds the iDGte to the users users list params
   623  func (o *UsersUsersListParams) WithIDGte(iDGte *string) *UsersUsersListParams {
   624  	o.SetIDGte(iDGte)
   625  	return o
   626  }
   627  
   628  // SetIDGte adds the idGte to the users users list params
   629  func (o *UsersUsersListParams) SetIDGte(iDGte *string) {
   630  	o.IDGte = iDGte
   631  }
   632  
   633  // WithIDLt adds the iDLt to the users users list params
   634  func (o *UsersUsersListParams) WithIDLt(iDLt *string) *UsersUsersListParams {
   635  	o.SetIDLt(iDLt)
   636  	return o
   637  }
   638  
   639  // SetIDLt adds the idLt to the users users list params
   640  func (o *UsersUsersListParams) SetIDLt(iDLt *string) {
   641  	o.IDLt = iDLt
   642  }
   643  
   644  // WithIDLte adds the iDLte to the users users list params
   645  func (o *UsersUsersListParams) WithIDLte(iDLte *string) *UsersUsersListParams {
   646  	o.SetIDLte(iDLte)
   647  	return o
   648  }
   649  
   650  // SetIDLte adds the idLte to the users users list params
   651  func (o *UsersUsersListParams) SetIDLte(iDLte *string) {
   652  	o.IDLte = iDLte
   653  }
   654  
   655  // WithIDn adds the iDn to the users users list params
   656  func (o *UsersUsersListParams) WithIDn(iDn *string) *UsersUsersListParams {
   657  	o.SetIDn(iDn)
   658  	return o
   659  }
   660  
   661  // SetIDn adds the idN to the users users list params
   662  func (o *UsersUsersListParams) SetIDn(iDn *string) {
   663  	o.IDn = iDn
   664  }
   665  
   666  // WithIsActive adds the isActive to the users users list params
   667  func (o *UsersUsersListParams) WithIsActive(isActive *string) *UsersUsersListParams {
   668  	o.SetIsActive(isActive)
   669  	return o
   670  }
   671  
   672  // SetIsActive adds the isActive to the users users list params
   673  func (o *UsersUsersListParams) SetIsActive(isActive *string) {
   674  	o.IsActive = isActive
   675  }
   676  
   677  // WithIsStaff adds the isStaff to the users users list params
   678  func (o *UsersUsersListParams) WithIsStaff(isStaff *string) *UsersUsersListParams {
   679  	o.SetIsStaff(isStaff)
   680  	return o
   681  }
   682  
   683  // SetIsStaff adds the isStaff to the users users list params
   684  func (o *UsersUsersListParams) SetIsStaff(isStaff *string) {
   685  	o.IsStaff = isStaff
   686  }
   687  
   688  // WithLastName adds the lastName to the users users list params
   689  func (o *UsersUsersListParams) WithLastName(lastName *string) *UsersUsersListParams {
   690  	o.SetLastName(lastName)
   691  	return o
   692  }
   693  
   694  // SetLastName adds the lastName to the users users list params
   695  func (o *UsersUsersListParams) SetLastName(lastName *string) {
   696  	o.LastName = lastName
   697  }
   698  
   699  // WithLastNameEmpty adds the lastNameEmpty to the users users list params
   700  func (o *UsersUsersListParams) WithLastNameEmpty(lastNameEmpty *string) *UsersUsersListParams {
   701  	o.SetLastNameEmpty(lastNameEmpty)
   702  	return o
   703  }
   704  
   705  // SetLastNameEmpty adds the lastNameEmpty to the users users list params
   706  func (o *UsersUsersListParams) SetLastNameEmpty(lastNameEmpty *string) {
   707  	o.LastNameEmpty = lastNameEmpty
   708  }
   709  
   710  // WithLastNameIc adds the lastNameIc to the users users list params
   711  func (o *UsersUsersListParams) WithLastNameIc(lastNameIc *string) *UsersUsersListParams {
   712  	o.SetLastNameIc(lastNameIc)
   713  	return o
   714  }
   715  
   716  // SetLastNameIc adds the lastNameIc to the users users list params
   717  func (o *UsersUsersListParams) SetLastNameIc(lastNameIc *string) {
   718  	o.LastNameIc = lastNameIc
   719  }
   720  
   721  // WithLastNameIe adds the lastNameIe to the users users list params
   722  func (o *UsersUsersListParams) WithLastNameIe(lastNameIe *string) *UsersUsersListParams {
   723  	o.SetLastNameIe(lastNameIe)
   724  	return o
   725  }
   726  
   727  // SetLastNameIe adds the lastNameIe to the users users list params
   728  func (o *UsersUsersListParams) SetLastNameIe(lastNameIe *string) {
   729  	o.LastNameIe = lastNameIe
   730  }
   731  
   732  // WithLastNameIew adds the lastNameIew to the users users list params
   733  func (o *UsersUsersListParams) WithLastNameIew(lastNameIew *string) *UsersUsersListParams {
   734  	o.SetLastNameIew(lastNameIew)
   735  	return o
   736  }
   737  
   738  // SetLastNameIew adds the lastNameIew to the users users list params
   739  func (o *UsersUsersListParams) SetLastNameIew(lastNameIew *string) {
   740  	o.LastNameIew = lastNameIew
   741  }
   742  
   743  // WithLastNameIsw adds the lastNameIsw to the users users list params
   744  func (o *UsersUsersListParams) WithLastNameIsw(lastNameIsw *string) *UsersUsersListParams {
   745  	o.SetLastNameIsw(lastNameIsw)
   746  	return o
   747  }
   748  
   749  // SetLastNameIsw adds the lastNameIsw to the users users list params
   750  func (o *UsersUsersListParams) SetLastNameIsw(lastNameIsw *string) {
   751  	o.LastNameIsw = lastNameIsw
   752  }
   753  
   754  // WithLastNamen adds the lastNamen to the users users list params
   755  func (o *UsersUsersListParams) WithLastNamen(lastNamen *string) *UsersUsersListParams {
   756  	o.SetLastNamen(lastNamen)
   757  	return o
   758  }
   759  
   760  // SetLastNamen adds the lastNameN to the users users list params
   761  func (o *UsersUsersListParams) SetLastNamen(lastNamen *string) {
   762  	o.LastNamen = lastNamen
   763  }
   764  
   765  // WithLastNameNic adds the lastNameNic to the users users list params
   766  func (o *UsersUsersListParams) WithLastNameNic(lastNameNic *string) *UsersUsersListParams {
   767  	o.SetLastNameNic(lastNameNic)
   768  	return o
   769  }
   770  
   771  // SetLastNameNic adds the lastNameNic to the users users list params
   772  func (o *UsersUsersListParams) SetLastNameNic(lastNameNic *string) {
   773  	o.LastNameNic = lastNameNic
   774  }
   775  
   776  // WithLastNameNie adds the lastNameNie to the users users list params
   777  func (o *UsersUsersListParams) WithLastNameNie(lastNameNie *string) *UsersUsersListParams {
   778  	o.SetLastNameNie(lastNameNie)
   779  	return o
   780  }
   781  
   782  // SetLastNameNie adds the lastNameNie to the users users list params
   783  func (o *UsersUsersListParams) SetLastNameNie(lastNameNie *string) {
   784  	o.LastNameNie = lastNameNie
   785  }
   786  
   787  // WithLastNameNiew adds the lastNameNiew to the users users list params
   788  func (o *UsersUsersListParams) WithLastNameNiew(lastNameNiew *string) *UsersUsersListParams {
   789  	o.SetLastNameNiew(lastNameNiew)
   790  	return o
   791  }
   792  
   793  // SetLastNameNiew adds the lastNameNiew to the users users list params
   794  func (o *UsersUsersListParams) SetLastNameNiew(lastNameNiew *string) {
   795  	o.LastNameNiew = lastNameNiew
   796  }
   797  
   798  // WithLastNameNisw adds the lastNameNisw to the users users list params
   799  func (o *UsersUsersListParams) WithLastNameNisw(lastNameNisw *string) *UsersUsersListParams {
   800  	o.SetLastNameNisw(lastNameNisw)
   801  	return o
   802  }
   803  
   804  // SetLastNameNisw adds the lastNameNisw to the users users list params
   805  func (o *UsersUsersListParams) SetLastNameNisw(lastNameNisw *string) {
   806  	o.LastNameNisw = lastNameNisw
   807  }
   808  
   809  // WithLimit adds the limit to the users users list params
   810  func (o *UsersUsersListParams) WithLimit(limit *int64) *UsersUsersListParams {
   811  	o.SetLimit(limit)
   812  	return o
   813  }
   814  
   815  // SetLimit adds the limit to the users users list params
   816  func (o *UsersUsersListParams) SetLimit(limit *int64) {
   817  	o.Limit = limit
   818  }
   819  
   820  // WithOffset adds the offset to the users users list params
   821  func (o *UsersUsersListParams) WithOffset(offset *int64) *UsersUsersListParams {
   822  	o.SetOffset(offset)
   823  	return o
   824  }
   825  
   826  // SetOffset adds the offset to the users users list params
   827  func (o *UsersUsersListParams) SetOffset(offset *int64) {
   828  	o.Offset = offset
   829  }
   830  
   831  // WithQ adds the q to the users users list params
   832  func (o *UsersUsersListParams) WithQ(q *string) *UsersUsersListParams {
   833  	o.SetQ(q)
   834  	return o
   835  }
   836  
   837  // SetQ adds the q to the users users list params
   838  func (o *UsersUsersListParams) SetQ(q *string) {
   839  	o.Q = q
   840  }
   841  
   842  // WithUsername adds the username to the users users list params
   843  func (o *UsersUsersListParams) WithUsername(username *string) *UsersUsersListParams {
   844  	o.SetUsername(username)
   845  	return o
   846  }
   847  
   848  // SetUsername adds the username to the users users list params
   849  func (o *UsersUsersListParams) SetUsername(username *string) {
   850  	o.Username = username
   851  }
   852  
   853  // WithUsernameEmpty adds the usernameEmpty to the users users list params
   854  func (o *UsersUsersListParams) WithUsernameEmpty(usernameEmpty *string) *UsersUsersListParams {
   855  	o.SetUsernameEmpty(usernameEmpty)
   856  	return o
   857  }
   858  
   859  // SetUsernameEmpty adds the usernameEmpty to the users users list params
   860  func (o *UsersUsersListParams) SetUsernameEmpty(usernameEmpty *string) {
   861  	o.UsernameEmpty = usernameEmpty
   862  }
   863  
   864  // WithUsernameIc adds the usernameIc to the users users list params
   865  func (o *UsersUsersListParams) WithUsernameIc(usernameIc *string) *UsersUsersListParams {
   866  	o.SetUsernameIc(usernameIc)
   867  	return o
   868  }
   869  
   870  // SetUsernameIc adds the usernameIc to the users users list params
   871  func (o *UsersUsersListParams) SetUsernameIc(usernameIc *string) {
   872  	o.UsernameIc = usernameIc
   873  }
   874  
   875  // WithUsernameIe adds the usernameIe to the users users list params
   876  func (o *UsersUsersListParams) WithUsernameIe(usernameIe *string) *UsersUsersListParams {
   877  	o.SetUsernameIe(usernameIe)
   878  	return o
   879  }
   880  
   881  // SetUsernameIe adds the usernameIe to the users users list params
   882  func (o *UsersUsersListParams) SetUsernameIe(usernameIe *string) {
   883  	o.UsernameIe = usernameIe
   884  }
   885  
   886  // WithUsernameIew adds the usernameIew to the users users list params
   887  func (o *UsersUsersListParams) WithUsernameIew(usernameIew *string) *UsersUsersListParams {
   888  	o.SetUsernameIew(usernameIew)
   889  	return o
   890  }
   891  
   892  // SetUsernameIew adds the usernameIew to the users users list params
   893  func (o *UsersUsersListParams) SetUsernameIew(usernameIew *string) {
   894  	o.UsernameIew = usernameIew
   895  }
   896  
   897  // WithUsernameIsw adds the usernameIsw to the users users list params
   898  func (o *UsersUsersListParams) WithUsernameIsw(usernameIsw *string) *UsersUsersListParams {
   899  	o.SetUsernameIsw(usernameIsw)
   900  	return o
   901  }
   902  
   903  // SetUsernameIsw adds the usernameIsw to the users users list params
   904  func (o *UsersUsersListParams) SetUsernameIsw(usernameIsw *string) {
   905  	o.UsernameIsw = usernameIsw
   906  }
   907  
   908  // WithUsernamen adds the usernamen to the users users list params
   909  func (o *UsersUsersListParams) WithUsernamen(usernamen *string) *UsersUsersListParams {
   910  	o.SetUsernamen(usernamen)
   911  	return o
   912  }
   913  
   914  // SetUsernamen adds the usernameN to the users users list params
   915  func (o *UsersUsersListParams) SetUsernamen(usernamen *string) {
   916  	o.Usernamen = usernamen
   917  }
   918  
   919  // WithUsernameNic adds the usernameNic to the users users list params
   920  func (o *UsersUsersListParams) WithUsernameNic(usernameNic *string) *UsersUsersListParams {
   921  	o.SetUsernameNic(usernameNic)
   922  	return o
   923  }
   924  
   925  // SetUsernameNic adds the usernameNic to the users users list params
   926  func (o *UsersUsersListParams) SetUsernameNic(usernameNic *string) {
   927  	o.UsernameNic = usernameNic
   928  }
   929  
   930  // WithUsernameNie adds the usernameNie to the users users list params
   931  func (o *UsersUsersListParams) WithUsernameNie(usernameNie *string) *UsersUsersListParams {
   932  	o.SetUsernameNie(usernameNie)
   933  	return o
   934  }
   935  
   936  // SetUsernameNie adds the usernameNie to the users users list params
   937  func (o *UsersUsersListParams) SetUsernameNie(usernameNie *string) {
   938  	o.UsernameNie = usernameNie
   939  }
   940  
   941  // WithUsernameNiew adds the usernameNiew to the users users list params
   942  func (o *UsersUsersListParams) WithUsernameNiew(usernameNiew *string) *UsersUsersListParams {
   943  	o.SetUsernameNiew(usernameNiew)
   944  	return o
   945  }
   946  
   947  // SetUsernameNiew adds the usernameNiew to the users users list params
   948  func (o *UsersUsersListParams) SetUsernameNiew(usernameNiew *string) {
   949  	o.UsernameNiew = usernameNiew
   950  }
   951  
   952  // WithUsernameNisw adds the usernameNisw to the users users list params
   953  func (o *UsersUsersListParams) WithUsernameNisw(usernameNisw *string) *UsersUsersListParams {
   954  	o.SetUsernameNisw(usernameNisw)
   955  	return o
   956  }
   957  
   958  // SetUsernameNisw adds the usernameNisw to the users users list params
   959  func (o *UsersUsersListParams) SetUsernameNisw(usernameNisw *string) {
   960  	o.UsernameNisw = usernameNisw
   961  }
   962  
   963  // WriteToRequest writes these params to a swagger request
   964  func (o *UsersUsersListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
   965  
   966  	if err := r.SetTimeout(o.timeout); err != nil {
   967  		return err
   968  	}
   969  	var res []error
   970  
   971  	if o.Email != nil {
   972  
   973  		// query param email
   974  		var qrEmail string
   975  
   976  		if o.Email != nil {
   977  			qrEmail = *o.Email
   978  		}
   979  		qEmail := qrEmail
   980  		if qEmail != "" {
   981  
   982  			if err := r.SetQueryParam("email", qEmail); err != nil {
   983  				return err
   984  			}
   985  		}
   986  	}
   987  
   988  	if o.EmailEmpty != nil {
   989  
   990  		// query param email__empty
   991  		var qrEmailEmpty string
   992  
   993  		if o.EmailEmpty != nil {
   994  			qrEmailEmpty = *o.EmailEmpty
   995  		}
   996  		qEmailEmpty := qrEmailEmpty
   997  		if qEmailEmpty != "" {
   998  
   999  			if err := r.SetQueryParam("email__empty", qEmailEmpty); err != nil {
  1000  				return err
  1001  			}
  1002  		}
  1003  	}
  1004  
  1005  	if o.EmailIc != nil {
  1006  
  1007  		// query param email__ic
  1008  		var qrEmailIc string
  1009  
  1010  		if o.EmailIc != nil {
  1011  			qrEmailIc = *o.EmailIc
  1012  		}
  1013  		qEmailIc := qrEmailIc
  1014  		if qEmailIc != "" {
  1015  
  1016  			if err := r.SetQueryParam("email__ic", qEmailIc); err != nil {
  1017  				return err
  1018  			}
  1019  		}
  1020  	}
  1021  
  1022  	if o.EmailIe != nil {
  1023  
  1024  		// query param email__ie
  1025  		var qrEmailIe string
  1026  
  1027  		if o.EmailIe != nil {
  1028  			qrEmailIe = *o.EmailIe
  1029  		}
  1030  		qEmailIe := qrEmailIe
  1031  		if qEmailIe != "" {
  1032  
  1033  			if err := r.SetQueryParam("email__ie", qEmailIe); err != nil {
  1034  				return err
  1035  			}
  1036  		}
  1037  	}
  1038  
  1039  	if o.EmailIew != nil {
  1040  
  1041  		// query param email__iew
  1042  		var qrEmailIew string
  1043  
  1044  		if o.EmailIew != nil {
  1045  			qrEmailIew = *o.EmailIew
  1046  		}
  1047  		qEmailIew := qrEmailIew
  1048  		if qEmailIew != "" {
  1049  
  1050  			if err := r.SetQueryParam("email__iew", qEmailIew); err != nil {
  1051  				return err
  1052  			}
  1053  		}
  1054  	}
  1055  
  1056  	if o.EmailIsw != nil {
  1057  
  1058  		// query param email__isw
  1059  		var qrEmailIsw string
  1060  
  1061  		if o.EmailIsw != nil {
  1062  			qrEmailIsw = *o.EmailIsw
  1063  		}
  1064  		qEmailIsw := qrEmailIsw
  1065  		if qEmailIsw != "" {
  1066  
  1067  			if err := r.SetQueryParam("email__isw", qEmailIsw); err != nil {
  1068  				return err
  1069  			}
  1070  		}
  1071  	}
  1072  
  1073  	if o.Emailn != nil {
  1074  
  1075  		// query param email__n
  1076  		var qrEmailn string
  1077  
  1078  		if o.Emailn != nil {
  1079  			qrEmailn = *o.Emailn
  1080  		}
  1081  		qEmailn := qrEmailn
  1082  		if qEmailn != "" {
  1083  
  1084  			if err := r.SetQueryParam("email__n", qEmailn); err != nil {
  1085  				return err
  1086  			}
  1087  		}
  1088  	}
  1089  
  1090  	if o.EmailNic != nil {
  1091  
  1092  		// query param email__nic
  1093  		var qrEmailNic string
  1094  
  1095  		if o.EmailNic != nil {
  1096  			qrEmailNic = *o.EmailNic
  1097  		}
  1098  		qEmailNic := qrEmailNic
  1099  		if qEmailNic != "" {
  1100  
  1101  			if err := r.SetQueryParam("email__nic", qEmailNic); err != nil {
  1102  				return err
  1103  			}
  1104  		}
  1105  	}
  1106  
  1107  	if o.EmailNie != nil {
  1108  
  1109  		// query param email__nie
  1110  		var qrEmailNie string
  1111  
  1112  		if o.EmailNie != nil {
  1113  			qrEmailNie = *o.EmailNie
  1114  		}
  1115  		qEmailNie := qrEmailNie
  1116  		if qEmailNie != "" {
  1117  
  1118  			if err := r.SetQueryParam("email__nie", qEmailNie); err != nil {
  1119  				return err
  1120  			}
  1121  		}
  1122  	}
  1123  
  1124  	if o.EmailNiew != nil {
  1125  
  1126  		// query param email__niew
  1127  		var qrEmailNiew string
  1128  
  1129  		if o.EmailNiew != nil {
  1130  			qrEmailNiew = *o.EmailNiew
  1131  		}
  1132  		qEmailNiew := qrEmailNiew
  1133  		if qEmailNiew != "" {
  1134  
  1135  			if err := r.SetQueryParam("email__niew", qEmailNiew); err != nil {
  1136  				return err
  1137  			}
  1138  		}
  1139  	}
  1140  
  1141  	if o.EmailNisw != nil {
  1142  
  1143  		// query param email__nisw
  1144  		var qrEmailNisw string
  1145  
  1146  		if o.EmailNisw != nil {
  1147  			qrEmailNisw = *o.EmailNisw
  1148  		}
  1149  		qEmailNisw := qrEmailNisw
  1150  		if qEmailNisw != "" {
  1151  
  1152  			if err := r.SetQueryParam("email__nisw", qEmailNisw); err != nil {
  1153  				return err
  1154  			}
  1155  		}
  1156  	}
  1157  
  1158  	if o.FirstName != nil {
  1159  
  1160  		// query param first_name
  1161  		var qrFirstName string
  1162  
  1163  		if o.FirstName != nil {
  1164  			qrFirstName = *o.FirstName
  1165  		}
  1166  		qFirstName := qrFirstName
  1167  		if qFirstName != "" {
  1168  
  1169  			if err := r.SetQueryParam("first_name", qFirstName); err != nil {
  1170  				return err
  1171  			}
  1172  		}
  1173  	}
  1174  
  1175  	if o.FirstNameEmpty != nil {
  1176  
  1177  		// query param first_name__empty
  1178  		var qrFirstNameEmpty string
  1179  
  1180  		if o.FirstNameEmpty != nil {
  1181  			qrFirstNameEmpty = *o.FirstNameEmpty
  1182  		}
  1183  		qFirstNameEmpty := qrFirstNameEmpty
  1184  		if qFirstNameEmpty != "" {
  1185  
  1186  			if err := r.SetQueryParam("first_name__empty", qFirstNameEmpty); err != nil {
  1187  				return err
  1188  			}
  1189  		}
  1190  	}
  1191  
  1192  	if o.FirstNameIc != nil {
  1193  
  1194  		// query param first_name__ic
  1195  		var qrFirstNameIc string
  1196  
  1197  		if o.FirstNameIc != nil {
  1198  			qrFirstNameIc = *o.FirstNameIc
  1199  		}
  1200  		qFirstNameIc := qrFirstNameIc
  1201  		if qFirstNameIc != "" {
  1202  
  1203  			if err := r.SetQueryParam("first_name__ic", qFirstNameIc); err != nil {
  1204  				return err
  1205  			}
  1206  		}
  1207  	}
  1208  
  1209  	if o.FirstNameIe != nil {
  1210  
  1211  		// query param first_name__ie
  1212  		var qrFirstNameIe string
  1213  
  1214  		if o.FirstNameIe != nil {
  1215  			qrFirstNameIe = *o.FirstNameIe
  1216  		}
  1217  		qFirstNameIe := qrFirstNameIe
  1218  		if qFirstNameIe != "" {
  1219  
  1220  			if err := r.SetQueryParam("first_name__ie", qFirstNameIe); err != nil {
  1221  				return err
  1222  			}
  1223  		}
  1224  	}
  1225  
  1226  	if o.FirstNameIew != nil {
  1227  
  1228  		// query param first_name__iew
  1229  		var qrFirstNameIew string
  1230  
  1231  		if o.FirstNameIew != nil {
  1232  			qrFirstNameIew = *o.FirstNameIew
  1233  		}
  1234  		qFirstNameIew := qrFirstNameIew
  1235  		if qFirstNameIew != "" {
  1236  
  1237  			if err := r.SetQueryParam("first_name__iew", qFirstNameIew); err != nil {
  1238  				return err
  1239  			}
  1240  		}
  1241  	}
  1242  
  1243  	if o.FirstNameIsw != nil {
  1244  
  1245  		// query param first_name__isw
  1246  		var qrFirstNameIsw string
  1247  
  1248  		if o.FirstNameIsw != nil {
  1249  			qrFirstNameIsw = *o.FirstNameIsw
  1250  		}
  1251  		qFirstNameIsw := qrFirstNameIsw
  1252  		if qFirstNameIsw != "" {
  1253  
  1254  			if err := r.SetQueryParam("first_name__isw", qFirstNameIsw); err != nil {
  1255  				return err
  1256  			}
  1257  		}
  1258  	}
  1259  
  1260  	if o.FirstNamen != nil {
  1261  
  1262  		// query param first_name__n
  1263  		var qrFirstNamen string
  1264  
  1265  		if o.FirstNamen != nil {
  1266  			qrFirstNamen = *o.FirstNamen
  1267  		}
  1268  		qFirstNamen := qrFirstNamen
  1269  		if qFirstNamen != "" {
  1270  
  1271  			if err := r.SetQueryParam("first_name__n", qFirstNamen); err != nil {
  1272  				return err
  1273  			}
  1274  		}
  1275  	}
  1276  
  1277  	if o.FirstNameNic != nil {
  1278  
  1279  		// query param first_name__nic
  1280  		var qrFirstNameNic string
  1281  
  1282  		if o.FirstNameNic != nil {
  1283  			qrFirstNameNic = *o.FirstNameNic
  1284  		}
  1285  		qFirstNameNic := qrFirstNameNic
  1286  		if qFirstNameNic != "" {
  1287  
  1288  			if err := r.SetQueryParam("first_name__nic", qFirstNameNic); err != nil {
  1289  				return err
  1290  			}
  1291  		}
  1292  	}
  1293  
  1294  	if o.FirstNameNie != nil {
  1295  
  1296  		// query param first_name__nie
  1297  		var qrFirstNameNie string
  1298  
  1299  		if o.FirstNameNie != nil {
  1300  			qrFirstNameNie = *o.FirstNameNie
  1301  		}
  1302  		qFirstNameNie := qrFirstNameNie
  1303  		if qFirstNameNie != "" {
  1304  
  1305  			if err := r.SetQueryParam("first_name__nie", qFirstNameNie); err != nil {
  1306  				return err
  1307  			}
  1308  		}
  1309  	}
  1310  
  1311  	if o.FirstNameNiew != nil {
  1312  
  1313  		// query param first_name__niew
  1314  		var qrFirstNameNiew string
  1315  
  1316  		if o.FirstNameNiew != nil {
  1317  			qrFirstNameNiew = *o.FirstNameNiew
  1318  		}
  1319  		qFirstNameNiew := qrFirstNameNiew
  1320  		if qFirstNameNiew != "" {
  1321  
  1322  			if err := r.SetQueryParam("first_name__niew", qFirstNameNiew); err != nil {
  1323  				return err
  1324  			}
  1325  		}
  1326  	}
  1327  
  1328  	if o.FirstNameNisw != nil {
  1329  
  1330  		// query param first_name__nisw
  1331  		var qrFirstNameNisw string
  1332  
  1333  		if o.FirstNameNisw != nil {
  1334  			qrFirstNameNisw = *o.FirstNameNisw
  1335  		}
  1336  		qFirstNameNisw := qrFirstNameNisw
  1337  		if qFirstNameNisw != "" {
  1338  
  1339  			if err := r.SetQueryParam("first_name__nisw", qFirstNameNisw); err != nil {
  1340  				return err
  1341  			}
  1342  		}
  1343  	}
  1344  
  1345  	if o.Group != nil {
  1346  
  1347  		// query param group
  1348  		var qrGroup string
  1349  
  1350  		if o.Group != nil {
  1351  			qrGroup = *o.Group
  1352  		}
  1353  		qGroup := qrGroup
  1354  		if qGroup != "" {
  1355  
  1356  			if err := r.SetQueryParam("group", qGroup); err != nil {
  1357  				return err
  1358  			}
  1359  		}
  1360  	}
  1361  
  1362  	if o.Groupn != nil {
  1363  
  1364  		// query param group__n
  1365  		var qrGroupn string
  1366  
  1367  		if o.Groupn != nil {
  1368  			qrGroupn = *o.Groupn
  1369  		}
  1370  		qGroupn := qrGroupn
  1371  		if qGroupn != "" {
  1372  
  1373  			if err := r.SetQueryParam("group__n", qGroupn); err != nil {
  1374  				return err
  1375  			}
  1376  		}
  1377  	}
  1378  
  1379  	if o.GroupID != nil {
  1380  
  1381  		// query param group_id
  1382  		var qrGroupID string
  1383  
  1384  		if o.GroupID != nil {
  1385  			qrGroupID = *o.GroupID
  1386  		}
  1387  		qGroupID := qrGroupID
  1388  		if qGroupID != "" {
  1389  
  1390  			if err := r.SetQueryParam("group_id", qGroupID); err != nil {
  1391  				return err
  1392  			}
  1393  		}
  1394  	}
  1395  
  1396  	if o.GroupIDn != nil {
  1397  
  1398  		// query param group_id__n
  1399  		var qrGroupIDn string
  1400  
  1401  		if o.GroupIDn != nil {
  1402  			qrGroupIDn = *o.GroupIDn
  1403  		}
  1404  		qGroupIDn := qrGroupIDn
  1405  		if qGroupIDn != "" {
  1406  
  1407  			if err := r.SetQueryParam("group_id__n", qGroupIDn); err != nil {
  1408  				return err
  1409  			}
  1410  		}
  1411  	}
  1412  
  1413  	if o.ID != nil {
  1414  
  1415  		// query param id
  1416  		var qrID string
  1417  
  1418  		if o.ID != nil {
  1419  			qrID = *o.ID
  1420  		}
  1421  		qID := qrID
  1422  		if qID != "" {
  1423  
  1424  			if err := r.SetQueryParam("id", qID); err != nil {
  1425  				return err
  1426  			}
  1427  		}
  1428  	}
  1429  
  1430  	if o.IDGt != nil {
  1431  
  1432  		// query param id__gt
  1433  		var qrIDGt string
  1434  
  1435  		if o.IDGt != nil {
  1436  			qrIDGt = *o.IDGt
  1437  		}
  1438  		qIDGt := qrIDGt
  1439  		if qIDGt != "" {
  1440  
  1441  			if err := r.SetQueryParam("id__gt", qIDGt); err != nil {
  1442  				return err
  1443  			}
  1444  		}
  1445  	}
  1446  
  1447  	if o.IDGte != nil {
  1448  
  1449  		// query param id__gte
  1450  		var qrIDGte string
  1451  
  1452  		if o.IDGte != nil {
  1453  			qrIDGte = *o.IDGte
  1454  		}
  1455  		qIDGte := qrIDGte
  1456  		if qIDGte != "" {
  1457  
  1458  			if err := r.SetQueryParam("id__gte", qIDGte); err != nil {
  1459  				return err
  1460  			}
  1461  		}
  1462  	}
  1463  
  1464  	if o.IDLt != nil {
  1465  
  1466  		// query param id__lt
  1467  		var qrIDLt string
  1468  
  1469  		if o.IDLt != nil {
  1470  			qrIDLt = *o.IDLt
  1471  		}
  1472  		qIDLt := qrIDLt
  1473  		if qIDLt != "" {
  1474  
  1475  			if err := r.SetQueryParam("id__lt", qIDLt); err != nil {
  1476  				return err
  1477  			}
  1478  		}
  1479  	}
  1480  
  1481  	if o.IDLte != nil {
  1482  
  1483  		// query param id__lte
  1484  		var qrIDLte string
  1485  
  1486  		if o.IDLte != nil {
  1487  			qrIDLte = *o.IDLte
  1488  		}
  1489  		qIDLte := qrIDLte
  1490  		if qIDLte != "" {
  1491  
  1492  			if err := r.SetQueryParam("id__lte", qIDLte); err != nil {
  1493  				return err
  1494  			}
  1495  		}
  1496  	}
  1497  
  1498  	if o.IDn != nil {
  1499  
  1500  		// query param id__n
  1501  		var qrIDn string
  1502  
  1503  		if o.IDn != nil {
  1504  			qrIDn = *o.IDn
  1505  		}
  1506  		qIDn := qrIDn
  1507  		if qIDn != "" {
  1508  
  1509  			if err := r.SetQueryParam("id__n", qIDn); err != nil {
  1510  				return err
  1511  			}
  1512  		}
  1513  	}
  1514  
  1515  	if o.IsActive != nil {
  1516  
  1517  		// query param is_active
  1518  		var qrIsActive string
  1519  
  1520  		if o.IsActive != nil {
  1521  			qrIsActive = *o.IsActive
  1522  		}
  1523  		qIsActive := qrIsActive
  1524  		if qIsActive != "" {
  1525  
  1526  			if err := r.SetQueryParam("is_active", qIsActive); err != nil {
  1527  				return err
  1528  			}
  1529  		}
  1530  	}
  1531  
  1532  	if o.IsStaff != nil {
  1533  
  1534  		// query param is_staff
  1535  		var qrIsStaff string
  1536  
  1537  		if o.IsStaff != nil {
  1538  			qrIsStaff = *o.IsStaff
  1539  		}
  1540  		qIsStaff := qrIsStaff
  1541  		if qIsStaff != "" {
  1542  
  1543  			if err := r.SetQueryParam("is_staff", qIsStaff); err != nil {
  1544  				return err
  1545  			}
  1546  		}
  1547  	}
  1548  
  1549  	if o.LastName != nil {
  1550  
  1551  		// query param last_name
  1552  		var qrLastName string
  1553  
  1554  		if o.LastName != nil {
  1555  			qrLastName = *o.LastName
  1556  		}
  1557  		qLastName := qrLastName
  1558  		if qLastName != "" {
  1559  
  1560  			if err := r.SetQueryParam("last_name", qLastName); err != nil {
  1561  				return err
  1562  			}
  1563  		}
  1564  	}
  1565  
  1566  	if o.LastNameEmpty != nil {
  1567  
  1568  		// query param last_name__empty
  1569  		var qrLastNameEmpty string
  1570  
  1571  		if o.LastNameEmpty != nil {
  1572  			qrLastNameEmpty = *o.LastNameEmpty
  1573  		}
  1574  		qLastNameEmpty := qrLastNameEmpty
  1575  		if qLastNameEmpty != "" {
  1576  
  1577  			if err := r.SetQueryParam("last_name__empty", qLastNameEmpty); err != nil {
  1578  				return err
  1579  			}
  1580  		}
  1581  	}
  1582  
  1583  	if o.LastNameIc != nil {
  1584  
  1585  		// query param last_name__ic
  1586  		var qrLastNameIc string
  1587  
  1588  		if o.LastNameIc != nil {
  1589  			qrLastNameIc = *o.LastNameIc
  1590  		}
  1591  		qLastNameIc := qrLastNameIc
  1592  		if qLastNameIc != "" {
  1593  
  1594  			if err := r.SetQueryParam("last_name__ic", qLastNameIc); err != nil {
  1595  				return err
  1596  			}
  1597  		}
  1598  	}
  1599  
  1600  	if o.LastNameIe != nil {
  1601  
  1602  		// query param last_name__ie
  1603  		var qrLastNameIe string
  1604  
  1605  		if o.LastNameIe != nil {
  1606  			qrLastNameIe = *o.LastNameIe
  1607  		}
  1608  		qLastNameIe := qrLastNameIe
  1609  		if qLastNameIe != "" {
  1610  
  1611  			if err := r.SetQueryParam("last_name__ie", qLastNameIe); err != nil {
  1612  				return err
  1613  			}
  1614  		}
  1615  	}
  1616  
  1617  	if o.LastNameIew != nil {
  1618  
  1619  		// query param last_name__iew
  1620  		var qrLastNameIew string
  1621  
  1622  		if o.LastNameIew != nil {
  1623  			qrLastNameIew = *o.LastNameIew
  1624  		}
  1625  		qLastNameIew := qrLastNameIew
  1626  		if qLastNameIew != "" {
  1627  
  1628  			if err := r.SetQueryParam("last_name__iew", qLastNameIew); err != nil {
  1629  				return err
  1630  			}
  1631  		}
  1632  	}
  1633  
  1634  	if o.LastNameIsw != nil {
  1635  
  1636  		// query param last_name__isw
  1637  		var qrLastNameIsw string
  1638  
  1639  		if o.LastNameIsw != nil {
  1640  			qrLastNameIsw = *o.LastNameIsw
  1641  		}
  1642  		qLastNameIsw := qrLastNameIsw
  1643  		if qLastNameIsw != "" {
  1644  
  1645  			if err := r.SetQueryParam("last_name__isw", qLastNameIsw); err != nil {
  1646  				return err
  1647  			}
  1648  		}
  1649  	}
  1650  
  1651  	if o.LastNamen != nil {
  1652  
  1653  		// query param last_name__n
  1654  		var qrLastNamen string
  1655  
  1656  		if o.LastNamen != nil {
  1657  			qrLastNamen = *o.LastNamen
  1658  		}
  1659  		qLastNamen := qrLastNamen
  1660  		if qLastNamen != "" {
  1661  
  1662  			if err := r.SetQueryParam("last_name__n", qLastNamen); err != nil {
  1663  				return err
  1664  			}
  1665  		}
  1666  	}
  1667  
  1668  	if o.LastNameNic != nil {
  1669  
  1670  		// query param last_name__nic
  1671  		var qrLastNameNic string
  1672  
  1673  		if o.LastNameNic != nil {
  1674  			qrLastNameNic = *o.LastNameNic
  1675  		}
  1676  		qLastNameNic := qrLastNameNic
  1677  		if qLastNameNic != "" {
  1678  
  1679  			if err := r.SetQueryParam("last_name__nic", qLastNameNic); err != nil {
  1680  				return err
  1681  			}
  1682  		}
  1683  	}
  1684  
  1685  	if o.LastNameNie != nil {
  1686  
  1687  		// query param last_name__nie
  1688  		var qrLastNameNie string
  1689  
  1690  		if o.LastNameNie != nil {
  1691  			qrLastNameNie = *o.LastNameNie
  1692  		}
  1693  		qLastNameNie := qrLastNameNie
  1694  		if qLastNameNie != "" {
  1695  
  1696  			if err := r.SetQueryParam("last_name__nie", qLastNameNie); err != nil {
  1697  				return err
  1698  			}
  1699  		}
  1700  	}
  1701  
  1702  	if o.LastNameNiew != nil {
  1703  
  1704  		// query param last_name__niew
  1705  		var qrLastNameNiew string
  1706  
  1707  		if o.LastNameNiew != nil {
  1708  			qrLastNameNiew = *o.LastNameNiew
  1709  		}
  1710  		qLastNameNiew := qrLastNameNiew
  1711  		if qLastNameNiew != "" {
  1712  
  1713  			if err := r.SetQueryParam("last_name__niew", qLastNameNiew); err != nil {
  1714  				return err
  1715  			}
  1716  		}
  1717  	}
  1718  
  1719  	if o.LastNameNisw != nil {
  1720  
  1721  		// query param last_name__nisw
  1722  		var qrLastNameNisw string
  1723  
  1724  		if o.LastNameNisw != nil {
  1725  			qrLastNameNisw = *o.LastNameNisw
  1726  		}
  1727  		qLastNameNisw := qrLastNameNisw
  1728  		if qLastNameNisw != "" {
  1729  
  1730  			if err := r.SetQueryParam("last_name__nisw", qLastNameNisw); err != nil {
  1731  				return err
  1732  			}
  1733  		}
  1734  	}
  1735  
  1736  	if o.Limit != nil {
  1737  
  1738  		// query param limit
  1739  		var qrLimit int64
  1740  
  1741  		if o.Limit != nil {
  1742  			qrLimit = *o.Limit
  1743  		}
  1744  		qLimit := swag.FormatInt64(qrLimit)
  1745  		if qLimit != "" {
  1746  
  1747  			if err := r.SetQueryParam("limit", qLimit); err != nil {
  1748  				return err
  1749  			}
  1750  		}
  1751  	}
  1752  
  1753  	if o.Offset != nil {
  1754  
  1755  		// query param offset
  1756  		var qrOffset int64
  1757  
  1758  		if o.Offset != nil {
  1759  			qrOffset = *o.Offset
  1760  		}
  1761  		qOffset := swag.FormatInt64(qrOffset)
  1762  		if qOffset != "" {
  1763  
  1764  			if err := r.SetQueryParam("offset", qOffset); err != nil {
  1765  				return err
  1766  			}
  1767  		}
  1768  	}
  1769  
  1770  	if o.Q != nil {
  1771  
  1772  		// query param q
  1773  		var qrQ string
  1774  
  1775  		if o.Q != nil {
  1776  			qrQ = *o.Q
  1777  		}
  1778  		qQ := qrQ
  1779  		if qQ != "" {
  1780  
  1781  			if err := r.SetQueryParam("q", qQ); err != nil {
  1782  				return err
  1783  			}
  1784  		}
  1785  	}
  1786  
  1787  	if o.Username != nil {
  1788  
  1789  		// query param username
  1790  		var qrUsername string
  1791  
  1792  		if o.Username != nil {
  1793  			qrUsername = *o.Username
  1794  		}
  1795  		qUsername := qrUsername
  1796  		if qUsername != "" {
  1797  
  1798  			if err := r.SetQueryParam("username", qUsername); err != nil {
  1799  				return err
  1800  			}
  1801  		}
  1802  	}
  1803  
  1804  	if o.UsernameEmpty != nil {
  1805  
  1806  		// query param username__empty
  1807  		var qrUsernameEmpty string
  1808  
  1809  		if o.UsernameEmpty != nil {
  1810  			qrUsernameEmpty = *o.UsernameEmpty
  1811  		}
  1812  		qUsernameEmpty := qrUsernameEmpty
  1813  		if qUsernameEmpty != "" {
  1814  
  1815  			if err := r.SetQueryParam("username__empty", qUsernameEmpty); err != nil {
  1816  				return err
  1817  			}
  1818  		}
  1819  	}
  1820  
  1821  	if o.UsernameIc != nil {
  1822  
  1823  		// query param username__ic
  1824  		var qrUsernameIc string
  1825  
  1826  		if o.UsernameIc != nil {
  1827  			qrUsernameIc = *o.UsernameIc
  1828  		}
  1829  		qUsernameIc := qrUsernameIc
  1830  		if qUsernameIc != "" {
  1831  
  1832  			if err := r.SetQueryParam("username__ic", qUsernameIc); err != nil {
  1833  				return err
  1834  			}
  1835  		}
  1836  	}
  1837  
  1838  	if o.UsernameIe != nil {
  1839  
  1840  		// query param username__ie
  1841  		var qrUsernameIe string
  1842  
  1843  		if o.UsernameIe != nil {
  1844  			qrUsernameIe = *o.UsernameIe
  1845  		}
  1846  		qUsernameIe := qrUsernameIe
  1847  		if qUsernameIe != "" {
  1848  
  1849  			if err := r.SetQueryParam("username__ie", qUsernameIe); err != nil {
  1850  				return err
  1851  			}
  1852  		}
  1853  	}
  1854  
  1855  	if o.UsernameIew != nil {
  1856  
  1857  		// query param username__iew
  1858  		var qrUsernameIew string
  1859  
  1860  		if o.UsernameIew != nil {
  1861  			qrUsernameIew = *o.UsernameIew
  1862  		}
  1863  		qUsernameIew := qrUsernameIew
  1864  		if qUsernameIew != "" {
  1865  
  1866  			if err := r.SetQueryParam("username__iew", qUsernameIew); err != nil {
  1867  				return err
  1868  			}
  1869  		}
  1870  	}
  1871  
  1872  	if o.UsernameIsw != nil {
  1873  
  1874  		// query param username__isw
  1875  		var qrUsernameIsw string
  1876  
  1877  		if o.UsernameIsw != nil {
  1878  			qrUsernameIsw = *o.UsernameIsw
  1879  		}
  1880  		qUsernameIsw := qrUsernameIsw
  1881  		if qUsernameIsw != "" {
  1882  
  1883  			if err := r.SetQueryParam("username__isw", qUsernameIsw); err != nil {
  1884  				return err
  1885  			}
  1886  		}
  1887  	}
  1888  
  1889  	if o.Usernamen != nil {
  1890  
  1891  		// query param username__n
  1892  		var qrUsernamen string
  1893  
  1894  		if o.Usernamen != nil {
  1895  			qrUsernamen = *o.Usernamen
  1896  		}
  1897  		qUsernamen := qrUsernamen
  1898  		if qUsernamen != "" {
  1899  
  1900  			if err := r.SetQueryParam("username__n", qUsernamen); err != nil {
  1901  				return err
  1902  			}
  1903  		}
  1904  	}
  1905  
  1906  	if o.UsernameNic != nil {
  1907  
  1908  		// query param username__nic
  1909  		var qrUsernameNic string
  1910  
  1911  		if o.UsernameNic != nil {
  1912  			qrUsernameNic = *o.UsernameNic
  1913  		}
  1914  		qUsernameNic := qrUsernameNic
  1915  		if qUsernameNic != "" {
  1916  
  1917  			if err := r.SetQueryParam("username__nic", qUsernameNic); err != nil {
  1918  				return err
  1919  			}
  1920  		}
  1921  	}
  1922  
  1923  	if o.UsernameNie != nil {
  1924  
  1925  		// query param username__nie
  1926  		var qrUsernameNie string
  1927  
  1928  		if o.UsernameNie != nil {
  1929  			qrUsernameNie = *o.UsernameNie
  1930  		}
  1931  		qUsernameNie := qrUsernameNie
  1932  		if qUsernameNie != "" {
  1933  
  1934  			if err := r.SetQueryParam("username__nie", qUsernameNie); err != nil {
  1935  				return err
  1936  			}
  1937  		}
  1938  	}
  1939  
  1940  	if o.UsernameNiew != nil {
  1941  
  1942  		// query param username__niew
  1943  		var qrUsernameNiew string
  1944  
  1945  		if o.UsernameNiew != nil {
  1946  			qrUsernameNiew = *o.UsernameNiew
  1947  		}
  1948  		qUsernameNiew := qrUsernameNiew
  1949  		if qUsernameNiew != "" {
  1950  
  1951  			if err := r.SetQueryParam("username__niew", qUsernameNiew); err != nil {
  1952  				return err
  1953  			}
  1954  		}
  1955  	}
  1956  
  1957  	if o.UsernameNisw != nil {
  1958  
  1959  		// query param username__nisw
  1960  		var qrUsernameNisw string
  1961  
  1962  		if o.UsernameNisw != nil {
  1963  			qrUsernameNisw = *o.UsernameNisw
  1964  		}
  1965  		qUsernameNisw := qrUsernameNisw
  1966  		if qUsernameNisw != "" {
  1967  
  1968  			if err := r.SetQueryParam("username__nisw", qUsernameNisw); err != nil {
  1969  				return err
  1970  			}
  1971  		}
  1972  	}
  1973  
  1974  	if len(res) > 0 {
  1975  		return errors.CompositeValidationError(res...)
  1976  	}
  1977  	return nil
  1978  }