func (o *CreateFilterDefault) SetPayload(payload *models.Error) {
	o.Payload = payload
}
SetPayload sets the payload to the create filter default response
package filter
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const CreateFilterCreatedCode int = 201
type CreateFilterCreated struct {
	Payload *models.Filter `json:"body,omitempty"`
}
func NewCreateFilterCreated() *CreateFilterCreated {
	return &CreateFilterCreated{}
}
func (o *CreateFilterCreated) WithPayload(payload *models.Filter) *CreateFilterCreated {
	o.Payload = payload
	return o
}
func (o *CreateFilterCreated) SetPayload(payload *models.Filter) {
	o.Payload = payload
}
func (o *CreateFilterCreated) 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 CreateFilterAcceptedCode int = 202
type CreateFilterAccepted struct {
	ReloadID string `json:"Reload-ID"`
	Payload *models.Filter `json:"body,omitempty"`
}
func NewCreateFilterAccepted() *CreateFilterAccepted {
	return &CreateFilterAccepted{}
}
func (o *CreateFilterAccepted) WithReloadID(reloadID string) *CreateFilterAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *CreateFilterAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}
func (o *CreateFilterAccepted) WithPayload(payload *models.Filter) *CreateFilterAccepted {
	o.Payload = payload
	return o
}
func (o *CreateFilterAccepted) SetPayload(payload *models.Filter) {
	o.Payload = payload
}
func (o *CreateFilterAccepted) 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 CreateFilterBadRequestCode int = 400
type CreateFilterBadRequest struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewCreateFilterBadRequest() *CreateFilterBadRequest {
	return &CreateFilterBadRequest{}
}
func (o *CreateFilterBadRequest) WithConfigurationVersion(configurationVersion string) *CreateFilterBadRequest {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *CreateFilterBadRequest) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *CreateFilterBadRequest) WithPayload(payload *models.Error) *CreateFilterBadRequest {
	o.Payload = payload
	return o
}
func (o *CreateFilterBadRequest) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *CreateFilterBadRequest) 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 CreateFilterConflictCode int = 409
type CreateFilterConflict struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewCreateFilterConflict() *CreateFilterConflict {
	return &CreateFilterConflict{}
}
func (o *CreateFilterConflict) WithConfigurationVersion(configurationVersion string) *CreateFilterConflict {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *CreateFilterConflict) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *CreateFilterConflict) WithPayload(payload *models.Error) *CreateFilterConflict {
	o.Payload = payload
	return o
}
func (o *CreateFilterConflict) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *CreateFilterConflict) 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 CreateFilterDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewCreateFilterDefault(code int) *CreateFilterDefault {
	if code <= 0 {
		code = 500
	}
	return &CreateFilterDefault{
		_statusCode: code,
	}
}
func (o *CreateFilterDefault) WithStatusCode(code int) *CreateFilterDefault {
	o._statusCode = code
	return o
}
func (o *CreateFilterDefault) SetStatusCode(code int) {
	o._statusCode = code
}
func (o *CreateFilterDefault) WithConfigurationVersion(configurationVersion string) *CreateFilterDefault {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *CreateFilterDefault) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *CreateFilterDefault) WithPayload(payload *models.Error) *CreateFilterDefault {
	o.Payload = payload
	return o
}