func (o *CreateServerTemplateAccepted) WithPayload(payload *models.ServerTemplate) *CreateServerTemplateAccepted {
	o.Payload = payload
	return o
}
WithPayload adds the payload to the create server template accepted response
package server_template
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const CreateServerTemplateCreatedCode int = 201
type CreateServerTemplateCreated struct {
	Payload *models.ServerTemplate `json:"body,omitempty"`
}
func NewCreateServerTemplateCreated() *CreateServerTemplateCreated {
	return &CreateServerTemplateCreated{}
}
func (o *CreateServerTemplateCreated) WithPayload(payload *models.ServerTemplate) *CreateServerTemplateCreated {
	o.Payload = payload
	return o
}
func (o *CreateServerTemplateCreated) SetPayload(payload *models.ServerTemplate) {
	o.Payload = payload
}
func (o *CreateServerTemplateCreated) 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 CreateServerTemplateAcceptedCode int = 202
type CreateServerTemplateAccepted struct {
	ReloadID string `json:"Reload-ID"`
	Payload *models.ServerTemplate `json:"body,omitempty"`
}
func NewCreateServerTemplateAccepted() *CreateServerTemplateAccepted {
	return &CreateServerTemplateAccepted{}
}
func (o *CreateServerTemplateAccepted) WithReloadID(reloadID string) *CreateServerTemplateAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *CreateServerTemplateAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}