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