func (o *ReplaceDefaultsOK) SetPayload(payload *models.Defaults) {
	o.Payload = payload
}
SetPayload sets the payload to the replace defaults o k response
package defaults
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const ReplaceDefaultsOKCode int = 200
type ReplaceDefaultsOK struct {
	Payload *models.Defaults `json:"body,omitempty"`
}
func NewReplaceDefaultsOK() *ReplaceDefaultsOK {
	return &ReplaceDefaultsOK{}
}
func (o *ReplaceDefaultsOK) WithPayload(payload *models.Defaults) *ReplaceDefaultsOK {
	o.Payload = payload
	return o
}