// Code generated by go-swagger; DO NOT EDIT. package metadata // 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" "github.com/go-openapi/swag" ) // NewGetFrontendDetailParams creates a new GetFrontendDetailParams object, // with the default timeout for this client. // // Default values are not hydrated, since defaults are normally applied by the API server side. // // To enforce default values in parameter, use SetDefaults or WithDefaults. func NewGetFrontendDetailParams() *GetFrontendDetailParams { return &GetFrontendDetailParams{ timeout: cr.DefaultTimeout, } } // NewGetFrontendDetailParamsWithTimeout creates a new GetFrontendDetailParams object // with the ability to set a timeout on a request. func NewGetFrontendDetailParamsWithTimeout(timeout time.Duration) *GetFrontendDetailParams { return &GetFrontendDetailParams{ timeout: timeout, } } // NewGetFrontendDetailParamsWithContext creates a new GetFrontendDetailParams object // with the ability to set a context for a request. func NewGetFrontendDetailParamsWithContext(ctx context.Context) *GetFrontendDetailParams { return &GetFrontendDetailParams{ Context: ctx, } } // NewGetFrontendDetailParamsWithHTTPClient creates a new GetFrontendDetailParams object // with the ability to set a custom HTTPClient for a request. func NewGetFrontendDetailParamsWithHTTPClient(client *http.Client) *GetFrontendDetailParams { return &GetFrontendDetailParams{ HTTPClient: client, } } /* GetFrontendDetailParams contains all the parameters to send to the API endpoint for the get frontend detail operation. Typically these are written to a http.Request. */ type GetFrontendDetailParams struct { // FeID. FeID int64 timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the get frontend detail params (not the query body). // // All values with no default are reset to their zero value. func (o *GetFrontendDetailParams) WithDefaults() *GetFrontendDetailParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the get frontend detail params (not the query body). // // All values with no default are reset to their zero value. func (o *GetFrontendDetailParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the get frontend detail params func (o *GetFrontendDetailParams) WithTimeout(timeout time.Duration) *GetFrontendDetailParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the get frontend detail params func (o *GetFrontendDetailParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the get frontend detail params func (o *GetFrontendDetailParams) WithContext(ctx context.Context) *GetFrontendDetailParams { o.SetContext(ctx) return o } // SetContext adds the context to the get frontend detail params func (o *GetFrontendDetailParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the get frontend detail params func (o *GetFrontendDetailParams) WithHTTPClient(client *http.Client) *GetFrontendDetailParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the get frontend detail params func (o *GetFrontendDetailParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFeID adds the feID to the get frontend detail params func (o *GetFrontendDetailParams) WithFeID(feID int64) *GetFrontendDetailParams { o.SetFeID(feID) return o } // SetFeID adds the feId to the get frontend detail params func (o *GetFrontendDetailParams) SetFeID(feID int64) { o.FeID = feID } // WriteToRequest writes these params to a swagger request func (o *GetFrontendDetailParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // path param feId if err := r.SetPathParam("feId", swag.FormatInt64(o.FeID)); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }