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

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

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

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

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

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

	for the gateway service get relay gateway operation.

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

	/* RelayID.

	   Relay ID (4 byte HEX).
	*/
	RelayID string

	/* TenantID.

	   Tenant ID (UUID).
	*/
	TenantID string

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

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

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

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

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

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

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

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

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

// WithRelayID adds the relayID to the gateway service get relay gateway params
func (o *GatewayServiceGetRelayGatewayParams) WithRelayID(relayID string) *GatewayServiceGetRelayGatewayParams {
	o.SetRelayID(relayID)
	return o
}

// SetRelayID adds the relayId to the gateway service get relay gateway params
func (o *GatewayServiceGetRelayGatewayParams) SetRelayID(relayID string) {
	o.RelayID = relayID
}

// WithTenantID adds the tenantID to the gateway service get relay gateway params
func (o *GatewayServiceGetRelayGatewayParams) WithTenantID(tenantID string) *GatewayServiceGetRelayGatewayParams {
	o.SetTenantID(tenantID)
	return o
}

// SetTenantID adds the tenantId to the gateway service get relay gateway params
func (o *GatewayServiceGetRelayGatewayParams) SetTenantID(tenantID string) {
	o.TenantID = tenantID
}

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

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

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

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

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