func NewCreateStickRuleAccepted() *CreateStickRuleAccepted {
	return &CreateStickRuleAccepted{}
}
NewCreateStickRuleAccepted creates CreateStickRuleAccepted with default headers values
package stick_rule
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const CreateStickRuleCreatedCode int = 201
type CreateStickRuleCreated struct {
	Payload *models.StickRule `json:"body,omitempty"`
}
func NewCreateStickRuleCreated() *CreateStickRuleCreated {
	return &CreateStickRuleCreated{}
}
func (o *CreateStickRuleCreated) WithPayload(payload *models.StickRule) *CreateStickRuleCreated {
	o.Payload = payload
	return o
}
func (o *CreateStickRuleCreated) SetPayload(payload *models.StickRule) {
	o.Payload = payload
}
func (o *CreateStickRuleCreated) 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 CreateStickRuleAcceptedCode int = 202
type CreateStickRuleAccepted struct {
	ReloadID string `json:"Reload-ID"`
	Payload *models.StickRule `json:"body,omitempty"`
}