func (o *ClearRuntimeMapDefault) WithPayload(payload *models.Error) *ClearRuntimeMapDefault {
	o.Payload = payload
	return o
}
WithPayload adds the payload to the clear runtime map default response
package maps
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const ClearRuntimeMapNoContentCode int = 204
type ClearRuntimeMapNoContent struct {
}
func NewClearRuntimeMapNoContent() *ClearRuntimeMapNoContent {
	return &ClearRuntimeMapNoContent{}
}
func (o *ClearRuntimeMapNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.Header().Del(runtime.HeaderContentType)  
	rw.WriteHeader(204)
}
const ClearRuntimeMapNotFoundCode int = 404
type ClearRuntimeMapNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewClearRuntimeMapNotFound() *ClearRuntimeMapNotFound {
	return &ClearRuntimeMapNotFound{}
}
func (o *ClearRuntimeMapNotFound) WithConfigurationVersion(configurationVersion string) *ClearRuntimeMapNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *ClearRuntimeMapNotFound) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *ClearRuntimeMapNotFound) WithPayload(payload *models.Error) *ClearRuntimeMapNotFound {
	o.Payload = payload
	return o
}
func (o *ClearRuntimeMapNotFound) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *ClearRuntimeMapNotFound) 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 ClearRuntimeMapDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewClearRuntimeMapDefault(code int) *ClearRuntimeMapDefault {
	if code <= 0 {
		code = 500
	}
	return &ClearRuntimeMapDefault{
		_statusCode: code,
	}
}
func (o *ClearRuntimeMapDefault) WithStatusCode(code int) *ClearRuntimeMapDefault {
	o._statusCode = code
	return o
}
func (o *ClearRuntimeMapDefault) SetStatusCode(code int) {
	o._statusCode = code
}
func (o *ClearRuntimeMapDefault) WithConfigurationVersion(configurationVersion string) *ClearRuntimeMapDefault {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *ClearRuntimeMapDefault) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}