func (o *CreateBackendDefault) WithConfigurationVersion(configurationVersion string) *CreateBackendDefault {
	o.ConfigurationVersion = configurationVersion
	return o
}
WithConfigurationVersion adds the configurationVersion to the create backend default response
package backend
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const CreateBackendCreatedCode int = 201
type CreateBackendCreated struct {
	Payload *models.Backend `json:"body,omitempty"`
}
func NewCreateBackendCreated() *CreateBackendCreated {
	return &CreateBackendCreated{}
}
func (o *CreateBackendCreated) WithPayload(payload *models.Backend) *CreateBackendCreated {
	o.Payload = payload
	return o
}
func (o *CreateBackendCreated) SetPayload(payload *models.Backend) {
	o.Payload = payload
}
func (o *CreateBackendCreated) 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 CreateBackendAcceptedCode int = 202
type CreateBackendAccepted struct {
	ReloadID string `json:"Reload-ID"`
	Payload *models.Backend `json:"body,omitempty"`
}
func NewCreateBackendAccepted() *CreateBackendAccepted {
	return &CreateBackendAccepted{}
}
func (o *CreateBackendAccepted) WithReloadID(reloadID string) *CreateBackendAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *CreateBackendAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}
func (o *CreateBackendAccepted) WithPayload(payload *models.Backend) *CreateBackendAccepted {
	o.Payload = payload
	return o
}
func (o *CreateBackendAccepted) SetPayload(payload *models.Backend) {
	o.Payload = payload
}
func (o *CreateBackendAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	reloadID := o.ReloadID
	if reloadID != "" {
		rw.Header().Set("Reload-ID", reloadID)
	}
	rw.WriteHeader(202)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const CreateBackendBadRequestCode int = 400
type CreateBackendBadRequest struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewCreateBackendBadRequest() *CreateBackendBadRequest {
	return &CreateBackendBadRequest{}
}
func (o *CreateBackendBadRequest) WithConfigurationVersion(configurationVersion string) *CreateBackendBadRequest {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *CreateBackendBadRequest) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *CreateBackendBadRequest) WithPayload(payload *models.Error) *CreateBackendBadRequest {
	o.Payload = payload
	return o
}
func (o *CreateBackendBadRequest) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *CreateBackendBadRequest) 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 CreateBackendConflictCode int = 409
type CreateBackendConflict struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewCreateBackendConflict() *CreateBackendConflict {
	return &CreateBackendConflict{}
}
func (o *CreateBackendConflict) WithConfigurationVersion(configurationVersion string) *CreateBackendConflict {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *CreateBackendConflict) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *CreateBackendConflict) WithPayload(payload *models.Error) *CreateBackendConflict {
	o.Payload = payload
	return o
}
func (o *CreateBackendConflict) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *CreateBackendConflict) 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 CreateBackendDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewCreateBackendDefault(code int) *CreateBackendDefault {
	if code <= 0 {
		code = 500
	}
	return &CreateBackendDefault{
		_statusCode: code,
	}
}
func (o *CreateBackendDefault) WithStatusCode(code int) *CreateBackendDefault {
	o._statusCode = code
	return o
}
func (o *CreateBackendDefault) SetStatusCode(code int) {
	o._statusCode = code
}