// Code generated by go-swagger; DO NOT EDIT. // All Code Copyright(c) 2018-2021 by Taxnexus, Inc. // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed package ingest // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" ) // NewGetRenderIngestsParams creates a new GetRenderIngestsParams object // with the default values initialized. func NewGetRenderIngestsParams() *GetRenderIngestsParams { var () return &GetRenderIngestsParams{ timeout: cr.DefaultTimeout, } } // NewGetRenderIngestsParamsWithTimeout creates a new GetRenderIngestsParams object // with the default values initialized, and the ability to set a timeout on a request func NewGetRenderIngestsParamsWithTimeout(timeout time.Duration) *GetRenderIngestsParams { var () return &GetRenderIngestsParams{ timeout: timeout, } } // NewGetRenderIngestsParamsWithContext creates a new GetRenderIngestsParams object // with the default values initialized, and the ability to set a context for a request func NewGetRenderIngestsParamsWithContext(ctx context.Context) *GetRenderIngestsParams { var () return &GetRenderIngestsParams{ Context: ctx, } } // NewGetRenderIngestsParamsWithHTTPClient creates a new GetRenderIngestsParams object // with the default values initialized, and the ability to set a custom HTTPClient for a request func NewGetRenderIngestsParamsWithHTTPClient(client *http.Client) *GetRenderIngestsParams { var () return &GetRenderIngestsParams{ HTTPClient: client, } } /*GetRenderIngestsParams contains all the parameters to send to the API endpoint for the get render ingests operation typically these are written to a http.Request */ type GetRenderIngestsParams struct { /*IngestID Taxnexus Id of the Invoice to be retrieved */ IngestID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithTimeout adds the timeout to the get render ingests params func (o *GetRenderIngestsParams) WithTimeout(timeout time.Duration) *GetRenderIngestsParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the get render ingests params func (o *GetRenderIngestsParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the get render ingests params func (o *GetRenderIngestsParams) WithContext(ctx context.Context) *GetRenderIngestsParams { o.SetContext(ctx) return o } // SetContext adds the context to the get render ingests params func (o *GetRenderIngestsParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the get render ingests params func (o *GetRenderIngestsParams) WithHTTPClient(client *http.Client) *GetRenderIngestsParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the get render ingests params func (o *GetRenderIngestsParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithIngestID adds the ingestID to the get render ingests params func (o *GetRenderIngestsParams) WithIngestID(ingestID string) *GetRenderIngestsParams { o.SetIngestID(ingestID) return o } // SetIngestID adds the ingestId to the get render ingests params func (o *GetRenderIngestsParams) SetIngestID(ingestID string) { o.IngestID = ingestID } // WriteToRequest writes these params to a swagger request func (o *GetRenderIngestsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // query param ingestId qrIngestID := o.IngestID qIngestID := qrIngestID if qIngestID != "" { if err := r.SetQueryParam("ingestId", qIngestID); err != nil { return err } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }