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

package sku_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/plan-manager/models"
)

// GetSkuOKCode is the HTTP code returned for type GetSkuOK
const GetSkuOKCode int = 200

/*GetSkuOK sku returned

swagger:response getSkuOK
*/
type GetSkuOK struct {

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

// NewGetSkuOK creates GetSkuOK with default headers values
func NewGetSkuOK() *GetSkuOK {

	return &GetSkuOK{}
}

// WithPayload adds the payload to the get sku o k response
func (o *GetSkuOK) WithPayload(payload *models.Sku) *GetSkuOK {
	o.Payload = payload
	return o
}

// SetPayload sets the payload to the get sku o k response
func (o *GetSkuOK) SetPayload(payload *models.Sku) {
	o.Payload = payload
}

// WriteResponse to the client
func (o *GetSkuOK) 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
		}
	}
}

// GetSkuNotFoundCode is the HTTP code returned for type GetSkuNotFound
const GetSkuNotFoundCode int = 404

/*GetSkuNotFound sku with skuid not found

swagger:response getSkuNotFound
*/
type GetSkuNotFound struct {

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

// NewGetSkuNotFound creates GetSkuNotFound with default headers values
func NewGetSkuNotFound() *GetSkuNotFound {

	return &GetSkuNotFound{}
}

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

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

// WriteResponse to the client
func (o *GetSkuNotFound) 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
		}
	}
}

// GetSkuInternalServerErrorCode is the HTTP code returned for type GetSkuInternalServerError
const GetSkuInternalServerErrorCode int = 500

/*GetSkuInternalServerError unexpected error

swagger:response getSkuInternalServerError
*/
type GetSkuInternalServerError struct {

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

// NewGetSkuInternalServerError creates GetSkuInternalServerError with default headers values
func NewGetSkuInternalServerError() *GetSkuInternalServerError {

	return &GetSkuInternalServerError{}
}

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

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

// WriteResponse to the client
func (o *GetSkuInternalServerError) 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
		}
	}
}
