func (o *GetOneStorageMapDefault) WithPayload(payload *models.Error) *GetOneStorageMapDefault {
	o.Payload = payload
	return o
}
WithPayload adds the payload to the get one storage map default response
package storage
import (
	"io"
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const GetOneStorageMapOKCode int = 200
type GetOneStorageMapOK struct {
	Payload io.ReadCloser `json:"body,omitempty"`
}
func NewGetOneStorageMapOK() *GetOneStorageMapOK {
	return &GetOneStorageMapOK{}
}
func (o *GetOneStorageMapOK) WithPayload(payload io.ReadCloser) *GetOneStorageMapOK {
	o.Payload = payload
	return o
}
func (o *GetOneStorageMapOK) SetPayload(payload io.ReadCloser) {
	o.Payload = payload
}
func (o *GetOneStorageMapOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.WriteHeader(200)
	payload := o.Payload
	if err := producer.Produce(rw, payload); err != nil {
		panic(err)  
	}
}
const GetOneStorageMapNotFoundCode int = 404
type GetOneStorageMapNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetOneStorageMapNotFound() *GetOneStorageMapNotFound {
	return &GetOneStorageMapNotFound{}
}
func (o *GetOneStorageMapNotFound) WithConfigurationVersion(configurationVersion string) *GetOneStorageMapNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetOneStorageMapNotFound) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetOneStorageMapNotFound) WithPayload(payload *models.Error) *GetOneStorageMapNotFound {
	o.Payload = payload
	return o
}
func (o *GetOneStorageMapNotFound) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *GetOneStorageMapNotFound) 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 GetOneStorageMapDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetOneStorageMapDefault(code int) *GetOneStorageMapDefault {
	if code <= 0 {
		code = 500
	}
	return &GetOneStorageMapDefault{
		_statusCode: code,
	}
}
func (o *GetOneStorageMapDefault) WithStatusCode(code int) *GetOneStorageMapDefault {
	o._statusCode = code
	return o
}
func (o *GetOneStorageMapDefault) SetStatusCode(code int) {
	o._statusCode = code
}
func (o *GetOneStorageMapDefault) WithConfigurationVersion(configurationVersion string) *GetOneStorageMapDefault {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetOneStorageMapDefault) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}