func (o *CreateHTTPRequestRuleAccepted) SetPayload(payload *models.HTTPRequestRule) {
	o.Payload = payload
}
SetPayload sets the payload to the create Http request rule accepted response
package http_request_rule
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const CreateHTTPRequestRuleCreatedCode int = 201
type CreateHTTPRequestRuleCreated struct {
	Payload *models.HTTPRequestRule `json:"body,omitempty"`
}
func NewCreateHTTPRequestRuleCreated() *CreateHTTPRequestRuleCreated {
	return &CreateHTTPRequestRuleCreated{}
}
func (o *CreateHTTPRequestRuleCreated) WithPayload(payload *models.HTTPRequestRule) *CreateHTTPRequestRuleCreated {
	o.Payload = payload
	return o
}
func (o *CreateHTTPRequestRuleCreated) SetPayload(payload *models.HTTPRequestRule) {
	o.Payload = payload
}
func (o *CreateHTTPRequestRuleCreated) 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 CreateHTTPRequestRuleAcceptedCode int = 202
type CreateHTTPRequestRuleAccepted struct {
	ReloadID string `json:"Reload-ID"`
	Payload *models.HTTPRequestRule `json:"body,omitempty"`
}
func NewCreateHTTPRequestRuleAccepted() *CreateHTTPRequestRuleAccepted {
	return &CreateHTTPRequestRuleAccepted{}
}
func (o *CreateHTTPRequestRuleAccepted) WithReloadID(reloadID string) *CreateHTTPRequestRuleAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *CreateHTTPRequestRuleAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}
func (o *CreateHTTPRequestRuleAccepted) WithPayload(payload *models.HTTPRequestRule) *CreateHTTPRequestRuleAccepted {
	o.Payload = payload
	return o
}