func (o *ReplaceServerTemplateBadRequest) WithConfigurationVersion(configurationVersion string) *ReplaceServerTemplateBadRequest {
	o.ConfigurationVersion = configurationVersion
	return o
}
WithConfigurationVersion adds the configurationVersion to the replace server template bad request response
package server_template
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const ReplaceServerTemplateOKCode int = 200
type ReplaceServerTemplateOK struct {
	Payload *models.ServerTemplate `json:"body,omitempty"`
}
func NewReplaceServerTemplateOK() *ReplaceServerTemplateOK {
	return &ReplaceServerTemplateOK{}
}
func (o *ReplaceServerTemplateOK) WithPayload(payload *models.ServerTemplate) *ReplaceServerTemplateOK {
	o.Payload = payload
	return o
}
func (o *ReplaceServerTemplateOK) SetPayload(payload *models.ServerTemplate) {
	o.Payload = payload
}
func (o *ReplaceServerTemplateOK) 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 ReplaceServerTemplateAcceptedCode int = 202
type ReplaceServerTemplateAccepted struct {
	ReloadID string `json:"Reload-ID"`
	Payload *models.ServerTemplate `json:"body,omitempty"`
}
func NewReplaceServerTemplateAccepted() *ReplaceServerTemplateAccepted {
	return &ReplaceServerTemplateAccepted{}
}
func (o *ReplaceServerTemplateAccepted) WithReloadID(reloadID string) *ReplaceServerTemplateAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *ReplaceServerTemplateAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}
func (o *ReplaceServerTemplateAccepted) WithPayload(payload *models.ServerTemplate) *ReplaceServerTemplateAccepted {
	o.Payload = payload
	return o
}
func (o *ReplaceServerTemplateAccepted) SetPayload(payload *models.ServerTemplate) {
	o.Payload = payload
}
func (o *ReplaceServerTemplateAccepted) 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 ReplaceServerTemplateBadRequestCode int = 400
type ReplaceServerTemplateBadRequest struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewReplaceServerTemplateBadRequest() *ReplaceServerTemplateBadRequest {
	return &ReplaceServerTemplateBadRequest{}
}