func (o *ReplaceLogTargetAccepted) SetPayload(payload *models.LogTarget) {
	o.Payload = payload
}
SetPayload sets the payload to the replace log target accepted response
package log_target
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const ReplaceLogTargetOKCode int = 200
type ReplaceLogTargetOK struct {
	Payload *models.LogTarget `json:"body,omitempty"`
}
func NewReplaceLogTargetOK() *ReplaceLogTargetOK {
	return &ReplaceLogTargetOK{}
}
func (o *ReplaceLogTargetOK) WithPayload(payload *models.LogTarget) *ReplaceLogTargetOK {
	o.Payload = payload
	return o
}
func (o *ReplaceLogTargetOK) SetPayload(payload *models.LogTarget) {
	o.Payload = payload
}
func (o *ReplaceLogTargetOK) 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 ReplaceLogTargetAcceptedCode int = 202
type ReplaceLogTargetAccepted struct {
	ReloadID string `json:"Reload-ID"`
	Payload *models.LogTarget `json:"body,omitempty"`
}
func NewReplaceLogTargetAccepted() *ReplaceLogTargetAccepted {
	return &ReplaceLogTargetAccepted{}
}
func (o *ReplaceLogTargetAccepted) WithReloadID(reloadID string) *ReplaceLogTargetAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *ReplaceLogTargetAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}
func (o *ReplaceLogTargetAccepted) WithPayload(payload *models.LogTarget) *ReplaceLogTargetAccepted {
	o.Payload = payload
	return o
}