func (o *ReplaceBindBadRequest) SetPayload(payload *models.Error) {
	o.Payload = payload
}
SetPayload sets the payload to the replace bind bad request response
package bind
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const ReplaceBindOKCode int = 200
type ReplaceBindOK struct {
	Payload *models.Bind `json:"body,omitempty"`
}
func NewReplaceBindOK() *ReplaceBindOK {
	return &ReplaceBindOK{}
}
func (o *ReplaceBindOK) WithPayload(payload *models.Bind) *ReplaceBindOK {
	o.Payload = payload
	return o
}
func (o *ReplaceBindOK) SetPayload(payload *models.Bind) {
	o.Payload = payload
}
func (o *ReplaceBindOK) 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 ReplaceBindAcceptedCode int = 202
type ReplaceBindAccepted struct {
	ReloadID string `json:"Reload-ID"`
	Payload *models.Bind `json:"body,omitempty"`
}
func NewReplaceBindAccepted() *ReplaceBindAccepted {
	return &ReplaceBindAccepted{}
}
func (o *ReplaceBindAccepted) WithReloadID(reloadID string) *ReplaceBindAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *ReplaceBindAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}
func (o *ReplaceBindAccepted) WithPayload(payload *models.Bind) *ReplaceBindAccepted {
	o.Payload = payload
	return o
}
func (o *ReplaceBindAccepted) SetPayload(payload *models.Bind) {
	o.Payload = payload
}
func (o *ReplaceBindAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	reloadID := o.ReloadID
	if reloadID != "" {
		rw.Header().Set("Reload-ID", reloadID)
	}
	rw.WriteHeader(202)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const ReplaceBindBadRequestCode int = 400
type ReplaceBindBadRequest struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewReplaceBindBadRequest() *ReplaceBindBadRequest {
	return &ReplaceBindBadRequest{}
}
func (o *ReplaceBindBadRequest) WithConfigurationVersion(configurationVersion string) *ReplaceBindBadRequest {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *ReplaceBindBadRequest) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *ReplaceBindBadRequest) WithPayload(payload *models.Error) *ReplaceBindBadRequest {
	o.Payload = payload
	return o
}