func NewCommitSpoeTransactionNotFound() *CommitSpoeTransactionNotFound {
	return &CommitSpoeTransactionNotFound{}
}
NewCommitSpoeTransactionNotFound creates CommitSpoeTransactionNotFound with default headers values
package spoe_transactions
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const CommitSpoeTransactionOKCode int = 200
type CommitSpoeTransactionOK struct {
	Payload *models.SpoeTransaction `json:"body,omitempty"`
}
func NewCommitSpoeTransactionOK() *CommitSpoeTransactionOK {
	return &CommitSpoeTransactionOK{}
}
func (o *CommitSpoeTransactionOK) WithPayload(payload *models.SpoeTransaction) *CommitSpoeTransactionOK {
	o.Payload = payload
	return o
}
func (o *CommitSpoeTransactionOK) SetPayload(payload *models.SpoeTransaction) {
	o.Payload = payload
}
func (o *CommitSpoeTransactionOK) 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 CommitSpoeTransactionAcceptedCode int = 202
type CommitSpoeTransactionAccepted struct {
	ReloadID string `json:"Reload-ID"`
	Payload *models.SpoeTransaction `json:"body,omitempty"`
}
func NewCommitSpoeTransactionAccepted() *CommitSpoeTransactionAccepted {
	return &CommitSpoeTransactionAccepted{}
}
func (o *CommitSpoeTransactionAccepted) WithReloadID(reloadID string) *CommitSpoeTransactionAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *CommitSpoeTransactionAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}
func (o *CommitSpoeTransactionAccepted) WithPayload(payload *models.SpoeTransaction) *CommitSpoeTransactionAccepted {
	o.Payload = payload
	return o
}
func (o *CommitSpoeTransactionAccepted) SetPayload(payload *models.SpoeTransaction) {
	o.Payload = payload
}
func (o *CommitSpoeTransactionAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	reloadID := o.ReloadID
	if reloadID != "" {
		rw.Header().Set("Reload-ID", reloadID)
	}
	rw.WriteHeader(202)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const CommitSpoeTransactionBadRequestCode int = 400
type CommitSpoeTransactionBadRequest struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewCommitSpoeTransactionBadRequest() *CommitSpoeTransactionBadRequest {
	return &CommitSpoeTransactionBadRequest{}
}
func (o *CommitSpoeTransactionBadRequest) WithConfigurationVersion(configurationVersion string) *CommitSpoeTransactionBadRequest {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *CommitSpoeTransactionBadRequest) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *CommitSpoeTransactionBadRequest) WithPayload(payload *models.Error) *CommitSpoeTransactionBadRequest {
	o.Payload = payload
	return o
}
func (o *CommitSpoeTransactionBadRequest) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *CommitSpoeTransactionBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	configurationVersion := o.ConfigurationVersion
	if configurationVersion != "" {
		rw.Header().Set("Configuration-Version", configurationVersion)
	}
	rw.WriteHeader(400)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const CommitSpoeTransactionNotFoundCode int = 404
type CommitSpoeTransactionNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}