func (o *StartTransactionTooManyRequests) SetPayload(payload *StartTransactionTooManyRequestsBody) {
	o.Payload = payload
}
SetPayload sets the payload to the start transaction too many requests response
package transactions
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const StartTransactionCreatedCode int = 201
type StartTransactionCreated struct {
	Payload *models.Transaction `json:"body,omitempty"`
}
func NewStartTransactionCreated() *StartTransactionCreated {
	return &StartTransactionCreated{}
}
func (o *StartTransactionCreated) WithPayload(payload *models.Transaction) *StartTransactionCreated {
	o.Payload = payload
	return o
}
func (o *StartTransactionCreated) SetPayload(payload *models.Transaction) {
	o.Payload = payload
}
func (o *StartTransactionCreated) 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 StartTransactionTooManyRequestsCode int = 429
type StartTransactionTooManyRequests struct {
	Payload *StartTransactionTooManyRequestsBody `json:"body,omitempty"`
}
func NewStartTransactionTooManyRequests() *StartTransactionTooManyRequests {
	return &StartTransactionTooManyRequests{}
}
func (o *StartTransactionTooManyRequests) WithPayload(payload *StartTransactionTooManyRequestsBody) *StartTransactionTooManyRequests {
	o.Payload = payload
	return o
}