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

package operations

// 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/armadaproject/armada/internal/lookout/gen/models"
)

// GetJobSpecOKCode is the HTTP code returned for type GetJobSpecOK
const GetJobSpecOKCode int = 200

/*
GetJobSpecOK Returns raw Job spec

swagger:response getJobSpecOK
*/
type GetJobSpecOK struct {

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

// NewGetJobSpecOK creates GetJobSpecOK with default headers values
func NewGetJobSpecOK() *GetJobSpecOK {

	return &GetJobSpecOK{}
}

// WithPayload adds the payload to the get job spec o k response
func (o *GetJobSpecOK) WithPayload(payload *GetJobSpecOKBody) *GetJobSpecOK {
	o.Payload = payload
	return o
}

// SetPayload sets the payload to the get job spec o k response
func (o *GetJobSpecOK) SetPayload(payload *GetJobSpecOKBody) {
	o.Payload = payload
}

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

// GetJobSpecBadRequestCode is the HTTP code returned for type GetJobSpecBadRequest
const GetJobSpecBadRequestCode int = 400

/*
GetJobSpecBadRequest Error response

swagger:response getJobSpecBadRequest
*/
type GetJobSpecBadRequest struct {

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

// NewGetJobSpecBadRequest creates GetJobSpecBadRequest with default headers values
func NewGetJobSpecBadRequest() *GetJobSpecBadRequest {

	return &GetJobSpecBadRequest{}
}

// WithPayload adds the payload to the get job spec bad request response
func (o *GetJobSpecBadRequest) WithPayload(payload *models.Error) *GetJobSpecBadRequest {
	o.Payload = payload
	return o
}

// SetPayload sets the payload to the get job spec bad request response
func (o *GetJobSpecBadRequest) SetPayload(payload *models.Error) {
	o.Payload = payload
}

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

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

/*
GetJobSpecDefault Error response

swagger:response getJobSpecDefault
*/
type GetJobSpecDefault struct {
	_statusCode int

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

// NewGetJobSpecDefault creates GetJobSpecDefault with default headers values
func NewGetJobSpecDefault(code int) *GetJobSpecDefault {
	if code <= 0 {
		code = 500
	}

	return &GetJobSpecDefault{
		_statusCode: code,
	}
}

// WithStatusCode adds the status to the get job spec default response
func (o *GetJobSpecDefault) WithStatusCode(code int) *GetJobSpecDefault {
	o._statusCode = code
	return o
}

// SetStatusCode sets the status to the get job spec default response
func (o *GetJobSpecDefault) SetStatusCode(code int) {
	o._statusCode = code
}

// WithPayload adds the payload to the get job spec default response
func (o *GetJobSpecDefault) WithPayload(payload *models.Error) *GetJobSpecDefault {
	o.Payload = payload
	return o
}

// SetPayload sets the payload to the get job spec default response
func (o *GetJobSpecDefault) SetPayload(payload *models.Error) {
	o.Payload = payload
}

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

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