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

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

// UpdateCycleOKCode is the HTTP code returned for type UpdateCycleOK
const UpdateCycleOKCode int = 200

/*UpdateCycleOK updated cycle

swagger:response updateCycleOK
*/
type UpdateCycleOK struct {

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

// NewUpdateCycleOK creates UpdateCycleOK with default headers values
func NewUpdateCycleOK() *UpdateCycleOK {

	return &UpdateCycleOK{}
}

// WithPayload adds the payload to the update cycle o k response
func (o *UpdateCycleOK) WithPayload(payload *models.Cycle) *UpdateCycleOK {
	o.Payload = payload
	return o
}

// SetPayload sets the payload to the update cycle o k response
func (o *UpdateCycleOK) SetPayload(payload *models.Cycle) {
	o.Payload = payload
}

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

// UpdateCycleNotFoundCode is the HTTP code returned for type UpdateCycleNotFound
const UpdateCycleNotFoundCode int = 404

/*UpdateCycleNotFound cycle with id not found

swagger:response updateCycleNotFound
*/
type UpdateCycleNotFound struct {

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

// NewUpdateCycleNotFound creates UpdateCycleNotFound with default headers values
func NewUpdateCycleNotFound() *UpdateCycleNotFound {

	return &UpdateCycleNotFound{}
}

// WithPayload adds the payload to the update cycle not found response
func (o *UpdateCycleNotFound) WithPayload(payload *models.ErrorResponse) *UpdateCycleNotFound {
	o.Payload = payload
	return o
}

// SetPayload sets the payload to the update cycle not found response
func (o *UpdateCycleNotFound) SetPayload(payload *models.ErrorResponse) {
	o.Payload = payload
}

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

// UpdateCycleInternalServerErrorCode is the HTTP code returned for type UpdateCycleInternalServerError
const UpdateCycleInternalServerErrorCode int = 500

/*UpdateCycleInternalServerError unexpected error

swagger:response updateCycleInternalServerError
*/
type UpdateCycleInternalServerError struct {

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

// NewUpdateCycleInternalServerError creates UpdateCycleInternalServerError with default headers values
func NewUpdateCycleInternalServerError() *UpdateCycleInternalServerError {

	return &UpdateCycleInternalServerError{}
}

// WithPayload adds the payload to the update cycle internal server error response
func (o *UpdateCycleInternalServerError) WithPayload(payload *models.ErrorResponse) *UpdateCycleInternalServerError {
	o.Payload = payload
	return o
}

// SetPayload sets the payload to the update cycle internal server error response
func (o *UpdateCycleInternalServerError) SetPayload(payload *models.ErrorResponse) {
	o.Payload = payload
}

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