func (o *PostHAProxyConfigurationDefault) SetStatusCode(code int) {
	o._statusCode = code
}
SetStatusCode sets the status to the post h a proxy configuration default response
package configuration
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const PostHAProxyConfigurationCreatedCode int = 201
type PostHAProxyConfigurationCreated struct {
	Payload string `json:"body,omitempty"`
}
func NewPostHAProxyConfigurationCreated() *PostHAProxyConfigurationCreated {
	return &PostHAProxyConfigurationCreated{}
}
func (o *PostHAProxyConfigurationCreated) WithPayload(payload string) *PostHAProxyConfigurationCreated {
	o.Payload = payload
	return o
}
func (o *PostHAProxyConfigurationCreated) SetPayload(payload string) {
	o.Payload = payload
}
func (o *PostHAProxyConfigurationCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.WriteHeader(201)
	payload := o.Payload
	if err := producer.Produce(rw, payload); err != nil {
		panic(err)  
	}
}
const PostHAProxyConfigurationAcceptedCode int = 202
type PostHAProxyConfigurationAccepted struct {
	ReloadID string `json:"Reload-ID"`
	Payload string `json:"body,omitempty"`
}
func NewPostHAProxyConfigurationAccepted() *PostHAProxyConfigurationAccepted {
	return &PostHAProxyConfigurationAccepted{}
}
func (o *PostHAProxyConfigurationAccepted) WithReloadID(reloadID string) *PostHAProxyConfigurationAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *PostHAProxyConfigurationAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}
func (o *PostHAProxyConfigurationAccepted) WithPayload(payload string) *PostHAProxyConfigurationAccepted {
	o.Payload = payload
	return o
}
func (o *PostHAProxyConfigurationAccepted) SetPayload(payload string) {
	o.Payload = payload
}
func (o *PostHAProxyConfigurationAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	reloadID := o.ReloadID
	if reloadID != "" {
		rw.Header().Set("Reload-ID", reloadID)
	}
	rw.WriteHeader(202)
	payload := o.Payload
	if err := producer.Produce(rw, payload); err != nil {
		panic(err)  
	}
}
const PostHAProxyConfigurationBadRequestCode int = 400
type PostHAProxyConfigurationBadRequest struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewPostHAProxyConfigurationBadRequest() *PostHAProxyConfigurationBadRequest {
	return &PostHAProxyConfigurationBadRequest{}
}
func (o *PostHAProxyConfigurationBadRequest) WithConfigurationVersion(configurationVersion string) *PostHAProxyConfigurationBadRequest {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *PostHAProxyConfigurationBadRequest) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *PostHAProxyConfigurationBadRequest) WithPayload(payload *models.Error) *PostHAProxyConfigurationBadRequest {
	o.Payload = payload
	return o
}
func (o *PostHAProxyConfigurationBadRequest) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *PostHAProxyConfigurationBadRequest) 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)  
		}
	}
}
type PostHAProxyConfigurationDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewPostHAProxyConfigurationDefault(code int) *PostHAProxyConfigurationDefault {
	if code <= 0 {
		code = 500
	}
	return &PostHAProxyConfigurationDefault{
		_statusCode: code,
	}
}
func (o *PostHAProxyConfigurationDefault) WithStatusCode(code int) *PostHAProxyConfigurationDefault {
	o._statusCode = code
	return o
}