func (o *GetFilterDefault) WithConfigurationVersion(configurationVersion string) *GetFilterDefault {
	o.ConfigurationVersion = configurationVersion
	return o
}
WithConfigurationVersion adds the configurationVersion to the get filter default response
package filter
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const GetFilterOKCode int = 200
type GetFilterOK struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *GetFilterOKBody `json:"body,omitempty"`
}
func NewGetFilterOK() *GetFilterOK {
	return &GetFilterOK{}
}
func (o *GetFilterOK) WithConfigurationVersion(configurationVersion string) *GetFilterOK {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetFilterOK) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetFilterOK) WithPayload(payload *GetFilterOKBody) *GetFilterOK {
	o.Payload = payload
	return o
}
func (o *GetFilterOK) SetPayload(payload *GetFilterOKBody) {
	o.Payload = payload
}
func (o *GetFilterOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	configurationVersion := o.ConfigurationVersion
	if configurationVersion != "" {
		rw.Header().Set("Configuration-Version", configurationVersion)
	}
	rw.WriteHeader(200)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const GetFilterNotFoundCode int = 404
type GetFilterNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetFilterNotFound() *GetFilterNotFound {
	return &GetFilterNotFound{}
}
func (o *GetFilterNotFound) WithConfigurationVersion(configurationVersion string) *GetFilterNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetFilterNotFound) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetFilterNotFound) WithPayload(payload *models.Error) *GetFilterNotFound {
	o.Payload = payload
	return o
}
func (o *GetFilterNotFound) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *GetFilterNotFound) 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 GetFilterDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetFilterDefault(code int) *GetFilterDefault {
	if code <= 0 {
		code = 500
	}
	return &GetFilterDefault{
		_statusCode: code,
	}
}
func (o *GetFilterDefault) WithStatusCode(code int) *GetFilterDefault {
	o._statusCode = code
	return o
}
func (o *GetFilterDefault) SetStatusCode(code int) {
	o._statusCode = code
}