package routing

import (
	"fmt"
	"io"

	"github.com/go-openapi/runtime"
	"github.com/go-openapi/strfmt"

	"github.com/freman/genesysapi/models"
)

type GetRoutingQueueUsersReader struct {
	formats strfmt.Registry
}

func (o *GetRoutingQueueUsersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewGetRoutingQueueUsersOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewGetRoutingQueueUsersBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 401:
		result := NewGetRoutingQueueUsersUnauthorized()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 403:
		result := NewGetRoutingQueueUsersForbidden()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 404:
		result := NewGetRoutingQueueUsersNotFound()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 408:
		result := NewGetRoutingQueueUsersRequestTimeout()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 413:
		result := NewGetRoutingQueueUsersRequestEntityTooLarge()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 415:
		result := NewGetRoutingQueueUsersUnsupportedMediaType()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 429:
		result := NewGetRoutingQueueUsersTooManyRequests()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewGetRoutingQueueUsersInternalServerError()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 503:
		result := NewGetRoutingQueueUsersServiceUnavailable()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 504:
		result := NewGetRoutingQueueUsersGatewayTimeout()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result

	default:
		return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
	}
}

func NewGetRoutingQueueUsersOK() *GetRoutingQueueUsersOK {
	return &GetRoutingQueueUsersOK{}
}

type GetRoutingQueueUsersOK struct {
	Payload *models.QueueMemberEntityListing
}

func (o *GetRoutingQueueUsersOK) Error() string {
	return fmt.Sprintf("[GET /api/v2/routing/queues/{queueId}/users][%d] getRoutingQueueUsersOK  %+v", 200, o.Payload)
}

func (o *GetRoutingQueueUsersOK) GetPayload() *models.QueueMemberEntityListing {
	return o.Payload
}

func (o *GetRoutingQueueUsersOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.QueueMemberEntityListing)

	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

func NewGetRoutingQueueUsersBadRequest() *GetRoutingQueueUsersBadRequest {
	return &GetRoutingQueueUsersBadRequest{}
}

type GetRoutingQueueUsersBadRequest struct {
	Payload *models.ErrorBody
}

func (o *GetRoutingQueueUsersBadRequest) Error() string {
	return fmt.Sprintf("[GET /api/v2/routing/queues/{queueId}/users][%d] getRoutingQueueUsersBadRequest  %+v", 400, o.Payload)
}

func (o *GetRoutingQueueUsersBadRequest) GetPayload() *models.ErrorBody {
	return o.Payload
}

func (o *GetRoutingQueueUsersBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.ErrorBody)

	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

func NewGetRoutingQueueUsersUnauthorized() *GetRoutingQueueUsersUnauthorized {
	return &GetRoutingQueueUsersUnauthorized{}
}

type GetRoutingQueueUsersUnauthorized struct {
	Payload *models.ErrorBody
}

func (o *GetRoutingQueueUsersUnauthorized) Error() string {
	return fmt.Sprintf("[GET /api/v2/routing/queues/{queueId}/users][%d] getRoutingQueueUsersUnauthorized  %+v", 401, o.Payload)
}

func (o *GetRoutingQueueUsersUnauthorized) GetPayload() *models.ErrorBody {
	return o.Payload
}

func (o *GetRoutingQueueUsersUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.ErrorBody)

	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

func NewGetRoutingQueueUsersForbidden() *GetRoutingQueueUsersForbidden {
	return &GetRoutingQueueUsersForbidden{}
}

type GetRoutingQueueUsersForbidden struct {
	Payload *models.ErrorBody
}

func (o *GetRoutingQueueUsersForbidden) Error() string {
	return fmt.Sprintf("[GET /api/v2/routing/queues/{queueId}/users][%d] getRoutingQueueUsersForbidden  %+v", 403, o.Payload)
}

func (o *GetRoutingQueueUsersForbidden) GetPayload() *models.ErrorBody {
	return o.Payload
}

func (o *GetRoutingQueueUsersForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.ErrorBody)

	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

func NewGetRoutingQueueUsersNotFound() *GetRoutingQueueUsersNotFound {
	return &GetRoutingQueueUsersNotFound{}
}

type GetRoutingQueueUsersNotFound struct {
	Payload *models.ErrorBody
}

func (o *GetRoutingQueueUsersNotFound) Error() string {
	return fmt.Sprintf("[GET /api/v2/routing/queues/{queueId}/users][%d] getRoutingQueueUsersNotFound  %+v", 404, o.Payload)
}

func (o *GetRoutingQueueUsersNotFound) GetPayload() *models.ErrorBody {
	return o.Payload
}

func (o *GetRoutingQueueUsersNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.ErrorBody)

	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

func NewGetRoutingQueueUsersRequestTimeout() *GetRoutingQueueUsersRequestTimeout {
	return &GetRoutingQueueUsersRequestTimeout{}
}

type GetRoutingQueueUsersRequestTimeout struct {
	Payload *models.ErrorBody
}

func (o *GetRoutingQueueUsersRequestTimeout) Error() string {
	return fmt.Sprintf("[GET /api/v2/routing/queues/{queueId}/users][%d] getRoutingQueueUsersRequestTimeout  %+v", 408, o.Payload)
}

func (o *GetRoutingQueueUsersRequestTimeout) GetPayload() *models.ErrorBody {
	return o.Payload
}

func (o *GetRoutingQueueUsersRequestTimeout) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.ErrorBody)

	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

func NewGetRoutingQueueUsersRequestEntityTooLarge() *GetRoutingQueueUsersRequestEntityTooLarge {
	return &GetRoutingQueueUsersRequestEntityTooLarge{}
}

type GetRoutingQueueUsersRequestEntityTooLarge struct {
	Payload *models.ErrorBody
}

func (o *GetRoutingQueueUsersRequestEntityTooLarge) Error() string {
	return fmt.Sprintf("[GET /api/v2/routing/queues/{queueId}/users][%d] getRoutingQueueUsersRequestEntityTooLarge  %+v", 413, o.Payload)
}

func (o *GetRoutingQueueUsersRequestEntityTooLarge) GetPayload() *models.ErrorBody {
	return o.Payload
}

func (o *GetRoutingQueueUsersRequestEntityTooLarge) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.ErrorBody)

	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

func NewGetRoutingQueueUsersUnsupportedMediaType() *GetRoutingQueueUsersUnsupportedMediaType {
	return &GetRoutingQueueUsersUnsupportedMediaType{}
}

type GetRoutingQueueUsersUnsupportedMediaType struct {
	Payload *models.ErrorBody
}

func (o *GetRoutingQueueUsersUnsupportedMediaType) Error() string {
	return fmt.Sprintf("[GET /api/v2/routing/queues/{queueId}/users][%d] getRoutingQueueUsersUnsupportedMediaType  %+v", 415, o.Payload)
}

func (o *GetRoutingQueueUsersUnsupportedMediaType) GetPayload() *models.ErrorBody {
	return o.Payload
}

func (o *GetRoutingQueueUsersUnsupportedMediaType) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.ErrorBody)

	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

func NewGetRoutingQueueUsersTooManyRequests() *GetRoutingQueueUsersTooManyRequests {
	return &GetRoutingQueueUsersTooManyRequests{}
}

type GetRoutingQueueUsersTooManyRequests struct {
	Payload *models.ErrorBody
}

func (o *GetRoutingQueueUsersTooManyRequests) Error() string {
	return fmt.Sprintf("[GET /api/v2/routing/queues/{queueId}/users][%d] getRoutingQueueUsersTooManyRequests  %+v", 429, o.Payload)
}

func (o *GetRoutingQueueUsersTooManyRequests) GetPayload() *models.ErrorBody {
	return o.Payload
}

func (o *GetRoutingQueueUsersTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.ErrorBody)

	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

func NewGetRoutingQueueUsersInternalServerError() *GetRoutingQueueUsersInternalServerError {
	return &GetRoutingQueueUsersInternalServerError{}
}

type GetRoutingQueueUsersInternalServerError struct {
	Payload *models.ErrorBody
}

func (o *GetRoutingQueueUsersInternalServerError) Error() string {
	return fmt.Sprintf("[GET /api/v2/routing/queues/{queueId}/users][%d] getRoutingQueueUsersInternalServerError  %+v", 500, o.Payload)
}

func (o *GetRoutingQueueUsersInternalServerError) GetPayload() *models.ErrorBody {
	return o.Payload
}

func (o *GetRoutingQueueUsersInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.ErrorBody)

	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

func NewGetRoutingQueueUsersServiceUnavailable() *GetRoutingQueueUsersServiceUnavailable {
	return &GetRoutingQueueUsersServiceUnavailable{}
}

type GetRoutingQueueUsersServiceUnavailable struct {
	Payload *models.ErrorBody
}

func (o *GetRoutingQueueUsersServiceUnavailable) Error() string {
	return fmt.Sprintf("[GET /api/v2/routing/queues/{queueId}/users][%d] getRoutingQueueUsersServiceUnavailable  %+v", 503, o.Payload)
}

func (o *GetRoutingQueueUsersServiceUnavailable) GetPayload() *models.ErrorBody {
	return o.Payload
}

func (o *GetRoutingQueueUsersServiceUnavailable) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.ErrorBody)

	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

func NewGetRoutingQueueUsersGatewayTimeout() *GetRoutingQueueUsersGatewayTimeout {
	return &GetRoutingQueueUsersGatewayTimeout{}
}

type GetRoutingQueueUsersGatewayTimeout struct {
	Payload *models.ErrorBody
}

func (o *GetRoutingQueueUsersGatewayTimeout) Error() string {
	return fmt.Sprintf("[GET /api/v2/routing/queues/{queueId}/users][%d] getRoutingQueueUsersGatewayTimeout  %+v", 504, o.Payload)
}

func (o *GetRoutingQueueUsersGatewayTimeout) GetPayload() *models.ErrorBody {
	return o.Payload
}

func (o *GetRoutingQueueUsersGatewayTimeout) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.ErrorBody)

	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

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

package routing

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	"fmt"
	"io"

	"github.com/go-openapi/runtime"
	"github.com/go-openapi/strfmt"

	"github.com/freman/genesysapi/models"
)

// GetRoutingQueueUsersReader is a Reader for the GetRoutingQueueUsers structure.
type GetRoutingQueueUsersReader struct {
	formats strfmt.Registry
}

// ReadResponse reads a server response into the received o.
func (o *GetRoutingQueueUsersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewGetRoutingQueueUsersOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewGetRoutingQueueUsersBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 401:
		result := NewGetRoutingQueueUsersUnauthorized()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 403:
		result := NewGetRoutingQueueUsersForbidden()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 404:
		result := NewGetRoutingQueueUsersNotFound()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 408:
		result := NewGetRoutingQueueUsersRequestTimeout()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 413:
		result := NewGetRoutingQueueUsersRequestEntityTooLarge()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 415:
		result := NewGetRoutingQueueUsersUnsupportedMediaType()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 429:
		result := NewGetRoutingQueueUsersTooManyRequests()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewGetRoutingQueueUsersInternalServerError()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 503:
		result := NewGetRoutingQueueUsersServiceUnavailable()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 504:
		result := NewGetRoutingQueueUsersGatewayTimeout()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result

	default:
		return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
	}
}

// NewGetRoutingQueueUsersOK creates a GetRoutingQueueUsersOK with default headers values
func NewGetRoutingQueueUsersOK() *GetRoutingQueueUsersOK {
	return &GetRoutingQueueUsersOK{}
}

/*GetRoutingQueueUsersOK handles this case with default header values.

successful operation
*/
type GetRoutingQueueUsersOK struct {
	Payload *models.QueueMemberEntityListing
}

func (o *GetRoutingQueueUsersOK) Error() string {
	return fmt.Sprintf("[GET /api/v2/routing/queues/{queueId}/users][%d] getRoutingQueueUsersOK  %+v", 200, o.Payload)
}

func (o *GetRoutingQueueUsersOK) GetPayload() *models.QueueMemberEntityListing {
	return o.Payload
}

func (o *GetRoutingQueueUsersOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.QueueMemberEntityListing)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewGetRoutingQueueUsersBadRequest creates a GetRoutingQueueUsersBadRequest with default headers values
func NewGetRoutingQueueUsersBadRequest() *GetRoutingQueueUsersBadRequest {
	return &GetRoutingQueueUsersBadRequest{}
}

/*GetRoutingQueueUsersBadRequest handles this case with default header values.

The request could not be understood by the server due to malformed syntax.
*/
type GetRoutingQueueUsersBadRequest struct {
	Payload *models.ErrorBody
}

func (o *GetRoutingQueueUsersBadRequest) Error() string {
	return fmt.Sprintf("[GET /api/v2/routing/queues/{queueId}/users][%d] getRoutingQueueUsersBadRequest  %+v", 400, o.Payload)
}

func (o *GetRoutingQueueUsersBadRequest) GetPayload() *models.ErrorBody {
	return o.Payload
}

func (o *GetRoutingQueueUsersBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.ErrorBody)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewGetRoutingQueueUsersUnauthorized creates a GetRoutingQueueUsersUnauthorized with default headers values
func NewGetRoutingQueueUsersUnauthorized() *GetRoutingQueueUsersUnauthorized {
	return &GetRoutingQueueUsersUnauthorized{}
}

/*GetRoutingQueueUsersUnauthorized handles this case with default header values.

No authentication bearer token specified in authorization header.
*/
type GetRoutingQueueUsersUnauthorized struct {
	Payload *models.ErrorBody
}

func (o *GetRoutingQueueUsersUnauthorized) Error() string {
	return fmt.Sprintf("[GET /api/v2/routing/queues/{queueId}/users][%d] getRoutingQueueUsersUnauthorized  %+v", 401, o.Payload)
}

func (o *GetRoutingQueueUsersUnauthorized) GetPayload() *models.ErrorBody {
	return o.Payload
}

func (o *GetRoutingQueueUsersUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.ErrorBody)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewGetRoutingQueueUsersForbidden creates a GetRoutingQueueUsersForbidden with default headers values
func NewGetRoutingQueueUsersForbidden() *GetRoutingQueueUsersForbidden {
	return &GetRoutingQueueUsersForbidden{}
}

/*GetRoutingQueueUsersForbidden handles this case with default header values.

You are not authorized to perform the requested action.
*/
type GetRoutingQueueUsersForbidden struct {
	Payload *models.ErrorBody
}

func (o *GetRoutingQueueUsersForbidden) Error() string {
	return fmt.Sprintf("[GET /api/v2/routing/queues/{queueId}/users][%d] getRoutingQueueUsersForbidden  %+v", 403, o.Payload)
}

func (o *GetRoutingQueueUsersForbidden) GetPayload() *models.ErrorBody {
	return o.Payload
}

func (o *GetRoutingQueueUsersForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.ErrorBody)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewGetRoutingQueueUsersNotFound creates a GetRoutingQueueUsersNotFound with default headers values
func NewGetRoutingQueueUsersNotFound() *GetRoutingQueueUsersNotFound {
	return &GetRoutingQueueUsersNotFound{}
}

/*GetRoutingQueueUsersNotFound handles this case with default header values.

The requested resource was not found.
*/
type GetRoutingQueueUsersNotFound struct {
	Payload *models.ErrorBody
}

func (o *GetRoutingQueueUsersNotFound) Error() string {
	return fmt.Sprintf("[GET /api/v2/routing/queues/{queueId}/users][%d] getRoutingQueueUsersNotFound  %+v", 404, o.Payload)
}

func (o *GetRoutingQueueUsersNotFound) GetPayload() *models.ErrorBody {
	return o.Payload
}

func (o *GetRoutingQueueUsersNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.ErrorBody)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewGetRoutingQueueUsersRequestTimeout creates a GetRoutingQueueUsersRequestTimeout with default headers values
func NewGetRoutingQueueUsersRequestTimeout() *GetRoutingQueueUsersRequestTimeout {
	return &GetRoutingQueueUsersRequestTimeout{}
}

/*GetRoutingQueueUsersRequestTimeout handles this case with default header values.

The client did not produce a request within the server timeout limit. This can be caused by a slow network connection and/or large payloads.
*/
type GetRoutingQueueUsersRequestTimeout struct {
	Payload *models.ErrorBody
}

func (o *GetRoutingQueueUsersRequestTimeout) Error() string {
	return fmt.Sprintf("[GET /api/v2/routing/queues/{queueId}/users][%d] getRoutingQueueUsersRequestTimeout  %+v", 408, o.Payload)
}

func (o *GetRoutingQueueUsersRequestTimeout) GetPayload() *models.ErrorBody {
	return o.Payload
}

func (o *GetRoutingQueueUsersRequestTimeout) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.ErrorBody)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewGetRoutingQueueUsersRequestEntityTooLarge creates a GetRoutingQueueUsersRequestEntityTooLarge with default headers values
func NewGetRoutingQueueUsersRequestEntityTooLarge() *GetRoutingQueueUsersRequestEntityTooLarge {
	return &GetRoutingQueueUsersRequestEntityTooLarge{}
}

/*GetRoutingQueueUsersRequestEntityTooLarge handles this case with default header values.

The request is over the size limit. Content-Length: %s
*/
type GetRoutingQueueUsersRequestEntityTooLarge struct {
	Payload *models.ErrorBody
}

func (o *GetRoutingQueueUsersRequestEntityTooLarge) Error() string {
	return fmt.Sprintf("[GET /api/v2/routing/queues/{queueId}/users][%d] getRoutingQueueUsersRequestEntityTooLarge  %+v", 413, o.Payload)
}

func (o *GetRoutingQueueUsersRequestEntityTooLarge) GetPayload() *models.ErrorBody {
	return o.Payload
}

func (o *GetRoutingQueueUsersRequestEntityTooLarge) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.ErrorBody)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewGetRoutingQueueUsersUnsupportedMediaType creates a GetRoutingQueueUsersUnsupportedMediaType with default headers values
func NewGetRoutingQueueUsersUnsupportedMediaType() *GetRoutingQueueUsersUnsupportedMediaType {
	return &GetRoutingQueueUsersUnsupportedMediaType{}
}

/*GetRoutingQueueUsersUnsupportedMediaType handles this case with default header values.

Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.
*/
type GetRoutingQueueUsersUnsupportedMediaType struct {
	Payload *models.ErrorBody
}

func (o *GetRoutingQueueUsersUnsupportedMediaType) Error() string {
	return fmt.Sprintf("[GET /api/v2/routing/queues/{queueId}/users][%d] getRoutingQueueUsersUnsupportedMediaType  %+v", 415, o.Payload)
}

func (o *GetRoutingQueueUsersUnsupportedMediaType) GetPayload() *models.ErrorBody {
	return o.Payload
}

func (o *GetRoutingQueueUsersUnsupportedMediaType) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.ErrorBody)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewGetRoutingQueueUsersTooManyRequests creates a GetRoutingQueueUsersTooManyRequests with default headers values
func NewGetRoutingQueueUsersTooManyRequests() *GetRoutingQueueUsersTooManyRequests {
	return &GetRoutingQueueUsersTooManyRequests{}
}

/*GetRoutingQueueUsersTooManyRequests handles this case with default header values.

Rate limit exceeded the maximum. Retry the request in [%s] seconds
*/
type GetRoutingQueueUsersTooManyRequests struct {
	Payload *models.ErrorBody
}

func (o *GetRoutingQueueUsersTooManyRequests) Error() string {
	return fmt.Sprintf("[GET /api/v2/routing/queues/{queueId}/users][%d] getRoutingQueueUsersTooManyRequests  %+v", 429, o.Payload)
}

func (o *GetRoutingQueueUsersTooManyRequests) GetPayload() *models.ErrorBody {
	return o.Payload
}

func (o *GetRoutingQueueUsersTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.ErrorBody)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewGetRoutingQueueUsersInternalServerError creates a GetRoutingQueueUsersInternalServerError with default headers values
func NewGetRoutingQueueUsersInternalServerError() *GetRoutingQueueUsersInternalServerError {
	return &GetRoutingQueueUsersInternalServerError{}
}

/*GetRoutingQueueUsersInternalServerError handles this case with default header values.

The server encountered an unexpected condition which prevented it from fulfilling the request.
*/
type GetRoutingQueueUsersInternalServerError struct {
	Payload *models.ErrorBody
}

func (o *GetRoutingQueueUsersInternalServerError) Error() string {
	return fmt.Sprintf("[GET /api/v2/routing/queues/{queueId}/users][%d] getRoutingQueueUsersInternalServerError  %+v", 500, o.Payload)
}

func (o *GetRoutingQueueUsersInternalServerError) GetPayload() *models.ErrorBody {
	return o.Payload
}

func (o *GetRoutingQueueUsersInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.ErrorBody)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewGetRoutingQueueUsersServiceUnavailable creates a GetRoutingQueueUsersServiceUnavailable with default headers values
func NewGetRoutingQueueUsersServiceUnavailable() *GetRoutingQueueUsersServiceUnavailable {
	return &GetRoutingQueueUsersServiceUnavailable{}
}

/*GetRoutingQueueUsersServiceUnavailable handles this case with default header values.

Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).
*/
type GetRoutingQueueUsersServiceUnavailable struct {
	Payload *models.ErrorBody
}

func (o *GetRoutingQueueUsersServiceUnavailable) Error() string {
	return fmt.Sprintf("[GET /api/v2/routing/queues/{queueId}/users][%d] getRoutingQueueUsersServiceUnavailable  %+v", 503, o.Payload)
}

func (o *GetRoutingQueueUsersServiceUnavailable) GetPayload() *models.ErrorBody {
	return o.Payload
}

func (o *GetRoutingQueueUsersServiceUnavailable) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.ErrorBody)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewGetRoutingQueueUsersGatewayTimeout creates a GetRoutingQueueUsersGatewayTimeout with default headers values
func NewGetRoutingQueueUsersGatewayTimeout() *GetRoutingQueueUsersGatewayTimeout {
	return &GetRoutingQueueUsersGatewayTimeout{}
}

/*GetRoutingQueueUsersGatewayTimeout handles this case with default header values.

The request timed out.
*/
type GetRoutingQueueUsersGatewayTimeout struct {
	Payload *models.ErrorBody
}

func (o *GetRoutingQueueUsersGatewayTimeout) Error() string {
	return fmt.Sprintf("[GET /api/v2/routing/queues/{queueId}/users][%d] getRoutingQueueUsersGatewayTimeout  %+v", 504, o.Payload)
}

func (o *GetRoutingQueueUsersGatewayTimeout) GetPayload() *models.ErrorBody {
	return o.Payload
}

func (o *GetRoutingQueueUsersGatewayTimeout) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.ErrorBody)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}
