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

package models

// 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/IBM/FfDL/restapi/api_v1/restmodels"
)

// DeleteModelOKCode is the HTTP code returned for type DeleteModelOK
const DeleteModelOKCode int = 200

/*DeleteModelOK Model deleted successfully.

swagger:response deleteModelOK
*/
type DeleteModelOK struct {

	/*
	  In: Body
	*/
	Payload *restmodels.BasicModel `json:"body,omitempty"`
}

// NewDeleteModelOK creates DeleteModelOK with default headers values
func NewDeleteModelOK() *DeleteModelOK {
	return &DeleteModelOK{}
}

// WithPayload adds the payload to the delete model o k response
func (o *DeleteModelOK) WithPayload(payload *restmodels.BasicModel) *DeleteModelOK {
	o.Payload = payload
	return o
}

// SetPayload sets the payload to the delete model o k response
func (o *DeleteModelOK) SetPayload(payload *restmodels.BasicModel) {
	o.Payload = payload
}

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

// DeleteModelUnauthorizedCode is the HTTP code returned for type DeleteModelUnauthorized
const DeleteModelUnauthorizedCode int = 401

/*DeleteModelUnauthorized Unauthorized

swagger:response deleteModelUnauthorized
*/
type DeleteModelUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *restmodels.Error `json:"body,omitempty"`
}

// NewDeleteModelUnauthorized creates DeleteModelUnauthorized with default headers values
func NewDeleteModelUnauthorized() *DeleteModelUnauthorized {
	return &DeleteModelUnauthorized{}
}

// WithPayload adds the payload to the delete model unauthorized response
func (o *DeleteModelUnauthorized) WithPayload(payload *restmodels.Error) *DeleteModelUnauthorized {
	o.Payload = payload
	return o
}

// SetPayload sets the payload to the delete model unauthorized response
func (o *DeleteModelUnauthorized) SetPayload(payload *restmodels.Error) {
	o.Payload = payload
}

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

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

// DeleteModelNotFoundCode is the HTTP code returned for type DeleteModelNotFound
const DeleteModelNotFoundCode int = 404

/*DeleteModelNotFound The model cannot be found.

swagger:response deleteModelNotFound
*/
type DeleteModelNotFound struct {

	/*
	  In: Body
	*/
	Payload *restmodels.Error `json:"body,omitempty"`
}

// NewDeleteModelNotFound creates DeleteModelNotFound with default headers values
func NewDeleteModelNotFound() *DeleteModelNotFound {
	return &DeleteModelNotFound{}
}

// WithPayload adds the payload to the delete model not found response
func (o *DeleteModelNotFound) WithPayload(payload *restmodels.Error) *DeleteModelNotFound {
	o.Payload = payload
	return o
}

// SetPayload sets the payload to the delete model not found response
func (o *DeleteModelNotFound) SetPayload(payload *restmodels.Error) {
	o.Payload = payload
}

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