func (o *ReplacePeerEntryAccepted) SetPayload(payload *models.PeerEntry) {
	o.Payload = payload
}
SetPayload sets the payload to the replace peer entry accepted response
package peer_entry
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const ReplacePeerEntryOKCode int = 200
type ReplacePeerEntryOK struct {
	Payload *models.PeerEntry `json:"body,omitempty"`
}
func NewReplacePeerEntryOK() *ReplacePeerEntryOK {
	return &ReplacePeerEntryOK{}
}
func (o *ReplacePeerEntryOK) WithPayload(payload *models.PeerEntry) *ReplacePeerEntryOK {
	o.Payload = payload
	return o
}
func (o *ReplacePeerEntryOK) SetPayload(payload *models.PeerEntry) {
	o.Payload = payload
}
func (o *ReplacePeerEntryOK) 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 ReplacePeerEntryAcceptedCode int = 202
type ReplacePeerEntryAccepted struct {
	ReloadID string `json:"Reload-ID"`
	Payload *models.PeerEntry `json:"body,omitempty"`
}
func NewReplacePeerEntryAccepted() *ReplacePeerEntryAccepted {
	return &ReplacePeerEntryAccepted{}
}
func (o *ReplacePeerEntryAccepted) WithReloadID(reloadID string) *ReplacePeerEntryAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *ReplacePeerEntryAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}
func (o *ReplacePeerEntryAccepted) WithPayload(payload *models.PeerEntry) *ReplacePeerEntryAccepted {
	o.Payload = payload
	return o
}