func (o *GetHTTPResponseRuleDefault) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
SetConfigurationVersion sets the configurationVersion to the get HTTP response rule default response
package http_response_rule
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const GetHTTPResponseRuleOKCode int = 200
type GetHTTPResponseRuleOK struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *GetHTTPResponseRuleOKBody `json:"body,omitempty"`
}
func NewGetHTTPResponseRuleOK() *GetHTTPResponseRuleOK {
	return &GetHTTPResponseRuleOK{}
}
func (o *GetHTTPResponseRuleOK) WithConfigurationVersion(configurationVersion string) *GetHTTPResponseRuleOK {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetHTTPResponseRuleOK) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetHTTPResponseRuleOK) WithPayload(payload *GetHTTPResponseRuleOKBody) *GetHTTPResponseRuleOK {
	o.Payload = payload
	return o
}
func (o *GetHTTPResponseRuleOK) SetPayload(payload *GetHTTPResponseRuleOKBody) {
	o.Payload = payload
}
func (o *GetHTTPResponseRuleOK) 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 GetHTTPResponseRuleNotFoundCode int = 404
type GetHTTPResponseRuleNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetHTTPResponseRuleNotFound() *GetHTTPResponseRuleNotFound {
	return &GetHTTPResponseRuleNotFound{}
}
func (o *GetHTTPResponseRuleNotFound) WithConfigurationVersion(configurationVersion string) *GetHTTPResponseRuleNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetHTTPResponseRuleNotFound) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetHTTPResponseRuleNotFound) WithPayload(payload *models.Error) *GetHTTPResponseRuleNotFound {
	o.Payload = payload
	return o
}
func (o *GetHTTPResponseRuleNotFound) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *GetHTTPResponseRuleNotFound) 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 GetHTTPResponseRuleDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetHTTPResponseRuleDefault(code int) *GetHTTPResponseRuleDefault {
	if code <= 0 {
		code = 500
	}
	return &GetHTTPResponseRuleDefault{
		_statusCode: code,
	}
}
func (o *GetHTTPResponseRuleDefault) WithStatusCode(code int) *GetHTTPResponseRuleDefault {
	o._statusCode = code
	return o
}
func (o *GetHTTPResponseRuleDefault) SetStatusCode(code int) {
	o._statusCode = code
}
func (o *GetHTTPResponseRuleDefault) WithConfigurationVersion(configurationVersion string) *GetHTTPResponseRuleDefault {
	o.ConfigurationVersion = configurationVersion
	return o
}