func (o *ReplaceACLDefault) SetStatusCode(code int) {
	o._statusCode = code
}
SetStatusCode sets the status to the replace Acl default response
package acl
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const ReplaceACLOKCode int = 200
type ReplaceACLOK struct {
	Payload *models.ACL `json:"body,omitempty"`
}
func NewReplaceACLOK() *ReplaceACLOK {
	return &ReplaceACLOK{}
}
func (o *ReplaceACLOK) WithPayload(payload *models.ACL) *ReplaceACLOK {
	o.Payload = payload
	return o
}
func (o *ReplaceACLOK) SetPayload(payload *models.ACL) {
	o.Payload = payload
}
func (o *ReplaceACLOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.WriteHeader(200)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const ReplaceACLAcceptedCode int = 202
type ReplaceACLAccepted struct {
	ReloadID string `json:"Reload-ID"`
	Payload *models.ACL `json:"body,omitempty"`
}
func NewReplaceACLAccepted() *ReplaceACLAccepted {
	return &ReplaceACLAccepted{}
}
func (o *ReplaceACLAccepted) WithReloadID(reloadID string) *ReplaceACLAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *ReplaceACLAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}
func (o *ReplaceACLAccepted) WithPayload(payload *models.ACL) *ReplaceACLAccepted {
	o.Payload = payload
	return o
}
func (o *ReplaceACLAccepted) SetPayload(payload *models.ACL) {
	o.Payload = payload
}
func (o *ReplaceACLAccepted) 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 ReplaceACLBadRequestCode int = 400
type ReplaceACLBadRequest struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewReplaceACLBadRequest() *ReplaceACLBadRequest {
	return &ReplaceACLBadRequest{}
}
func (o *ReplaceACLBadRequest) WithConfigurationVersion(configurationVersion string) *ReplaceACLBadRequest {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *ReplaceACLBadRequest) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *ReplaceACLBadRequest) WithPayload(payload *models.Error) *ReplaceACLBadRequest {
	o.Payload = payload
	return o
}
func (o *ReplaceACLBadRequest) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *ReplaceACLBadRequest) 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 ReplaceACLNotFoundCode int = 404
type ReplaceACLNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewReplaceACLNotFound() *ReplaceACLNotFound {
	return &ReplaceACLNotFound{}
}
func (o *ReplaceACLNotFound) WithConfigurationVersion(configurationVersion string) *ReplaceACLNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *ReplaceACLNotFound) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *ReplaceACLNotFound) WithPayload(payload *models.Error) *ReplaceACLNotFound {
	o.Payload = payload
	return o
}
func (o *ReplaceACLNotFound) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *ReplaceACLNotFound) 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 ReplaceACLDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewReplaceACLDefault(code int) *ReplaceACLDefault {
	if code <= 0 {
		code = 500
	}
	return &ReplaceACLDefault{
		_statusCode: code,
	}
}
func (o *ReplaceACLDefault) WithStatusCode(code int) *ReplaceACLDefault {
	o._statusCode = code
	return o
}