// Code generated by go-swagger; DO NOT EDIT.

package gateway_service

// 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"
)

// NewGatewayServiceGetParams creates a new GatewayServiceGetParams 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 NewGatewayServiceGetParams() *GatewayServiceGetParams {
	return &GatewayServiceGetParams{
		timeout: cr.DefaultTimeout,
	}
}

// NewGatewayServiceGetParamsWithTimeout creates a new GatewayServiceGetParams object
// with the ability to set a timeout on a request.
func NewGatewayServiceGetParamsWithTimeout(timeout time.Duration) *GatewayServiceGetParams {
	return &GatewayServiceGetParams{
		timeout: timeout,
	}
}

// NewGatewayServiceGetParamsWithContext creates a new GatewayServiceGetParams object
// with the ability to set a context for a request.
func NewGatewayServiceGetParamsWithContext(ctx context.Context) *GatewayServiceGetParams {
	return &GatewayServiceGetParams{
		Context: ctx,
	}
}

// NewGatewayServiceGetParamsWithHTTPClient creates a new GatewayServiceGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewGatewayServiceGetParamsWithHTTPClient(client *http.Client) *GatewayServiceGetParams {
	return &GatewayServiceGetParams{
		HTTPClient: client,
	}
}

/*
GatewayServiceGetParams contains all the parameters to send to the API endpoint

	for the gateway service get operation.

	Typically these are written to a http.Request.
*/
type GatewayServiceGetParams struct {

	/* GatewayID.

	   Gateway ID (EUI64).
	*/
	GatewayID string

	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}

// WithDefaults hydrates default values in the gateway service get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *GatewayServiceGetParams) WithDefaults() *GatewayServiceGetParams {
	o.SetDefaults()
	return o
}

// SetDefaults hydrates default values in the gateway service get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *GatewayServiceGetParams) SetDefaults() {
	// no default values defined for this parameter
}

// WithTimeout adds the timeout to the gateway service get params
func (o *GatewayServiceGetParams) WithTimeout(timeout time.Duration) *GatewayServiceGetParams {
	o.SetTimeout(timeout)
	return o
}

// SetTimeout adds the timeout to the gateway service get params
func (o *GatewayServiceGetParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}

// WithContext adds the context to the gateway service get params
func (o *GatewayServiceGetParams) WithContext(ctx context.Context) *GatewayServiceGetParams {
	o.SetContext(ctx)
	return o
}

// SetContext adds the context to the gateway service get params
func (o *GatewayServiceGetParams) SetContext(ctx context.Context) {
	o.Context = ctx
}

// WithHTTPClient adds the HTTPClient to the gateway service get params
func (o *GatewayServiceGetParams) WithHTTPClient(client *http.Client) *GatewayServiceGetParams {
	o.SetHTTPClient(client)
	return o
}

// SetHTTPClient adds the HTTPClient to the gateway service get params
func (o *GatewayServiceGetParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}

// WithGatewayID adds the gatewayID to the gateway service get params
func (o *GatewayServiceGetParams) WithGatewayID(gatewayID string) *GatewayServiceGetParams {
	o.SetGatewayID(gatewayID)
	return o
}

// SetGatewayID adds the gatewayId to the gateway service get params
func (o *GatewayServiceGetParams) SetGatewayID(gatewayID string) {
	o.GatewayID = gatewayID
}

// WriteToRequest writes these params to a swagger request
func (o *GatewayServiceGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {

	if err := r.SetTimeout(o.timeout); err != nil {
		return err
	}
	var res []error

	// path param gatewayId
	if err := r.SetPathParam("gatewayId", o.GatewayID); err != nil {
		return err
	}

	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
