1 // Code generated by go-swagger; DO NOT EDIT.
5 // This file was generated by the swagger tool.
6 // Editing this file might prove futile when you re-run the swagger generate command
13 "github.com/go-openapi/errors"
14 "github.com/go-openapi/runtime"
15 cr "github.com/go-openapi/runtime/client"
16 "github.com/go-openapi/strfmt"
19 // NewGetXappConfigListParams creates a new GetXappConfigListParams object
20 // with the default values initialized.
21 func NewGetXappConfigListParams() *GetXappConfigListParams {
23 return &GetXappConfigListParams{
25 timeout: cr.DefaultTimeout,
29 // NewGetXappConfigListParamsWithTimeout creates a new GetXappConfigListParams object
30 // with the default values initialized, and the ability to set a timeout on a request
31 func NewGetXappConfigListParamsWithTimeout(timeout time.Duration) *GetXappConfigListParams {
33 return &GetXappConfigListParams{
39 // NewGetXappConfigListParamsWithContext creates a new GetXappConfigListParams object
40 // with the default values initialized, and the ability to set a context for a request
41 func NewGetXappConfigListParamsWithContext(ctx context.Context) *GetXappConfigListParams {
43 return &GetXappConfigListParams{
49 // NewGetXappConfigListParamsWithHTTPClient creates a new GetXappConfigListParams object
50 // with the default values initialized, and the ability to set a custom HTTPClient for a request
51 func NewGetXappConfigListParamsWithHTTPClient(client *http.Client) *GetXappConfigListParams {
53 return &GetXappConfigListParams{
58 /*GetXappConfigListParams contains all the parameters to send to the API endpoint
59 for the get xapp config list operation typically these are written to a http.Request
61 type GetXappConfigListParams struct {
63 Context context.Context
64 HTTPClient *http.Client
67 // WithTimeout adds the timeout to the get xapp config list params
68 func (o *GetXappConfigListParams) WithTimeout(timeout time.Duration) *GetXappConfigListParams {
73 // SetTimeout adds the timeout to the get xapp config list params
74 func (o *GetXappConfigListParams) SetTimeout(timeout time.Duration) {
78 // WithContext adds the context to the get xapp config list params
79 func (o *GetXappConfigListParams) WithContext(ctx context.Context) *GetXappConfigListParams {
84 // SetContext adds the context to the get xapp config list params
85 func (o *GetXappConfigListParams) SetContext(ctx context.Context) {
89 // WithHTTPClient adds the HTTPClient to the get xapp config list params
90 func (o *GetXappConfigListParams) WithHTTPClient(client *http.Client) *GetXappConfigListParams {
91 o.SetHTTPClient(client)
95 // SetHTTPClient adds the HTTPClient to the get xapp config list params
96 func (o *GetXappConfigListParams) SetHTTPClient(client *http.Client) {
100 // WriteToRequest writes these params to a swagger request
101 func (o *GetXappConfigListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
103 if err := r.SetTimeout(o.timeout); err != nil {
109 return errors.CompositeValidationError(res...)