func (o *GetStickRuleDefault) WithConfigurationVersion(configurationVersion string) *GetStickRuleDefault {
	o.ConfigurationVersion = configurationVersion
	return o
}
WithConfigurationVersion adds the configurationVersion to the get stick rule default response
package stick_rule
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const GetStickRuleOKCode int = 200
type GetStickRuleOK struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *GetStickRuleOKBody `json:"body,omitempty"`
}
func NewGetStickRuleOK() *GetStickRuleOK {
	return &GetStickRuleOK{}
}
func (o *GetStickRuleOK) WithConfigurationVersion(configurationVersion string) *GetStickRuleOK {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetStickRuleOK) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetStickRuleOK) WithPayload(payload *GetStickRuleOKBody) *GetStickRuleOK {
	o.Payload = payload
	return o
}
func (o *GetStickRuleOK) SetPayload(payload *GetStickRuleOKBody) {
	o.Payload = payload
}
func (o *GetStickRuleOK) 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 GetStickRuleNotFoundCode int = 404
type GetStickRuleNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetStickRuleNotFound() *GetStickRuleNotFound {
	return &GetStickRuleNotFound{}
}
func (o *GetStickRuleNotFound) WithConfigurationVersion(configurationVersion string) *GetStickRuleNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetStickRuleNotFound) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetStickRuleNotFound) WithPayload(payload *models.Error) *GetStickRuleNotFound {
	o.Payload = payload
	return o
}
func (o *GetStickRuleNotFound) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *GetStickRuleNotFound) 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 GetStickRuleDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetStickRuleDefault(code int) *GetStickRuleDefault {
	if code <= 0 {
		code = 500
	}
	return &GetStickRuleDefault{
		_statusCode: code,
	}
}
func (o *GetStickRuleDefault) WithStatusCode(code int) *GetStickRuleDefault {
	o._statusCode = code
	return o
}
func (o *GetStickRuleDefault) SetStatusCode(code int) {
	o._statusCode = code
}