func (o *GetRuntimeServerDefault) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
SetConfigurationVersion sets the configurationVersion to the get runtime server default response
package server
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const GetRuntimeServerOKCode int = 200
type GetRuntimeServerOK struct {
	Payload *models.RuntimeServer `json:"body,omitempty"`
}
func NewGetRuntimeServerOK() *GetRuntimeServerOK {
	return &GetRuntimeServerOK{}
}
func (o *GetRuntimeServerOK) WithPayload(payload *models.RuntimeServer) *GetRuntimeServerOK {
	o.Payload = payload
	return o
}
func (o *GetRuntimeServerOK) SetPayload(payload *models.RuntimeServer) {
	o.Payload = payload
}
func (o *GetRuntimeServerOK) 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 GetRuntimeServerNotFoundCode int = 404
type GetRuntimeServerNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetRuntimeServerNotFound() *GetRuntimeServerNotFound {
	return &GetRuntimeServerNotFound{}
}
func (o *GetRuntimeServerNotFound) WithConfigurationVersion(configurationVersion string) *GetRuntimeServerNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetRuntimeServerNotFound) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetRuntimeServerNotFound) WithPayload(payload *models.Error) *GetRuntimeServerNotFound {
	o.Payload = payload
	return o
}
func (o *GetRuntimeServerNotFound) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *GetRuntimeServerNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	configurationVersion := o.ConfigurationVersion
	if configurationVersion != "" {
		rw.Header().Set("Configuration-Version", configurationVersion)
	}
	rw.WriteHeader(404)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
type GetRuntimeServerDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetRuntimeServerDefault(code int) *GetRuntimeServerDefault {
	if code <= 0 {
		code = 500
	}
	return &GetRuntimeServerDefault{
		_statusCode: code,
	}
}
func (o *GetRuntimeServerDefault) WithStatusCode(code int) *GetRuntimeServerDefault {
	o._statusCode = code
	return o
}
func (o *GetRuntimeServerDefault) SetStatusCode(code int) {
	o._statusCode = code
}
func (o *GetRuntimeServerDefault) WithConfigurationVersion(configurationVersion string) *GetRuntimeServerDefault {
	o.ConfigurationVersion = configurationVersion
	return o
}