func (o *CreatePeerDefault) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
SetConfigurationVersion sets the configurationVersion to the create peer default response
package peer
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const CreatePeerCreatedCode int = 201
type CreatePeerCreated struct {
	Payload *models.PeerSection `json:"body,omitempty"`
}
func NewCreatePeerCreated() *CreatePeerCreated {
	return &CreatePeerCreated{}
}
func (o *CreatePeerCreated) WithPayload(payload *models.PeerSection) *CreatePeerCreated {
	o.Payload = payload
	return o
}
func (o *CreatePeerCreated) SetPayload(payload *models.PeerSection) {
	o.Payload = payload
}
func (o *CreatePeerCreated) 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 CreatePeerAcceptedCode int = 202
type CreatePeerAccepted struct {
	ReloadID string `json:"Reload-ID"`
	Payload *models.PeerSection `json:"body,omitempty"`
}
func NewCreatePeerAccepted() *CreatePeerAccepted {
	return &CreatePeerAccepted{}
}
func (o *CreatePeerAccepted) WithReloadID(reloadID string) *CreatePeerAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *CreatePeerAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}
func (o *CreatePeerAccepted) WithPayload(payload *models.PeerSection) *CreatePeerAccepted {
	o.Payload = payload
	return o
}
func (o *CreatePeerAccepted) SetPayload(payload *models.PeerSection) {
	o.Payload = payload
}
func (o *CreatePeerAccepted) 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 CreatePeerBadRequestCode int = 400
type CreatePeerBadRequest struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewCreatePeerBadRequest() *CreatePeerBadRequest {
	return &CreatePeerBadRequest{}
}
func (o *CreatePeerBadRequest) WithConfigurationVersion(configurationVersion string) *CreatePeerBadRequest {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *CreatePeerBadRequest) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *CreatePeerBadRequest) WithPayload(payload *models.Error) *CreatePeerBadRequest {
	o.Payload = payload
	return o
}
func (o *CreatePeerBadRequest) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *CreatePeerBadRequest) 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 CreatePeerConflictCode int = 409
type CreatePeerConflict struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewCreatePeerConflict() *CreatePeerConflict {
	return &CreatePeerConflict{}
}
func (o *CreatePeerConflict) WithConfigurationVersion(configurationVersion string) *CreatePeerConflict {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *CreatePeerConflict) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *CreatePeerConflict) WithPayload(payload *models.Error) *CreatePeerConflict {
	o.Payload = payload
	return o
}
func (o *CreatePeerConflict) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *CreatePeerConflict) 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 CreatePeerDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewCreatePeerDefault(code int) *CreatePeerDefault {
	if code <= 0 {
		code = 500
	}
	return &CreatePeerDefault{
		_statusCode: code,
	}
}
func (o *CreatePeerDefault) WithStatusCode(code int) *CreatePeerDefault {
	o._statusCode = code
	return o
}
func (o *CreatePeerDefault) SetStatusCode(code int) {
	o._statusCode = code
}
func (o *CreatePeerDefault) WithConfigurationVersion(configurationVersion string) *CreatePeerDefault {
	o.ConfigurationVersion = configurationVersion
	return o
}