func (o *ReplaceServerBadRequest) WithConfigurationVersion(configurationVersion string) *ReplaceServerBadRequest {
	o.ConfigurationVersion = configurationVersion
	return o
}
WithConfigurationVersion adds the configurationVersion to the replace server bad request response
package server
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const ReplaceServerOKCode int = 200
type ReplaceServerOK struct {
	Payload *models.Server `json:"body,omitempty"`
}
func NewReplaceServerOK() *ReplaceServerOK {
	return &ReplaceServerOK{}
}
func (o *ReplaceServerOK) WithPayload(payload *models.Server) *ReplaceServerOK {
	o.Payload = payload
	return o
}
func (o *ReplaceServerOK) SetPayload(payload *models.Server) {
	o.Payload = payload
}
func (o *ReplaceServerOK) 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 ReplaceServerAcceptedCode int = 202
type ReplaceServerAccepted struct {
	ReloadID string `json:"Reload-ID"`
	Payload *models.Server `json:"body,omitempty"`
}
func NewReplaceServerAccepted() *ReplaceServerAccepted {
	return &ReplaceServerAccepted{}
}
func (o *ReplaceServerAccepted) WithReloadID(reloadID string) *ReplaceServerAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *ReplaceServerAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}
func (o *ReplaceServerAccepted) WithPayload(payload *models.Server) *ReplaceServerAccepted {
	o.Payload = payload
	return o
}
func (o *ReplaceServerAccepted) SetPayload(payload *models.Server) {
	o.Payload = payload
}
func (o *ReplaceServerAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	reloadID := o.ReloadID
	if reloadID != "" {
		rw.Header().Set("Reload-ID", reloadID)
	}
	rw.WriteHeader(202)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const ReplaceServerBadRequestCode int = 400
type ReplaceServerBadRequest struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewReplaceServerBadRequest() *ReplaceServerBadRequest {
	return &ReplaceServerBadRequest{}
}