func (o *CreatePeerEntryDefault) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
SetConfigurationVersion sets the configurationVersion to the create peer entry default response
package peer_entry
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const CreatePeerEntryCreatedCode int = 201
type CreatePeerEntryCreated struct {
	Payload *models.PeerEntry `json:"body,omitempty"`
}
func NewCreatePeerEntryCreated() *CreatePeerEntryCreated {
	return &CreatePeerEntryCreated{}
}
func (o *CreatePeerEntryCreated) WithPayload(payload *models.PeerEntry) *CreatePeerEntryCreated {
	o.Payload = payload
	return o
}
func (o *CreatePeerEntryCreated) SetPayload(payload *models.PeerEntry) {
	o.Payload = payload
}
func (o *CreatePeerEntryCreated) 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 CreatePeerEntryAcceptedCode int = 202
type CreatePeerEntryAccepted struct {
	ReloadID string `json:"Reload-ID"`
	Payload *models.PeerEntry `json:"body,omitempty"`
}
func NewCreatePeerEntryAccepted() *CreatePeerEntryAccepted {
	return &CreatePeerEntryAccepted{}
}
func (o *CreatePeerEntryAccepted) WithReloadID(reloadID string) *CreatePeerEntryAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *CreatePeerEntryAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}
func (o *CreatePeerEntryAccepted) WithPayload(payload *models.PeerEntry) *CreatePeerEntryAccepted {
	o.Payload = payload
	return o
}
func (o *CreatePeerEntryAccepted) SetPayload(payload *models.PeerEntry) {
	o.Payload = payload
}
func (o *CreatePeerEntryAccepted) 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 CreatePeerEntryBadRequestCode int = 400
type CreatePeerEntryBadRequest struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewCreatePeerEntryBadRequest() *CreatePeerEntryBadRequest {
	return &CreatePeerEntryBadRequest{}
}
func (o *CreatePeerEntryBadRequest) WithConfigurationVersion(configurationVersion string) *CreatePeerEntryBadRequest {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *CreatePeerEntryBadRequest) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *CreatePeerEntryBadRequest) WithPayload(payload *models.Error) *CreatePeerEntryBadRequest {
	o.Payload = payload
	return o
}
func (o *CreatePeerEntryBadRequest) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *CreatePeerEntryBadRequest) 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 CreatePeerEntryConflictCode int = 409
type CreatePeerEntryConflict struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewCreatePeerEntryConflict() *CreatePeerEntryConflict {
	return &CreatePeerEntryConflict{}
}
func (o *CreatePeerEntryConflict) WithConfigurationVersion(configurationVersion string) *CreatePeerEntryConflict {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *CreatePeerEntryConflict) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *CreatePeerEntryConflict) WithPayload(payload *models.Error) *CreatePeerEntryConflict {
	o.Payload = payload
	return o
}
func (o *CreatePeerEntryConflict) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *CreatePeerEntryConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	configurationVersion := o.ConfigurationVersion
	if configurationVersion != "" {
		rw.Header().Set("Configuration-Version", configurationVersion)
	}
	rw.WriteHeader(409)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
type CreatePeerEntryDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewCreatePeerEntryDefault(code int) *CreatePeerEntryDefault {
	if code <= 0 {
		code = 500
	}
	return &CreatePeerEntryDefault{
		_statusCode: code,
	}
}
func (o *CreatePeerEntryDefault) WithStatusCode(code int) *CreatePeerEntryDefault {
	o._statusCode = code
	return o
}
func (o *CreatePeerEntryDefault) SetStatusCode(code int) {
	o._statusCode = code
}
func (o *CreatePeerEntryDefault) WithConfigurationVersion(configurationVersion string) *CreatePeerEntryDefault {
	o.ConfigurationVersion = configurationVersion
	return o
}