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

// Copyright Authors of Cilium
// SPDX-License-Identifier: Apache-2.0

package operator

// 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"
)

// GetHealthzOKCode is the HTTP code returned for type GetHealthzOK
const GetHealthzOKCode int = 200

/*
GetHealthzOK Cilium operator is healthy

swagger:response getHealthzOK
*/
type GetHealthzOK struct {

	/*
	  In: Body
	*/
	Payload string `json:"body,omitempty"`
}

// NewGetHealthzOK creates GetHealthzOK with default headers values
func NewGetHealthzOK() *GetHealthzOK {

	return &GetHealthzOK{}
}

// WithPayload adds the payload to the get healthz o k response
func (o *GetHealthzOK) WithPayload(payload string) *GetHealthzOK {
	o.Payload = payload
	return o
}

// SetPayload sets the payload to the get healthz o k response
func (o *GetHealthzOK) SetPayload(payload string) {
	o.Payload = payload
}

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

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

// GetHealthzInternalServerErrorCode is the HTTP code returned for type GetHealthzInternalServerError
const GetHealthzInternalServerErrorCode int = 500

/*
GetHealthzInternalServerError Cilium operator is not healthy

swagger:response getHealthzInternalServerError
*/
type GetHealthzInternalServerError struct {

	/*
	  In: Body
	*/
	Payload string `json:"body,omitempty"`
}

// NewGetHealthzInternalServerError creates GetHealthzInternalServerError with default headers values
func NewGetHealthzInternalServerError() *GetHealthzInternalServerError {

	return &GetHealthzInternalServerError{}
}

// WithPayload adds the payload to the get healthz internal server error response
func (o *GetHealthzInternalServerError) WithPayload(payload string) *GetHealthzInternalServerError {
	o.Payload = payload
	return o
}

// SetPayload sets the payload to the get healthz internal server error response
func (o *GetHealthzInternalServerError) SetPayload(payload string) {
	o.Payload = payload
}

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

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

// GetHealthzNotImplementedCode is the HTTP code returned for type GetHealthzNotImplemented
const GetHealthzNotImplementedCode int = 501

/*
GetHealthzNotImplemented Cilium operator health status not available

swagger:response getHealthzNotImplemented
*/
type GetHealthzNotImplemented struct {

	/*
	  In: Body
	*/
	Payload string `json:"body,omitempty"`
}

// NewGetHealthzNotImplemented creates GetHealthzNotImplemented with default headers values
func NewGetHealthzNotImplemented() *GetHealthzNotImplemented {

	return &GetHealthzNotImplemented{}
}

// WithPayload adds the payload to the get healthz not implemented response
func (o *GetHealthzNotImplemented) WithPayload(payload string) *GetHealthzNotImplemented {
	o.Payload = payload
	return o
}

// SetPayload sets the payload to the get healthz not implemented response
func (o *GetHealthzNotImplemented) SetPayload(payload string) {
	o.Payload = payload
}

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

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