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

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

// ExecSampleOKCode is the HTTP code returned for type ExecSampleOK
const ExecSampleOKCode int = 200

/*ExecSampleOK Sample task executed successfully

swagger:response execSampleOK
*/
type ExecSampleOK struct {
}

// NewExecSampleOK creates ExecSampleOK with default headers values
func NewExecSampleOK() *ExecSampleOK {

	return &ExecSampleOK{}
}

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

	rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses

	rw.WriteHeader(200)
}

// ExecSampleInternalServerErrorCode is the HTTP code returned for type ExecSampleInternalServerError
const ExecSampleInternalServerErrorCode int = 500

/*ExecSampleInternalServerError Something unexpected happend, error raised

swagger:response execSampleInternalServerError
*/
type ExecSampleInternalServerError struct {

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

// NewExecSampleInternalServerError creates ExecSampleInternalServerError with default headers values
func NewExecSampleInternalServerError() *ExecSampleInternalServerError {

	return &ExecSampleInternalServerError{}
}

// WithPayload adds the payload to the exec sample internal server error response
func (o *ExecSampleInternalServerError) WithPayload(payload *models.ErrorResponse) *ExecSampleInternalServerError {
	o.Payload = payload
	return o
}

// SetPayload sets the payload to the exec sample internal server error response
func (o *ExecSampleInternalServerError) SetPayload(payload *models.ErrorResponse) {
	o.Payload = payload
}

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