func (o *ReplaceStorageMapFileDefault) SetStatusCode(code int) {
	o._statusCode = code
}
SetStatusCode sets the status to the replace storage map file default response
package storage
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const ReplaceStorageMapFileAcceptedCode int = 202
type ReplaceStorageMapFileAccepted struct {
	ReloadID string `json:"Reload-ID"`
}
func NewReplaceStorageMapFileAccepted() *ReplaceStorageMapFileAccepted {
	return &ReplaceStorageMapFileAccepted{}
}
func (o *ReplaceStorageMapFileAccepted) WithReloadID(reloadID string) *ReplaceStorageMapFileAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *ReplaceStorageMapFileAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}
func (o *ReplaceStorageMapFileAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	reloadID := o.ReloadID
	if reloadID != "" {
		rw.Header().Set("Reload-ID", reloadID)
	}
	rw.Header().Del(runtime.HeaderContentType)  
	rw.WriteHeader(202)
}
const ReplaceStorageMapFileNoContentCode int = 204
type ReplaceStorageMapFileNoContent struct {
}
func NewReplaceStorageMapFileNoContent() *ReplaceStorageMapFileNoContent {
	return &ReplaceStorageMapFileNoContent{}
}
func (o *ReplaceStorageMapFileNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.Header().Del(runtime.HeaderContentType)  
	rw.WriteHeader(204)
}
const ReplaceStorageMapFileBadRequestCode int = 400
type ReplaceStorageMapFileBadRequest struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewReplaceStorageMapFileBadRequest() *ReplaceStorageMapFileBadRequest {
	return &ReplaceStorageMapFileBadRequest{}
}
func (o *ReplaceStorageMapFileBadRequest) WithConfigurationVersion(configurationVersion string) *ReplaceStorageMapFileBadRequest {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *ReplaceStorageMapFileBadRequest) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *ReplaceStorageMapFileBadRequest) WithPayload(payload *models.Error) *ReplaceStorageMapFileBadRequest {
	o.Payload = payload
	return o
}
func (o *ReplaceStorageMapFileBadRequest) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *ReplaceStorageMapFileBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	configurationVersion := o.ConfigurationVersion
	if configurationVersion != "" {
		rw.Header().Set("Configuration-Version", configurationVersion)
	}
	rw.WriteHeader(400)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const ReplaceStorageMapFileNotFoundCode int = 404
type ReplaceStorageMapFileNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewReplaceStorageMapFileNotFound() *ReplaceStorageMapFileNotFound {
	return &ReplaceStorageMapFileNotFound{}
}
func (o *ReplaceStorageMapFileNotFound) WithConfigurationVersion(configurationVersion string) *ReplaceStorageMapFileNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *ReplaceStorageMapFileNotFound) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *ReplaceStorageMapFileNotFound) WithPayload(payload *models.Error) *ReplaceStorageMapFileNotFound {
	o.Payload = payload
	return o
}
func (o *ReplaceStorageMapFileNotFound) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *ReplaceStorageMapFileNotFound) 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 ReplaceStorageMapFileDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewReplaceStorageMapFileDefault(code int) *ReplaceStorageMapFileDefault {
	if code <= 0 {
		code = 500
	}
	return &ReplaceStorageMapFileDefault{
		_statusCode: code,
	}
}
func (o *ReplaceStorageMapFileDefault) WithStatusCode(code int) *ReplaceStorageMapFileDefault {
	o._statusCode = code
	return o
}