func (o *GetReloadsDefault) WithPayload(payload *models.Error) *GetReloadsDefault {
	o.Payload = payload
	return o
}
WithPayload adds the payload to the get reloads default response
package reloads
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const GetReloadsOKCode int = 200
type GetReloadsOK struct {
	Payload models.Reloads `json:"body,omitempty"`
}
func NewGetReloadsOK() *GetReloadsOK {
	return &GetReloadsOK{}
}
func (o *GetReloadsOK) WithPayload(payload models.Reloads) *GetReloadsOK {
	o.Payload = payload
	return o
}
func (o *GetReloadsOK) SetPayload(payload models.Reloads) {
	o.Payload = payload
}
func (o *GetReloadsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.WriteHeader(200)
	payload := o.Payload
	if payload == nil {
		payload = models.Reloads{}
	}
	if err := producer.Produce(rw, payload); err != nil {
		panic(err)  
	}
}
type GetReloadsDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetReloadsDefault(code int) *GetReloadsDefault {
	if code <= 0 {
		code = 500
	}
	return &GetReloadsDefault{
		_statusCode: code,
	}
}
func (o *GetReloadsDefault) WithStatusCode(code int) *GetReloadsDefault {
	o._statusCode = code
	return o
}
func (o *GetReloadsDefault) SetStatusCode(code int) {
	o._statusCode = code
}
func (o *GetReloadsDefault) WithConfigurationVersion(configurationVersion string) *GetReloadsDefault {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetReloadsDefault) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}