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