func (o *ReplaceGlobalAccepted) WithReloadID(reloadID string) *ReplaceGlobalAccepted {
	o.ReloadID = reloadID
	return o
}
WithReloadID adds the reloadId to the replace global accepted response
package global
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const ReplaceGlobalOKCode int = 200
type ReplaceGlobalOK struct {
	Payload *models.Global `json:"body,omitempty"`
}
func NewReplaceGlobalOK() *ReplaceGlobalOK {
	return &ReplaceGlobalOK{}
}
func (o *ReplaceGlobalOK) WithPayload(payload *models.Global) *ReplaceGlobalOK {
	o.Payload = payload
	return o
}
func (o *ReplaceGlobalOK) SetPayload(payload *models.Global) {
	o.Payload = payload
}
func (o *ReplaceGlobalOK) 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 ReplaceGlobalAcceptedCode int = 202
type ReplaceGlobalAccepted struct {
	ReloadID string `json:"Reload-ID"`
	Payload *models.Global `json:"body,omitempty"`
}
func NewReplaceGlobalAccepted() *ReplaceGlobalAccepted {
	return &ReplaceGlobalAccepted{}
}