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

package plan_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"
)

// GetPlanOKCode is the HTTP code returned for type GetPlanOK
const GetPlanOKCode int = 200

/*GetPlanOK plan returned

swagger:response getPlanOK
*/
type GetPlanOK struct {

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

// NewGetPlanOK creates GetPlanOK with default headers values
func NewGetPlanOK() *GetPlanOK {

	return &GetPlanOK{}
}

// WithPayload adds the payload to the get plan o k response
func (o *GetPlanOK) WithPayload(payload *models.Plan) *GetPlanOK {
	o.Payload = payload
	return o
}

// SetPayload sets the payload to the get plan o k response
func (o *GetPlanOK) SetPayload(payload *models.Plan) {
	o.Payload = payload
}

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

// GetPlanNotFoundCode is the HTTP code returned for type GetPlanNotFound
const GetPlanNotFoundCode int = 404

/*GetPlanNotFound plan with planid not found

swagger:response getPlanNotFound
*/
type GetPlanNotFound struct {

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

// NewGetPlanNotFound creates GetPlanNotFound with default headers values
func NewGetPlanNotFound() *GetPlanNotFound {

	return &GetPlanNotFound{}
}

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

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

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

// GetPlanInternalServerErrorCode is the HTTP code returned for type GetPlanInternalServerError
const GetPlanInternalServerErrorCode int = 500

/*GetPlanInternalServerError unexpected error

swagger:response getPlanInternalServerError
*/
type GetPlanInternalServerError struct {

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

// NewGetPlanInternalServerError creates GetPlanInternalServerError with default headers values
func NewGetPlanInternalServerError() *GetPlanInternalServerError {

	return &GetPlanInternalServerError{}
}

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

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

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