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

package product_management

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

import (
	"net/http"

	"github.com/go-openapi/runtime"

	"github.com/Cyclops-Labs/cyclops-4-hpc.git/services/customerdb/models"
)

// GetProductOKCode is the HTTP code returned for type GetProductOK
const GetProductOKCode int = 200

/*GetProductOK Product with the id given in the system returned

swagger:response getProductOK
*/
type GetProductOK struct {

	/*
	  In: Body
	*/
	Payload *models.Product `json:"body,omitempty"`
}

// NewGetProductOK creates GetProductOK with default headers values
func NewGetProductOK() *GetProductOK {

	return &GetProductOK{}
}

// WithPayload adds the payload to the get product o k response
func (o *GetProductOK) WithPayload(payload *models.Product) *GetProductOK {
	o.Payload = payload
	return o
}

// SetPayload sets the payload to the get product o k response
func (o *GetProductOK) SetPayload(payload *models.Product) {
	o.Payload = payload
}

// WriteResponse to the client
func (o *GetProductOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {

	rw.WriteHeader(200)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err) // let the recovery middleware deal with this
		}
	}
}

// GetProductNotFoundCode is the HTTP code returned for type GetProductNotFound
const GetProductNotFoundCode int = 404

/*GetProductNotFound The product with the given id wasn't found

swagger:response getProductNotFound
*/
type GetProductNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

// NewGetProductNotFound creates GetProductNotFound with default headers values
func NewGetProductNotFound() *GetProductNotFound {

	return &GetProductNotFound{}
}

// WithPayload adds the payload to the get product not found response
func (o *GetProductNotFound) WithPayload(payload *models.ErrorResponse) *GetProductNotFound {
	o.Payload = payload
	return o
}

// SetPayload sets the payload to the get product not found response
func (o *GetProductNotFound) SetPayload(payload *models.ErrorResponse) {
	o.Payload = payload
}

// WriteResponse to the client
func (o *GetProductNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {

	rw.WriteHeader(404)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err) // let the recovery middleware deal with this
		}
	}
}

// GetProductInternalServerErrorCode is the HTTP code returned for type GetProductInternalServerError
const GetProductInternalServerErrorCode int = 500

/*GetProductInternalServerError Something unexpected happend, error raised

swagger:response getProductInternalServerError
*/
type GetProductInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

// NewGetProductInternalServerError creates GetProductInternalServerError with default headers values
func NewGetProductInternalServerError() *GetProductInternalServerError {

	return &GetProductInternalServerError{}
}

// WithPayload adds the payload to the get product internal server error response
func (o *GetProductInternalServerError) WithPayload(payload *models.ErrorResponse) *GetProductInternalServerError {
	o.Payload = payload
	return o
}

// SetPayload sets the payload to the get product internal server error response
func (o *GetProductInternalServerError) SetPayload(payload *models.ErrorResponse) {
	o.Payload = payload
}

// WriteResponse to the client
func (o *GetProductInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {

	rw.WriteHeader(500)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err) // let the recovery middleware deal with this
		}
	}
}
