func (o *GetServerNotFound) SetPayload(payload *models.Error) {
	o.Payload = payload
}
SetPayload sets the payload to the get server not found response
package server
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const GetServerOKCode int = 200
type GetServerOK struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *GetServerOKBody `json:"body,omitempty"`
}
func NewGetServerOK() *GetServerOK {
	return &GetServerOK{}
}
func (o *GetServerOK) WithConfigurationVersion(configurationVersion string) *GetServerOK {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetServerOK) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetServerOK) WithPayload(payload *GetServerOKBody) *GetServerOK {
	o.Payload = payload
	return o
}
func (o *GetServerOK) SetPayload(payload *GetServerOKBody) {
	o.Payload = payload
}
func (o *GetServerOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	configurationVersion := o.ConfigurationVersion
	if configurationVersion != "" {
		rw.Header().Set("Configuration-Version", configurationVersion)
	}
	rw.WriteHeader(200)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const GetServerNotFoundCode int = 404
type GetServerNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetServerNotFound() *GetServerNotFound {
	return &GetServerNotFound{}
}
func (o *GetServerNotFound) WithConfigurationVersion(configurationVersion string) *GetServerNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetServerNotFound) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetServerNotFound) WithPayload(payload *models.Error) *GetServerNotFound {
	o.Payload = payload
	return o
}