func NewCreateSpoeAgentDefault(code int) *CreateSpoeAgentDefault {
	if code <= 0 {
		code = 500
	}
	return &CreateSpoeAgentDefault{
		_statusCode: code,
	}
}
NewCreateSpoeAgentDefault creates CreateSpoeAgentDefault with default headers values
package spoe
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const CreateSpoeAgentCreatedCode int = 201
type CreateSpoeAgentCreated struct {
	Payload *models.SpoeAgent `json:"body,omitempty"`
}
func NewCreateSpoeAgentCreated() *CreateSpoeAgentCreated {
	return &CreateSpoeAgentCreated{}
}
func (o *CreateSpoeAgentCreated) WithPayload(payload *models.SpoeAgent) *CreateSpoeAgentCreated {
	o.Payload = payload
	return o
}
func (o *CreateSpoeAgentCreated) SetPayload(payload *models.SpoeAgent) {
	o.Payload = payload
}
func (o *CreateSpoeAgentCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.WriteHeader(201)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const CreateSpoeAgentBadRequestCode int = 400
type CreateSpoeAgentBadRequest struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewCreateSpoeAgentBadRequest() *CreateSpoeAgentBadRequest {
	return &CreateSpoeAgentBadRequest{}
}
func (o *CreateSpoeAgentBadRequest) WithConfigurationVersion(configurationVersion string) *CreateSpoeAgentBadRequest {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *CreateSpoeAgentBadRequest) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *CreateSpoeAgentBadRequest) WithPayload(payload *models.Error) *CreateSpoeAgentBadRequest {
	o.Payload = payload
	return o
}
func (o *CreateSpoeAgentBadRequest) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *CreateSpoeAgentBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	configurationVersion := o.ConfigurationVersion
	if configurationVersion != "" {
		rw.Header().Set("Configuration-Version", configurationVersion)
	}
	rw.WriteHeader(400)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const CreateSpoeAgentConflictCode int = 409
type CreateSpoeAgentConflict struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewCreateSpoeAgentConflict() *CreateSpoeAgentConflict {
	return &CreateSpoeAgentConflict{}
}
func (o *CreateSpoeAgentConflict) WithConfigurationVersion(configurationVersion string) *CreateSpoeAgentConflict {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *CreateSpoeAgentConflict) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *CreateSpoeAgentConflict) WithPayload(payload *models.Error) *CreateSpoeAgentConflict {
	o.Payload = payload
	return o
}
func (o *CreateSpoeAgentConflict) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *CreateSpoeAgentConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	configurationVersion := o.ConfigurationVersion
	if configurationVersion != "" {
		rw.Header().Set("Configuration-Version", configurationVersion)
	}
	rw.WriteHeader(409)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
type CreateSpoeAgentDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}