func (o *CreateSpoeDefault) SetStatusCode(code int) {
	o._statusCode = code
}
SetStatusCode sets the status to the create spoe default response
package spoe
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const CreateSpoeCreatedCode int = 201
type CreateSpoeCreated struct {
	Payload string `json:"body,omitempty"`
}
func NewCreateSpoeCreated() *CreateSpoeCreated {
	return &CreateSpoeCreated{}
}
func (o *CreateSpoeCreated) WithPayload(payload string) *CreateSpoeCreated {
	o.Payload = payload
	return o
}
func (o *CreateSpoeCreated) SetPayload(payload string) {
	o.Payload = payload
}
func (o *CreateSpoeCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.WriteHeader(201)
	payload := o.Payload
	if err := producer.Produce(rw, payload); err != nil {
		panic(err)  
	}
}
const CreateSpoeBadRequestCode int = 400
type CreateSpoeBadRequest struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewCreateSpoeBadRequest() *CreateSpoeBadRequest {
	return &CreateSpoeBadRequest{}
}
func (o *CreateSpoeBadRequest) WithConfigurationVersion(configurationVersion string) *CreateSpoeBadRequest {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *CreateSpoeBadRequest) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *CreateSpoeBadRequest) WithPayload(payload *models.Error) *CreateSpoeBadRequest {
	o.Payload = payload
	return o
}
func (o *CreateSpoeBadRequest) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *CreateSpoeBadRequest) 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 CreateSpoeConflictCode int = 409
type CreateSpoeConflict struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewCreateSpoeConflict() *CreateSpoeConflict {
	return &CreateSpoeConflict{}
}
func (o *CreateSpoeConflict) WithConfigurationVersion(configurationVersion string) *CreateSpoeConflict {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *CreateSpoeConflict) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *CreateSpoeConflict) WithPayload(payload *models.Error) *CreateSpoeConflict {
	o.Payload = payload
	return o
}
func (o *CreateSpoeConflict) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *CreateSpoeConflict) 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 CreateSpoeDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewCreateSpoeDefault(code int) *CreateSpoeDefault {
	if code <= 0 {
		code = 500
	}
	return &CreateSpoeDefault{
		_statusCode: code,
	}
}
func (o *CreateSpoeDefault) WithStatusCode(code int) *CreateSpoeDefault {
	o._statusCode = code
	return o
}