func (o *CreateACLDefault) WithConfigurationVersion(configurationVersion string) *CreateACLDefault {
	o.ConfigurationVersion = configurationVersion
	return o
}
WithConfigurationVersion adds the configurationVersion to the create Acl default response
package acl
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const CreateACLCreatedCode int = 201
type CreateACLCreated struct {
	Payload *models.ACL `json:"body,omitempty"`
}
func NewCreateACLCreated() *CreateACLCreated {
	return &CreateACLCreated{}
}
func (o *CreateACLCreated) WithPayload(payload *models.ACL) *CreateACLCreated {
	o.Payload = payload
	return o
}
func (o *CreateACLCreated) SetPayload(payload *models.ACL) {
	o.Payload = payload
}
func (o *CreateACLCreated) 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 CreateACLAcceptedCode int = 202
type CreateACLAccepted struct {
	ReloadID string `json:"Reload-ID"`
	Payload *models.ACL `json:"body,omitempty"`
}
func NewCreateACLAccepted() *CreateACLAccepted {
	return &CreateACLAccepted{}
}
func (o *CreateACLAccepted) WithReloadID(reloadID string) *CreateACLAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *CreateACLAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}
func (o *CreateACLAccepted) WithPayload(payload *models.ACL) *CreateACLAccepted {
	o.Payload = payload
	return o
}
func (o *CreateACLAccepted) SetPayload(payload *models.ACL) {
	o.Payload = payload
}
func (o *CreateACLAccepted) 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 CreateACLBadRequestCode int = 400
type CreateACLBadRequest struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewCreateACLBadRequest() *CreateACLBadRequest {
	return &CreateACLBadRequest{}
}
func (o *CreateACLBadRequest) WithConfigurationVersion(configurationVersion string) *CreateACLBadRequest {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *CreateACLBadRequest) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *CreateACLBadRequest) WithPayload(payload *models.Error) *CreateACLBadRequest {
	o.Payload = payload
	return o
}
func (o *CreateACLBadRequest) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *CreateACLBadRequest) 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 CreateACLConflictCode int = 409
type CreateACLConflict struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewCreateACLConflict() *CreateACLConflict {
	return &CreateACLConflict{}
}
func (o *CreateACLConflict) WithConfigurationVersion(configurationVersion string) *CreateACLConflict {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *CreateACLConflict) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *CreateACLConflict) WithPayload(payload *models.Error) *CreateACLConflict {
	o.Payload = payload
	return o
}
func (o *CreateACLConflict) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *CreateACLConflict) 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 CreateACLDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewCreateACLDefault(code int) *CreateACLDefault {
	if code <= 0 {
		code = 500
	}
	return &CreateACLDefault{
		_statusCode: code,
	}
}
func (o *CreateACLDefault) WithStatusCode(code int) *CreateACLDefault {
	o._statusCode = code
	return o
}
func (o *CreateACLDefault) SetStatusCode(code int) {
	o._statusCode = code
}