func (o *CreateSiteAccepted) SetPayload(payload *models.Site) {
	o.Payload = payload
}
SetPayload sets the payload to the create site accepted response
package sites
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const CreateSiteCreatedCode int = 201
type CreateSiteCreated struct {
	Payload *models.Site `json:"body,omitempty"`
}
func NewCreateSiteCreated() *CreateSiteCreated {
	return &CreateSiteCreated{}
}
func (o *CreateSiteCreated) WithPayload(payload *models.Site) *CreateSiteCreated {
	o.Payload = payload
	return o
}
func (o *CreateSiteCreated) SetPayload(payload *models.Site) {
	o.Payload = payload
}
func (o *CreateSiteCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.WriteHeader(201)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const CreateSiteAcceptedCode int = 202
type CreateSiteAccepted struct {
	ReloadID string `json:"Reload-ID"`
	Payload *models.Site `json:"body,omitempty"`
}
func NewCreateSiteAccepted() *CreateSiteAccepted {
	return &CreateSiteAccepted{}
}
func (o *CreateSiteAccepted) WithReloadID(reloadID string) *CreateSiteAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *CreateSiteAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}
func (o *CreateSiteAccepted) WithPayload(payload *models.Site) *CreateSiteAccepted {
	o.Payload = payload
	return o
}