func (o *ReplaceSiteBadRequest) SetPayload(payload *models.Error) {
	o.Payload = payload
}
SetPayload sets the payload to the replace site bad request response
package sites
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const ReplaceSiteOKCode int = 200
type ReplaceSiteOK struct {
	Payload *models.Site `json:"body,omitempty"`
}
func NewReplaceSiteOK() *ReplaceSiteOK {
	return &ReplaceSiteOK{}
}
func (o *ReplaceSiteOK) WithPayload(payload *models.Site) *ReplaceSiteOK {
	o.Payload = payload
	return o
}
func (o *ReplaceSiteOK) SetPayload(payload *models.Site) {
	o.Payload = payload
}
func (o *ReplaceSiteOK) 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 ReplaceSiteAcceptedCode int = 202
type ReplaceSiteAccepted struct {
	ReloadID string `json:"Reload-ID"`
	Payload *models.Site `json:"body,omitempty"`
}
func NewReplaceSiteAccepted() *ReplaceSiteAccepted {
	return &ReplaceSiteAccepted{}
}
func (o *ReplaceSiteAccepted) WithReloadID(reloadID string) *ReplaceSiteAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *ReplaceSiteAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}
func (o *ReplaceSiteAccepted) WithPayload(payload *models.Site) *ReplaceSiteAccepted {
	o.Payload = payload
	return o
}
func (o *ReplaceSiteAccepted) SetPayload(payload *models.Site) {
	o.Payload = payload
}
func (o *ReplaceSiteAccepted) 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 ReplaceSiteBadRequestCode int = 400
type ReplaceSiteBadRequest struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewReplaceSiteBadRequest() *ReplaceSiteBadRequest {
	return &ReplaceSiteBadRequest{}
}
func (o *ReplaceSiteBadRequest) WithConfigurationVersion(configurationVersion string) *ReplaceSiteBadRequest {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *ReplaceSiteBadRequest) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *ReplaceSiteBadRequest) WithPayload(payload *models.Error) *ReplaceSiteBadRequest {
	o.Payload = payload
	return o
}