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"
17 strfmt "github.com/go-openapi/strfmt"
20 // NewGetXappConfigListParams creates a new GetXappConfigListParams object
21 // with the default values initialized.
22 func NewGetXappConfigListParams() *GetXappConfigListParams {
24 return &GetXappConfigListParams{
26 timeout: cr.DefaultTimeout,
30 // NewGetXappConfigListParamsWithTimeout creates a new GetXappConfigListParams object
31 // with the default values initialized, and the ability to set a timeout on a request
32 func NewGetXappConfigListParamsWithTimeout(timeout time.Duration) *GetXappConfigListParams {
34 return &GetXappConfigListParams{
40 // NewGetXappConfigListParamsWithContext creates a new GetXappConfigListParams object
41 // with the default values initialized, and the ability to set a context for a request
42 func NewGetXappConfigListParamsWithContext(ctx context.Context) *GetXappConfigListParams {
44 return &GetXappConfigListParams{
50 // NewGetXappConfigListParamsWithHTTPClient creates a new GetXappConfigListParams object
51 // with the default values initialized, and the ability to set a custom HTTPClient for a request
52 func NewGetXappConfigListParamsWithHTTPClient(client *http.Client) *GetXappConfigListParams {
54 return &GetXappConfigListParams{
59 /*GetXappConfigListParams contains all the parameters to send to the API endpoint
60 for the get xapp config list operation typically these are written to a http.Request
62 type GetXappConfigListParams struct {
64 Context context.Context
65 HTTPClient *http.Client
68 // WithTimeout adds the timeout to the get xapp config list params
69 func (o *GetXappConfigListParams) WithTimeout(timeout time.Duration) *GetXappConfigListParams {
74 // SetTimeout adds the timeout to the get xapp config list params
75 func (o *GetXappConfigListParams) SetTimeout(timeout time.Duration) {
79 // WithContext adds the context to the get xapp config list params
80 func (o *GetXappConfigListParams) WithContext(ctx context.Context) *GetXappConfigListParams {
85 // SetContext adds the context to the get xapp config list params
86 func (o *GetXappConfigListParams) SetContext(ctx context.Context) {
90 // WithHTTPClient adds the HTTPClient to the get xapp config list params
91 func (o *GetXappConfigListParams) WithHTTPClient(client *http.Client) *GetXappConfigListParams {
92 o.SetHTTPClient(client)
96 // SetHTTPClient adds the HTTPClient to the get xapp config list params
97 func (o *GetXappConfigListParams) SetHTTPClient(client *http.Client) {
101 // WriteToRequest writes these params to a swagger request
102 func (o *GetXappConfigListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
104 if err := r.SetTimeout(o.timeout); err != nil {
110 return errors.CompositeValidationError(res...)