func (o *GetSpoeAgentDefault) SetPayload(payload *models.Error) {
	o.Payload = payload
}
SetPayload sets the payload to the get spoe agent default response
package spoe
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const GetSpoeAgentOKCode int = 200
type GetSpoeAgentOK struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *GetSpoeAgentOKBody `json:"body,omitempty"`
}
func NewGetSpoeAgentOK() *GetSpoeAgentOK {
	return &GetSpoeAgentOK{}
}
func (o *GetSpoeAgentOK) WithConfigurationVersion(configurationVersion string) *GetSpoeAgentOK {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetSpoeAgentOK) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetSpoeAgentOK) WithPayload(payload *GetSpoeAgentOKBody) *GetSpoeAgentOK {
	o.Payload = payload
	return o
}
func (o *GetSpoeAgentOK) SetPayload(payload *GetSpoeAgentOKBody) {
	o.Payload = payload
}
func (o *GetSpoeAgentOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	configurationVersion := o.ConfigurationVersion
	if configurationVersion != "" {
		rw.Header().Set("Configuration-Version", configurationVersion)
	}
	rw.WriteHeader(200)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const GetSpoeAgentNotFoundCode int = 404
type GetSpoeAgentNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetSpoeAgentNotFound() *GetSpoeAgentNotFound {
	return &GetSpoeAgentNotFound{}
}
func (o *GetSpoeAgentNotFound) WithConfigurationVersion(configurationVersion string) *GetSpoeAgentNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetSpoeAgentNotFound) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetSpoeAgentNotFound) WithPayload(payload *models.Error) *GetSpoeAgentNotFound {
	o.Payload = payload
	return o
}
func (o *GetSpoeAgentNotFound) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *GetSpoeAgentNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	configurationVersion := o.ConfigurationVersion
	if configurationVersion != "" {
		rw.Header().Set("Configuration-Version", configurationVersion)
	}
	rw.WriteHeader(404)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
type GetSpoeAgentDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetSpoeAgentDefault(code int) *GetSpoeAgentDefault {
	if code <= 0 {
		code = 500
	}
	return &GetSpoeAgentDefault{
		_statusCode: code,
	}
}
func (o *GetSpoeAgentDefault) WithStatusCode(code int) *GetSpoeAgentDefault {
	o._statusCode = code
	return o
}
func (o *GetSpoeAgentDefault) SetStatusCode(code int) {
	o._statusCode = code
}
func (o *GetSpoeAgentDefault) WithConfigurationVersion(configurationVersion string) *GetSpoeAgentDefault {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetSpoeAgentDefault) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetSpoeAgentDefault) WithPayload(payload *models.Error) *GetSpoeAgentDefault {
	o.Payload = payload
	return o
}