func (o *CreateBackendAccepted) WithPayload(payload *models.Backend) *CreateBackendAccepted {
	o.Payload = payload
	return o
}
WithPayload adds the payload to the create backend accepted response
package backend
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const CreateBackendCreatedCode int = 201
type CreateBackendCreated struct {
	Payload *models.Backend `json:"body,omitempty"`
}
func NewCreateBackendCreated() *CreateBackendCreated {
	return &CreateBackendCreated{}
}
func (o *CreateBackendCreated) WithPayload(payload *models.Backend) *CreateBackendCreated {
	o.Payload = payload
	return o
}
func (o *CreateBackendCreated) SetPayload(payload *models.Backend) {
	o.Payload = payload
}
func (o *CreateBackendCreated) 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 CreateBackendAcceptedCode int = 202
type CreateBackendAccepted struct {
	ReloadID string `json:"Reload-ID"`
	Payload *models.Backend `json:"body,omitempty"`
}
func NewCreateBackendAccepted() *CreateBackendAccepted {
	return &CreateBackendAccepted{}
}
func (o *CreateBackendAccepted) WithReloadID(reloadID string) *CreateBackendAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *CreateBackendAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}