func (o *ShowRuntimeMapDefault) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
SetConfigurationVersion sets the configurationVersion to the show runtime map default response
package maps
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const ShowRuntimeMapOKCode int = 200
type ShowRuntimeMapOK struct {
	Payload models.MapEntries `json:"body,omitempty"`
}
func NewShowRuntimeMapOK() *ShowRuntimeMapOK {
	return &ShowRuntimeMapOK{}
}
func (o *ShowRuntimeMapOK) WithPayload(payload models.MapEntries) *ShowRuntimeMapOK {
	o.Payload = payload
	return o
}
func (o *ShowRuntimeMapOK) SetPayload(payload models.MapEntries) {
	o.Payload = payload
}
func (o *ShowRuntimeMapOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.WriteHeader(200)
	payload := o.Payload
	if payload == nil {
		payload = models.MapEntries{}
	}
	if err := producer.Produce(rw, payload); err != nil {
		panic(err)  
	}
}
const ShowRuntimeMapNotFoundCode int = 404
type ShowRuntimeMapNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewShowRuntimeMapNotFound() *ShowRuntimeMapNotFound {
	return &ShowRuntimeMapNotFound{}
}
func (o *ShowRuntimeMapNotFound) WithConfigurationVersion(configurationVersion string) *ShowRuntimeMapNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *ShowRuntimeMapNotFound) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *ShowRuntimeMapNotFound) WithPayload(payload *models.Error) *ShowRuntimeMapNotFound {
	o.Payload = payload
	return o
}
func (o *ShowRuntimeMapNotFound) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *ShowRuntimeMapNotFound) 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 ShowRuntimeMapDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewShowRuntimeMapDefault(code int) *ShowRuntimeMapDefault {
	if code <= 0 {
		code = 500
	}
	return &ShowRuntimeMapDefault{
		_statusCode: code,
	}
}
func (o *ShowRuntimeMapDefault) WithStatusCode(code int) *ShowRuntimeMapDefault {
	o._statusCode = code
	return o
}
func (o *ShowRuntimeMapDefault) SetStatusCode(code int) {
	o._statusCode = code
}
func (o *ShowRuntimeMapDefault) WithConfigurationVersion(configurationVersion string) *ShowRuntimeMapDefault {
	o.ConfigurationVersion = configurationVersion
	return o
}