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

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

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

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

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

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

	for the gateway service delete relay gateway operation.

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

	/* RelayID.

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

	/* TenantID.

	   Tenant ID.
	*/
	TenantID string

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

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

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

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

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

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

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

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

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

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

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

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

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

// WriteToRequest writes these params to a swagger request
func (o *GatewayServiceDeleteRelayGatewayParams) 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
}
