func (o *GetHTTPRequestRulesDefault) WithConfigurationVersion(configurationVersion string) *GetHTTPRequestRulesDefault {
	o.ConfigurationVersion = configurationVersion
	return o
}
WithConfigurationVersion adds the configurationVersion to the get HTTP request rules default response
package http_request_rule
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const GetHTTPRequestRulesOKCode int = 200
type GetHTTPRequestRulesOK struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *GetHTTPRequestRulesOKBody `json:"body,omitempty"`
}
func NewGetHTTPRequestRulesOK() *GetHTTPRequestRulesOK {
	return &GetHTTPRequestRulesOK{}
}
func (o *GetHTTPRequestRulesOK) WithConfigurationVersion(configurationVersion string) *GetHTTPRequestRulesOK {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetHTTPRequestRulesOK) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetHTTPRequestRulesOK) WithPayload(payload *GetHTTPRequestRulesOKBody) *GetHTTPRequestRulesOK {
	o.Payload = payload
	return o
}
func (o *GetHTTPRequestRulesOK) SetPayload(payload *GetHTTPRequestRulesOKBody) {
	o.Payload = payload
}
func (o *GetHTTPRequestRulesOK) 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)  
		}
	}
}
type GetHTTPRequestRulesDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetHTTPRequestRulesDefault(code int) *GetHTTPRequestRulesDefault {
	if code <= 0 {
		code = 500
	}
	return &GetHTTPRequestRulesDefault{
		_statusCode: code,
	}
}
func (o *GetHTTPRequestRulesDefault) WithStatusCode(code int) *GetHTTPRequestRulesDefault {
	o._statusCode = code
	return o
}
func (o *GetHTTPRequestRulesDefault) SetStatusCode(code int) {
	o._statusCode = code
}