github.com/digitalocean/go-netbox@v0.0.2/netbox/client/dcim/dcim_power_outlet_templates_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 dcim
    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  // NewDcimPowerOutletTemplatesListParams creates a new DcimPowerOutletTemplatesListParams 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 NewDcimPowerOutletTemplatesListParams() *DcimPowerOutletTemplatesListParams {
    42  	return &DcimPowerOutletTemplatesListParams{
    43  		timeout: cr.DefaultTimeout,
    44  	}
    45  }
    46  
    47  // NewDcimPowerOutletTemplatesListParamsWithTimeout creates a new DcimPowerOutletTemplatesListParams object
    48  // with the ability to set a timeout on a request.
    49  func NewDcimPowerOutletTemplatesListParamsWithTimeout(timeout time.Duration) *DcimPowerOutletTemplatesListParams {
    50  	return &DcimPowerOutletTemplatesListParams{
    51  		timeout: timeout,
    52  	}
    53  }
    54  
    55  // NewDcimPowerOutletTemplatesListParamsWithContext creates a new DcimPowerOutletTemplatesListParams object
    56  // with the ability to set a context for a request.
    57  func NewDcimPowerOutletTemplatesListParamsWithContext(ctx context.Context) *DcimPowerOutletTemplatesListParams {
    58  	return &DcimPowerOutletTemplatesListParams{
    59  		Context: ctx,
    60  	}
    61  }
    62  
    63  // NewDcimPowerOutletTemplatesListParamsWithHTTPClient creates a new DcimPowerOutletTemplatesListParams object
    64  // with the ability to set a custom HTTPClient for a request.
    65  func NewDcimPowerOutletTemplatesListParamsWithHTTPClient(client *http.Client) *DcimPowerOutletTemplatesListParams {
    66  	return &DcimPowerOutletTemplatesListParams{
    67  		HTTPClient: client,
    68  	}
    69  }
    70  
    71  /* DcimPowerOutletTemplatesListParams contains all the parameters to send to the API endpoint
    72     for the dcim power outlet templates list operation.
    73  
    74     Typically these are written to a http.Request.
    75  */
    76  type DcimPowerOutletTemplatesListParams struct {
    77  
    78  	// Created.
    79  	Created *string
    80  
    81  	// CreatedGte.
    82  	CreatedGte *string
    83  
    84  	// CreatedLte.
    85  	CreatedLte *string
    86  
    87  	// DevicetypeID.
    88  	DevicetypeID *string
    89  
    90  	// DevicetypeIDn.
    91  	DevicetypeIDn *string
    92  
    93  	// FeedLeg.
    94  	FeedLeg *string
    95  
    96  	// FeedLegn.
    97  	FeedLegn *string
    98  
    99  	// ID.
   100  	ID *string
   101  
   102  	// IDGt.
   103  	IDGt *string
   104  
   105  	// IDGte.
   106  	IDGte *string
   107  
   108  	// IDLt.
   109  	IDLt *string
   110  
   111  	// IDLte.
   112  	IDLte *string
   113  
   114  	// IDn.
   115  	IDn *string
   116  
   117  	// LastUpdated.
   118  	LastUpdated *string
   119  
   120  	// LastUpdatedGte.
   121  	LastUpdatedGte *string
   122  
   123  	// LastUpdatedLte.
   124  	LastUpdatedLte *string
   125  
   126  	/* Limit.
   127  
   128  	   Number of results to return per page.
   129  	*/
   130  	Limit *int64
   131  
   132  	// Name.
   133  	Name *string
   134  
   135  	// NameEmpty.
   136  	NameEmpty *string
   137  
   138  	// NameIc.
   139  	NameIc *string
   140  
   141  	// NameIe.
   142  	NameIe *string
   143  
   144  	// NameIew.
   145  	NameIew *string
   146  
   147  	// NameIsw.
   148  	NameIsw *string
   149  
   150  	// Namen.
   151  	Namen *string
   152  
   153  	// NameNic.
   154  	NameNic *string
   155  
   156  	// NameNie.
   157  	NameNie *string
   158  
   159  	// NameNiew.
   160  	NameNiew *string
   161  
   162  	// NameNisw.
   163  	NameNisw *string
   164  
   165  	/* Offset.
   166  
   167  	   The initial index from which to return the results.
   168  	*/
   169  	Offset *int64
   170  
   171  	// Type.
   172  	Type *string
   173  
   174  	// Typen.
   175  	Typen *string
   176  
   177  	timeout    time.Duration
   178  	Context    context.Context
   179  	HTTPClient *http.Client
   180  }
   181  
   182  // WithDefaults hydrates default values in the dcim power outlet templates list params (not the query body).
   183  //
   184  // All values with no default are reset to their zero value.
   185  func (o *DcimPowerOutletTemplatesListParams) WithDefaults() *DcimPowerOutletTemplatesListParams {
   186  	o.SetDefaults()
   187  	return o
   188  }
   189  
   190  // SetDefaults hydrates default values in the dcim power outlet templates list params (not the query body).
   191  //
   192  // All values with no default are reset to their zero value.
   193  func (o *DcimPowerOutletTemplatesListParams) SetDefaults() {
   194  	// no default values defined for this parameter
   195  }
   196  
   197  // WithTimeout adds the timeout to the dcim power outlet templates list params
   198  func (o *DcimPowerOutletTemplatesListParams) WithTimeout(timeout time.Duration) *DcimPowerOutletTemplatesListParams {
   199  	o.SetTimeout(timeout)
   200  	return o
   201  }
   202  
   203  // SetTimeout adds the timeout to the dcim power outlet templates list params
   204  func (o *DcimPowerOutletTemplatesListParams) SetTimeout(timeout time.Duration) {
   205  	o.timeout = timeout
   206  }
   207  
   208  // WithContext adds the context to the dcim power outlet templates list params
   209  func (o *DcimPowerOutletTemplatesListParams) WithContext(ctx context.Context) *DcimPowerOutletTemplatesListParams {
   210  	o.SetContext(ctx)
   211  	return o
   212  }
   213  
   214  // SetContext adds the context to the dcim power outlet templates list params
   215  func (o *DcimPowerOutletTemplatesListParams) SetContext(ctx context.Context) {
   216  	o.Context = ctx
   217  }
   218  
   219  // WithHTTPClient adds the HTTPClient to the dcim power outlet templates list params
   220  func (o *DcimPowerOutletTemplatesListParams) WithHTTPClient(client *http.Client) *DcimPowerOutletTemplatesListParams {
   221  	o.SetHTTPClient(client)
   222  	return o
   223  }
   224  
   225  // SetHTTPClient adds the HTTPClient to the dcim power outlet templates list params
   226  func (o *DcimPowerOutletTemplatesListParams) SetHTTPClient(client *http.Client) {
   227  	o.HTTPClient = client
   228  }
   229  
   230  // WithCreated adds the created to the dcim power outlet templates list params
   231  func (o *DcimPowerOutletTemplatesListParams) WithCreated(created *string) *DcimPowerOutletTemplatesListParams {
   232  	o.SetCreated(created)
   233  	return o
   234  }
   235  
   236  // SetCreated adds the created to the dcim power outlet templates list params
   237  func (o *DcimPowerOutletTemplatesListParams) SetCreated(created *string) {
   238  	o.Created = created
   239  }
   240  
   241  // WithCreatedGte adds the createdGte to the dcim power outlet templates list params
   242  func (o *DcimPowerOutletTemplatesListParams) WithCreatedGte(createdGte *string) *DcimPowerOutletTemplatesListParams {
   243  	o.SetCreatedGte(createdGte)
   244  	return o
   245  }
   246  
   247  // SetCreatedGte adds the createdGte to the dcim power outlet templates list params
   248  func (o *DcimPowerOutletTemplatesListParams) SetCreatedGte(createdGte *string) {
   249  	o.CreatedGte = createdGte
   250  }
   251  
   252  // WithCreatedLte adds the createdLte to the dcim power outlet templates list params
   253  func (o *DcimPowerOutletTemplatesListParams) WithCreatedLte(createdLte *string) *DcimPowerOutletTemplatesListParams {
   254  	o.SetCreatedLte(createdLte)
   255  	return o
   256  }
   257  
   258  // SetCreatedLte adds the createdLte to the dcim power outlet templates list params
   259  func (o *DcimPowerOutletTemplatesListParams) SetCreatedLte(createdLte *string) {
   260  	o.CreatedLte = createdLte
   261  }
   262  
   263  // WithDevicetypeID adds the devicetypeID to the dcim power outlet templates list params
   264  func (o *DcimPowerOutletTemplatesListParams) WithDevicetypeID(devicetypeID *string) *DcimPowerOutletTemplatesListParams {
   265  	o.SetDevicetypeID(devicetypeID)
   266  	return o
   267  }
   268  
   269  // SetDevicetypeID adds the devicetypeId to the dcim power outlet templates list params
   270  func (o *DcimPowerOutletTemplatesListParams) SetDevicetypeID(devicetypeID *string) {
   271  	o.DevicetypeID = devicetypeID
   272  }
   273  
   274  // WithDevicetypeIDn adds the devicetypeIDn to the dcim power outlet templates list params
   275  func (o *DcimPowerOutletTemplatesListParams) WithDevicetypeIDn(devicetypeIDn *string) *DcimPowerOutletTemplatesListParams {
   276  	o.SetDevicetypeIDn(devicetypeIDn)
   277  	return o
   278  }
   279  
   280  // SetDevicetypeIDn adds the devicetypeIdN to the dcim power outlet templates list params
   281  func (o *DcimPowerOutletTemplatesListParams) SetDevicetypeIDn(devicetypeIDn *string) {
   282  	o.DevicetypeIDn = devicetypeIDn
   283  }
   284  
   285  // WithFeedLeg adds the feedLeg to the dcim power outlet templates list params
   286  func (o *DcimPowerOutletTemplatesListParams) WithFeedLeg(feedLeg *string) *DcimPowerOutletTemplatesListParams {
   287  	o.SetFeedLeg(feedLeg)
   288  	return o
   289  }
   290  
   291  // SetFeedLeg adds the feedLeg to the dcim power outlet templates list params
   292  func (o *DcimPowerOutletTemplatesListParams) SetFeedLeg(feedLeg *string) {
   293  	o.FeedLeg = feedLeg
   294  }
   295  
   296  // WithFeedLegn adds the feedLegn to the dcim power outlet templates list params
   297  func (o *DcimPowerOutletTemplatesListParams) WithFeedLegn(feedLegn *string) *DcimPowerOutletTemplatesListParams {
   298  	o.SetFeedLegn(feedLegn)
   299  	return o
   300  }
   301  
   302  // SetFeedLegn adds the feedLegN to the dcim power outlet templates list params
   303  func (o *DcimPowerOutletTemplatesListParams) SetFeedLegn(feedLegn *string) {
   304  	o.FeedLegn = feedLegn
   305  }
   306  
   307  // WithID adds the id to the dcim power outlet templates list params
   308  func (o *DcimPowerOutletTemplatesListParams) WithID(id *string) *DcimPowerOutletTemplatesListParams {
   309  	o.SetID(id)
   310  	return o
   311  }
   312  
   313  // SetID adds the id to the dcim power outlet templates list params
   314  func (o *DcimPowerOutletTemplatesListParams) SetID(id *string) {
   315  	o.ID = id
   316  }
   317  
   318  // WithIDGt adds the iDGt to the dcim power outlet templates list params
   319  func (o *DcimPowerOutletTemplatesListParams) WithIDGt(iDGt *string) *DcimPowerOutletTemplatesListParams {
   320  	o.SetIDGt(iDGt)
   321  	return o
   322  }
   323  
   324  // SetIDGt adds the idGt to the dcim power outlet templates list params
   325  func (o *DcimPowerOutletTemplatesListParams) SetIDGt(iDGt *string) {
   326  	o.IDGt = iDGt
   327  }
   328  
   329  // WithIDGte adds the iDGte to the dcim power outlet templates list params
   330  func (o *DcimPowerOutletTemplatesListParams) WithIDGte(iDGte *string) *DcimPowerOutletTemplatesListParams {
   331  	o.SetIDGte(iDGte)
   332  	return o
   333  }
   334  
   335  // SetIDGte adds the idGte to the dcim power outlet templates list params
   336  func (o *DcimPowerOutletTemplatesListParams) SetIDGte(iDGte *string) {
   337  	o.IDGte = iDGte
   338  }
   339  
   340  // WithIDLt adds the iDLt to the dcim power outlet templates list params
   341  func (o *DcimPowerOutletTemplatesListParams) WithIDLt(iDLt *string) *DcimPowerOutletTemplatesListParams {
   342  	o.SetIDLt(iDLt)
   343  	return o
   344  }
   345  
   346  // SetIDLt adds the idLt to the dcim power outlet templates list params
   347  func (o *DcimPowerOutletTemplatesListParams) SetIDLt(iDLt *string) {
   348  	o.IDLt = iDLt
   349  }
   350  
   351  // WithIDLte adds the iDLte to the dcim power outlet templates list params
   352  func (o *DcimPowerOutletTemplatesListParams) WithIDLte(iDLte *string) *DcimPowerOutletTemplatesListParams {
   353  	o.SetIDLte(iDLte)
   354  	return o
   355  }
   356  
   357  // SetIDLte adds the idLte to the dcim power outlet templates list params
   358  func (o *DcimPowerOutletTemplatesListParams) SetIDLte(iDLte *string) {
   359  	o.IDLte = iDLte
   360  }
   361  
   362  // WithIDn adds the iDn to the dcim power outlet templates list params
   363  func (o *DcimPowerOutletTemplatesListParams) WithIDn(iDn *string) *DcimPowerOutletTemplatesListParams {
   364  	o.SetIDn(iDn)
   365  	return o
   366  }
   367  
   368  // SetIDn adds the idN to the dcim power outlet templates list params
   369  func (o *DcimPowerOutletTemplatesListParams) SetIDn(iDn *string) {
   370  	o.IDn = iDn
   371  }
   372  
   373  // WithLastUpdated adds the lastUpdated to the dcim power outlet templates list params
   374  func (o *DcimPowerOutletTemplatesListParams) WithLastUpdated(lastUpdated *string) *DcimPowerOutletTemplatesListParams {
   375  	o.SetLastUpdated(lastUpdated)
   376  	return o
   377  }
   378  
   379  // SetLastUpdated adds the lastUpdated to the dcim power outlet templates list params
   380  func (o *DcimPowerOutletTemplatesListParams) SetLastUpdated(lastUpdated *string) {
   381  	o.LastUpdated = lastUpdated
   382  }
   383  
   384  // WithLastUpdatedGte adds the lastUpdatedGte to the dcim power outlet templates list params
   385  func (o *DcimPowerOutletTemplatesListParams) WithLastUpdatedGte(lastUpdatedGte *string) *DcimPowerOutletTemplatesListParams {
   386  	o.SetLastUpdatedGte(lastUpdatedGte)
   387  	return o
   388  }
   389  
   390  // SetLastUpdatedGte adds the lastUpdatedGte to the dcim power outlet templates list params
   391  func (o *DcimPowerOutletTemplatesListParams) SetLastUpdatedGte(lastUpdatedGte *string) {
   392  	o.LastUpdatedGte = lastUpdatedGte
   393  }
   394  
   395  // WithLastUpdatedLte adds the lastUpdatedLte to the dcim power outlet templates list params
   396  func (o *DcimPowerOutletTemplatesListParams) WithLastUpdatedLte(lastUpdatedLte *string) *DcimPowerOutletTemplatesListParams {
   397  	o.SetLastUpdatedLte(lastUpdatedLte)
   398  	return o
   399  }
   400  
   401  // SetLastUpdatedLte adds the lastUpdatedLte to the dcim power outlet templates list params
   402  func (o *DcimPowerOutletTemplatesListParams) SetLastUpdatedLte(lastUpdatedLte *string) {
   403  	o.LastUpdatedLte = lastUpdatedLte
   404  }
   405  
   406  // WithLimit adds the limit to the dcim power outlet templates list params
   407  func (o *DcimPowerOutletTemplatesListParams) WithLimit(limit *int64) *DcimPowerOutletTemplatesListParams {
   408  	o.SetLimit(limit)
   409  	return o
   410  }
   411  
   412  // SetLimit adds the limit to the dcim power outlet templates list params
   413  func (o *DcimPowerOutletTemplatesListParams) SetLimit(limit *int64) {
   414  	o.Limit = limit
   415  }
   416  
   417  // WithName adds the name to the dcim power outlet templates list params
   418  func (o *DcimPowerOutletTemplatesListParams) WithName(name *string) *DcimPowerOutletTemplatesListParams {
   419  	o.SetName(name)
   420  	return o
   421  }
   422  
   423  // SetName adds the name to the dcim power outlet templates list params
   424  func (o *DcimPowerOutletTemplatesListParams) SetName(name *string) {
   425  	o.Name = name
   426  }
   427  
   428  // WithNameEmpty adds the nameEmpty to the dcim power outlet templates list params
   429  func (o *DcimPowerOutletTemplatesListParams) WithNameEmpty(nameEmpty *string) *DcimPowerOutletTemplatesListParams {
   430  	o.SetNameEmpty(nameEmpty)
   431  	return o
   432  }
   433  
   434  // SetNameEmpty adds the nameEmpty to the dcim power outlet templates list params
   435  func (o *DcimPowerOutletTemplatesListParams) SetNameEmpty(nameEmpty *string) {
   436  	o.NameEmpty = nameEmpty
   437  }
   438  
   439  // WithNameIc adds the nameIc to the dcim power outlet templates list params
   440  func (o *DcimPowerOutletTemplatesListParams) WithNameIc(nameIc *string) *DcimPowerOutletTemplatesListParams {
   441  	o.SetNameIc(nameIc)
   442  	return o
   443  }
   444  
   445  // SetNameIc adds the nameIc to the dcim power outlet templates list params
   446  func (o *DcimPowerOutletTemplatesListParams) SetNameIc(nameIc *string) {
   447  	o.NameIc = nameIc
   448  }
   449  
   450  // WithNameIe adds the nameIe to the dcim power outlet templates list params
   451  func (o *DcimPowerOutletTemplatesListParams) WithNameIe(nameIe *string) *DcimPowerOutletTemplatesListParams {
   452  	o.SetNameIe(nameIe)
   453  	return o
   454  }
   455  
   456  // SetNameIe adds the nameIe to the dcim power outlet templates list params
   457  func (o *DcimPowerOutletTemplatesListParams) SetNameIe(nameIe *string) {
   458  	o.NameIe = nameIe
   459  }
   460  
   461  // WithNameIew adds the nameIew to the dcim power outlet templates list params
   462  func (o *DcimPowerOutletTemplatesListParams) WithNameIew(nameIew *string) *DcimPowerOutletTemplatesListParams {
   463  	o.SetNameIew(nameIew)
   464  	return o
   465  }
   466  
   467  // SetNameIew adds the nameIew to the dcim power outlet templates list params
   468  func (o *DcimPowerOutletTemplatesListParams) SetNameIew(nameIew *string) {
   469  	o.NameIew = nameIew
   470  }
   471  
   472  // WithNameIsw adds the nameIsw to the dcim power outlet templates list params
   473  func (o *DcimPowerOutletTemplatesListParams) WithNameIsw(nameIsw *string) *DcimPowerOutletTemplatesListParams {
   474  	o.SetNameIsw(nameIsw)
   475  	return o
   476  }
   477  
   478  // SetNameIsw adds the nameIsw to the dcim power outlet templates list params
   479  func (o *DcimPowerOutletTemplatesListParams) SetNameIsw(nameIsw *string) {
   480  	o.NameIsw = nameIsw
   481  }
   482  
   483  // WithNamen adds the namen to the dcim power outlet templates list params
   484  func (o *DcimPowerOutletTemplatesListParams) WithNamen(namen *string) *DcimPowerOutletTemplatesListParams {
   485  	o.SetNamen(namen)
   486  	return o
   487  }
   488  
   489  // SetNamen adds the nameN to the dcim power outlet templates list params
   490  func (o *DcimPowerOutletTemplatesListParams) SetNamen(namen *string) {
   491  	o.Namen = namen
   492  }
   493  
   494  // WithNameNic adds the nameNic to the dcim power outlet templates list params
   495  func (o *DcimPowerOutletTemplatesListParams) WithNameNic(nameNic *string) *DcimPowerOutletTemplatesListParams {
   496  	o.SetNameNic(nameNic)
   497  	return o
   498  }
   499  
   500  // SetNameNic adds the nameNic to the dcim power outlet templates list params
   501  func (o *DcimPowerOutletTemplatesListParams) SetNameNic(nameNic *string) {
   502  	o.NameNic = nameNic
   503  }
   504  
   505  // WithNameNie adds the nameNie to the dcim power outlet templates list params
   506  func (o *DcimPowerOutletTemplatesListParams) WithNameNie(nameNie *string) *DcimPowerOutletTemplatesListParams {
   507  	o.SetNameNie(nameNie)
   508  	return o
   509  }
   510  
   511  // SetNameNie adds the nameNie to the dcim power outlet templates list params
   512  func (o *DcimPowerOutletTemplatesListParams) SetNameNie(nameNie *string) {
   513  	o.NameNie = nameNie
   514  }
   515  
   516  // WithNameNiew adds the nameNiew to the dcim power outlet templates list params
   517  func (o *DcimPowerOutletTemplatesListParams) WithNameNiew(nameNiew *string) *DcimPowerOutletTemplatesListParams {
   518  	o.SetNameNiew(nameNiew)
   519  	return o
   520  }
   521  
   522  // SetNameNiew adds the nameNiew to the dcim power outlet templates list params
   523  func (o *DcimPowerOutletTemplatesListParams) SetNameNiew(nameNiew *string) {
   524  	o.NameNiew = nameNiew
   525  }
   526  
   527  // WithNameNisw adds the nameNisw to the dcim power outlet templates list params
   528  func (o *DcimPowerOutletTemplatesListParams) WithNameNisw(nameNisw *string) *DcimPowerOutletTemplatesListParams {
   529  	o.SetNameNisw(nameNisw)
   530  	return o
   531  }
   532  
   533  // SetNameNisw adds the nameNisw to the dcim power outlet templates list params
   534  func (o *DcimPowerOutletTemplatesListParams) SetNameNisw(nameNisw *string) {
   535  	o.NameNisw = nameNisw
   536  }
   537  
   538  // WithOffset adds the offset to the dcim power outlet templates list params
   539  func (o *DcimPowerOutletTemplatesListParams) WithOffset(offset *int64) *DcimPowerOutletTemplatesListParams {
   540  	o.SetOffset(offset)
   541  	return o
   542  }
   543  
   544  // SetOffset adds the offset to the dcim power outlet templates list params
   545  func (o *DcimPowerOutletTemplatesListParams) SetOffset(offset *int64) {
   546  	o.Offset = offset
   547  }
   548  
   549  // WithType adds the typeVar to the dcim power outlet templates list params
   550  func (o *DcimPowerOutletTemplatesListParams) WithType(typeVar *string) *DcimPowerOutletTemplatesListParams {
   551  	o.SetType(typeVar)
   552  	return o
   553  }
   554  
   555  // SetType adds the type to the dcim power outlet templates list params
   556  func (o *DcimPowerOutletTemplatesListParams) SetType(typeVar *string) {
   557  	o.Type = typeVar
   558  }
   559  
   560  // WithTypen adds the typen to the dcim power outlet templates list params
   561  func (o *DcimPowerOutletTemplatesListParams) WithTypen(typen *string) *DcimPowerOutletTemplatesListParams {
   562  	o.SetTypen(typen)
   563  	return o
   564  }
   565  
   566  // SetTypen adds the typeN to the dcim power outlet templates list params
   567  func (o *DcimPowerOutletTemplatesListParams) SetTypen(typen *string) {
   568  	o.Typen = typen
   569  }
   570  
   571  // WriteToRequest writes these params to a swagger request
   572  func (o *DcimPowerOutletTemplatesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
   573  
   574  	if err := r.SetTimeout(o.timeout); err != nil {
   575  		return err
   576  	}
   577  	var res []error
   578  
   579  	if o.Created != nil {
   580  
   581  		// query param created
   582  		var qrCreated string
   583  
   584  		if o.Created != nil {
   585  			qrCreated = *o.Created
   586  		}
   587  		qCreated := qrCreated
   588  		if qCreated != "" {
   589  
   590  			if err := r.SetQueryParam("created", qCreated); err != nil {
   591  				return err
   592  			}
   593  		}
   594  	}
   595  
   596  	if o.CreatedGte != nil {
   597  
   598  		// query param created__gte
   599  		var qrCreatedGte string
   600  
   601  		if o.CreatedGte != nil {
   602  			qrCreatedGte = *o.CreatedGte
   603  		}
   604  		qCreatedGte := qrCreatedGte
   605  		if qCreatedGte != "" {
   606  
   607  			if err := r.SetQueryParam("created__gte", qCreatedGte); err != nil {
   608  				return err
   609  			}
   610  		}
   611  	}
   612  
   613  	if o.CreatedLte != nil {
   614  
   615  		// query param created__lte
   616  		var qrCreatedLte string
   617  
   618  		if o.CreatedLte != nil {
   619  			qrCreatedLte = *o.CreatedLte
   620  		}
   621  		qCreatedLte := qrCreatedLte
   622  		if qCreatedLte != "" {
   623  
   624  			if err := r.SetQueryParam("created__lte", qCreatedLte); err != nil {
   625  				return err
   626  			}
   627  		}
   628  	}
   629  
   630  	if o.DevicetypeID != nil {
   631  
   632  		// query param devicetype_id
   633  		var qrDevicetypeID string
   634  
   635  		if o.DevicetypeID != nil {
   636  			qrDevicetypeID = *o.DevicetypeID
   637  		}
   638  		qDevicetypeID := qrDevicetypeID
   639  		if qDevicetypeID != "" {
   640  
   641  			if err := r.SetQueryParam("devicetype_id", qDevicetypeID); err != nil {
   642  				return err
   643  			}
   644  		}
   645  	}
   646  
   647  	if o.DevicetypeIDn != nil {
   648  
   649  		// query param devicetype_id__n
   650  		var qrDevicetypeIDn string
   651  
   652  		if o.DevicetypeIDn != nil {
   653  			qrDevicetypeIDn = *o.DevicetypeIDn
   654  		}
   655  		qDevicetypeIDn := qrDevicetypeIDn
   656  		if qDevicetypeIDn != "" {
   657  
   658  			if err := r.SetQueryParam("devicetype_id__n", qDevicetypeIDn); err != nil {
   659  				return err
   660  			}
   661  		}
   662  	}
   663  
   664  	if o.FeedLeg != nil {
   665  
   666  		// query param feed_leg
   667  		var qrFeedLeg string
   668  
   669  		if o.FeedLeg != nil {
   670  			qrFeedLeg = *o.FeedLeg
   671  		}
   672  		qFeedLeg := qrFeedLeg
   673  		if qFeedLeg != "" {
   674  
   675  			if err := r.SetQueryParam("feed_leg", qFeedLeg); err != nil {
   676  				return err
   677  			}
   678  		}
   679  	}
   680  
   681  	if o.FeedLegn != nil {
   682  
   683  		// query param feed_leg__n
   684  		var qrFeedLegn string
   685  
   686  		if o.FeedLegn != nil {
   687  			qrFeedLegn = *o.FeedLegn
   688  		}
   689  		qFeedLegn := qrFeedLegn
   690  		if qFeedLegn != "" {
   691  
   692  			if err := r.SetQueryParam("feed_leg__n", qFeedLegn); err != nil {
   693  				return err
   694  			}
   695  		}
   696  	}
   697  
   698  	if o.ID != nil {
   699  
   700  		// query param id
   701  		var qrID string
   702  
   703  		if o.ID != nil {
   704  			qrID = *o.ID
   705  		}
   706  		qID := qrID
   707  		if qID != "" {
   708  
   709  			if err := r.SetQueryParam("id", qID); err != nil {
   710  				return err
   711  			}
   712  		}
   713  	}
   714  
   715  	if o.IDGt != nil {
   716  
   717  		// query param id__gt
   718  		var qrIDGt string
   719  
   720  		if o.IDGt != nil {
   721  			qrIDGt = *o.IDGt
   722  		}
   723  		qIDGt := qrIDGt
   724  		if qIDGt != "" {
   725  
   726  			if err := r.SetQueryParam("id__gt", qIDGt); err != nil {
   727  				return err
   728  			}
   729  		}
   730  	}
   731  
   732  	if o.IDGte != nil {
   733  
   734  		// query param id__gte
   735  		var qrIDGte string
   736  
   737  		if o.IDGte != nil {
   738  			qrIDGte = *o.IDGte
   739  		}
   740  		qIDGte := qrIDGte
   741  		if qIDGte != "" {
   742  
   743  			if err := r.SetQueryParam("id__gte", qIDGte); err != nil {
   744  				return err
   745  			}
   746  		}
   747  	}
   748  
   749  	if o.IDLt != nil {
   750  
   751  		// query param id__lt
   752  		var qrIDLt string
   753  
   754  		if o.IDLt != nil {
   755  			qrIDLt = *o.IDLt
   756  		}
   757  		qIDLt := qrIDLt
   758  		if qIDLt != "" {
   759  
   760  			if err := r.SetQueryParam("id__lt", qIDLt); err != nil {
   761  				return err
   762  			}
   763  		}
   764  	}
   765  
   766  	if o.IDLte != nil {
   767  
   768  		// query param id__lte
   769  		var qrIDLte string
   770  
   771  		if o.IDLte != nil {
   772  			qrIDLte = *o.IDLte
   773  		}
   774  		qIDLte := qrIDLte
   775  		if qIDLte != "" {
   776  
   777  			if err := r.SetQueryParam("id__lte", qIDLte); err != nil {
   778  				return err
   779  			}
   780  		}
   781  	}
   782  
   783  	if o.IDn != nil {
   784  
   785  		// query param id__n
   786  		var qrIDn string
   787  
   788  		if o.IDn != nil {
   789  			qrIDn = *o.IDn
   790  		}
   791  		qIDn := qrIDn
   792  		if qIDn != "" {
   793  
   794  			if err := r.SetQueryParam("id__n", qIDn); err != nil {
   795  				return err
   796  			}
   797  		}
   798  	}
   799  
   800  	if o.LastUpdated != nil {
   801  
   802  		// query param last_updated
   803  		var qrLastUpdated string
   804  
   805  		if o.LastUpdated != nil {
   806  			qrLastUpdated = *o.LastUpdated
   807  		}
   808  		qLastUpdated := qrLastUpdated
   809  		if qLastUpdated != "" {
   810  
   811  			if err := r.SetQueryParam("last_updated", qLastUpdated); err != nil {
   812  				return err
   813  			}
   814  		}
   815  	}
   816  
   817  	if o.LastUpdatedGte != nil {
   818  
   819  		// query param last_updated__gte
   820  		var qrLastUpdatedGte string
   821  
   822  		if o.LastUpdatedGte != nil {
   823  			qrLastUpdatedGte = *o.LastUpdatedGte
   824  		}
   825  		qLastUpdatedGte := qrLastUpdatedGte
   826  		if qLastUpdatedGte != "" {
   827  
   828  			if err := r.SetQueryParam("last_updated__gte", qLastUpdatedGte); err != nil {
   829  				return err
   830  			}
   831  		}
   832  	}
   833  
   834  	if o.LastUpdatedLte != nil {
   835  
   836  		// query param last_updated__lte
   837  		var qrLastUpdatedLte string
   838  
   839  		if o.LastUpdatedLte != nil {
   840  			qrLastUpdatedLte = *o.LastUpdatedLte
   841  		}
   842  		qLastUpdatedLte := qrLastUpdatedLte
   843  		if qLastUpdatedLte != "" {
   844  
   845  			if err := r.SetQueryParam("last_updated__lte", qLastUpdatedLte); err != nil {
   846  				return err
   847  			}
   848  		}
   849  	}
   850  
   851  	if o.Limit != nil {
   852  
   853  		// query param limit
   854  		var qrLimit int64
   855  
   856  		if o.Limit != nil {
   857  			qrLimit = *o.Limit
   858  		}
   859  		qLimit := swag.FormatInt64(qrLimit)
   860  		if qLimit != "" {
   861  
   862  			if err := r.SetQueryParam("limit", qLimit); err != nil {
   863  				return err
   864  			}
   865  		}
   866  	}
   867  
   868  	if o.Name != nil {
   869  
   870  		// query param name
   871  		var qrName string
   872  
   873  		if o.Name != nil {
   874  			qrName = *o.Name
   875  		}
   876  		qName := qrName
   877  		if qName != "" {
   878  
   879  			if err := r.SetQueryParam("name", qName); err != nil {
   880  				return err
   881  			}
   882  		}
   883  	}
   884  
   885  	if o.NameEmpty != nil {
   886  
   887  		// query param name__empty
   888  		var qrNameEmpty string
   889  
   890  		if o.NameEmpty != nil {
   891  			qrNameEmpty = *o.NameEmpty
   892  		}
   893  		qNameEmpty := qrNameEmpty
   894  		if qNameEmpty != "" {
   895  
   896  			if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil {
   897  				return err
   898  			}
   899  		}
   900  	}
   901  
   902  	if o.NameIc != nil {
   903  
   904  		// query param name__ic
   905  		var qrNameIc string
   906  
   907  		if o.NameIc != nil {
   908  			qrNameIc = *o.NameIc
   909  		}
   910  		qNameIc := qrNameIc
   911  		if qNameIc != "" {
   912  
   913  			if err := r.SetQueryParam("name__ic", qNameIc); err != nil {
   914  				return err
   915  			}
   916  		}
   917  	}
   918  
   919  	if o.NameIe != nil {
   920  
   921  		// query param name__ie
   922  		var qrNameIe string
   923  
   924  		if o.NameIe != nil {
   925  			qrNameIe = *o.NameIe
   926  		}
   927  		qNameIe := qrNameIe
   928  		if qNameIe != "" {
   929  
   930  			if err := r.SetQueryParam("name__ie", qNameIe); err != nil {
   931  				return err
   932  			}
   933  		}
   934  	}
   935  
   936  	if o.NameIew != nil {
   937  
   938  		// query param name__iew
   939  		var qrNameIew string
   940  
   941  		if o.NameIew != nil {
   942  			qrNameIew = *o.NameIew
   943  		}
   944  		qNameIew := qrNameIew
   945  		if qNameIew != "" {
   946  
   947  			if err := r.SetQueryParam("name__iew", qNameIew); err != nil {
   948  				return err
   949  			}
   950  		}
   951  	}
   952  
   953  	if o.NameIsw != nil {
   954  
   955  		// query param name__isw
   956  		var qrNameIsw string
   957  
   958  		if o.NameIsw != nil {
   959  			qrNameIsw = *o.NameIsw
   960  		}
   961  		qNameIsw := qrNameIsw
   962  		if qNameIsw != "" {
   963  
   964  			if err := r.SetQueryParam("name__isw", qNameIsw); err != nil {
   965  				return err
   966  			}
   967  		}
   968  	}
   969  
   970  	if o.Namen != nil {
   971  
   972  		// query param name__n
   973  		var qrNamen string
   974  
   975  		if o.Namen != nil {
   976  			qrNamen = *o.Namen
   977  		}
   978  		qNamen := qrNamen
   979  		if qNamen != "" {
   980  
   981  			if err := r.SetQueryParam("name__n", qNamen); err != nil {
   982  				return err
   983  			}
   984  		}
   985  	}
   986  
   987  	if o.NameNic != nil {
   988  
   989  		// query param name__nic
   990  		var qrNameNic string
   991  
   992  		if o.NameNic != nil {
   993  			qrNameNic = *o.NameNic
   994  		}
   995  		qNameNic := qrNameNic
   996  		if qNameNic != "" {
   997  
   998  			if err := r.SetQueryParam("name__nic", qNameNic); err != nil {
   999  				return err
  1000  			}
  1001  		}
  1002  	}
  1003  
  1004  	if o.NameNie != nil {
  1005  
  1006  		// query param name__nie
  1007  		var qrNameNie string
  1008  
  1009  		if o.NameNie != nil {
  1010  			qrNameNie = *o.NameNie
  1011  		}
  1012  		qNameNie := qrNameNie
  1013  		if qNameNie != "" {
  1014  
  1015  			if err := r.SetQueryParam("name__nie", qNameNie); err != nil {
  1016  				return err
  1017  			}
  1018  		}
  1019  	}
  1020  
  1021  	if o.NameNiew != nil {
  1022  
  1023  		// query param name__niew
  1024  		var qrNameNiew string
  1025  
  1026  		if o.NameNiew != nil {
  1027  			qrNameNiew = *o.NameNiew
  1028  		}
  1029  		qNameNiew := qrNameNiew
  1030  		if qNameNiew != "" {
  1031  
  1032  			if err := r.SetQueryParam("name__niew", qNameNiew); err != nil {
  1033  				return err
  1034  			}
  1035  		}
  1036  	}
  1037  
  1038  	if o.NameNisw != nil {
  1039  
  1040  		// query param name__nisw
  1041  		var qrNameNisw string
  1042  
  1043  		if o.NameNisw != nil {
  1044  			qrNameNisw = *o.NameNisw
  1045  		}
  1046  		qNameNisw := qrNameNisw
  1047  		if qNameNisw != "" {
  1048  
  1049  			if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil {
  1050  				return err
  1051  			}
  1052  		}
  1053  	}
  1054  
  1055  	if o.Offset != nil {
  1056  
  1057  		// query param offset
  1058  		var qrOffset int64
  1059  
  1060  		if o.Offset != nil {
  1061  			qrOffset = *o.Offset
  1062  		}
  1063  		qOffset := swag.FormatInt64(qrOffset)
  1064  		if qOffset != "" {
  1065  
  1066  			if err := r.SetQueryParam("offset", qOffset); err != nil {
  1067  				return err
  1068  			}
  1069  		}
  1070  	}
  1071  
  1072  	if o.Type != nil {
  1073  
  1074  		// query param type
  1075  		var qrType string
  1076  
  1077  		if o.Type != nil {
  1078  			qrType = *o.Type
  1079  		}
  1080  		qType := qrType
  1081  		if qType != "" {
  1082  
  1083  			if err := r.SetQueryParam("type", qType); err != nil {
  1084  				return err
  1085  			}
  1086  		}
  1087  	}
  1088  
  1089  	if o.Typen != nil {
  1090  
  1091  		// query param type__n
  1092  		var qrTypen string
  1093  
  1094  		if o.Typen != nil {
  1095  			qrTypen = *o.Typen
  1096  		}
  1097  		qTypen := qrTypen
  1098  		if qTypen != "" {
  1099  
  1100  			if err := r.SetQueryParam("type__n", qTypen); err != nil {
  1101  				return err
  1102  			}
  1103  		}
  1104  	}
  1105  
  1106  	if len(res) > 0 {
  1107  		return errors.CompositeValidationError(res...)
  1108  	}
  1109  	return nil
  1110  }