func (o *GetConfigurationEndpointsDefault) WithConfigurationVersion(configurationVersion string) *GetConfigurationEndpointsDefault {
	o.ConfigurationVersion = configurationVersion
	return o
}
WithConfigurationVersion adds the configurationVersion to the get configuration endpoints default response
package discovery
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const GetConfigurationEndpointsOKCode int = 200
type GetConfigurationEndpointsOK struct {
	Payload models.Endpoints `json:"body,omitempty"`
}
func NewGetConfigurationEndpointsOK() *GetConfigurationEndpointsOK {
	return &GetConfigurationEndpointsOK{}
}
func (o *GetConfigurationEndpointsOK) WithPayload(payload models.Endpoints) *GetConfigurationEndpointsOK {
	o.Payload = payload
	return o
}
func (o *GetConfigurationEndpointsOK) SetPayload(payload models.Endpoints) {
	o.Payload = payload
}
func (o *GetConfigurationEndpointsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.WriteHeader(200)
	payload := o.Payload
	if payload == nil {
		payload = models.Endpoints{}
	}
	if err := producer.Produce(rw, payload); err != nil {
		panic(err)  
	}
}
type GetConfigurationEndpointsDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetConfigurationEndpointsDefault(code int) *GetConfigurationEndpointsDefault {
	if code <= 0 {
		code = 500
	}
	return &GetConfigurationEndpointsDefault{
		_statusCode: code,
	}
}
func (o *GetConfigurationEndpointsDefault) WithStatusCode(code int) *GetConfigurationEndpointsDefault {
	o._statusCode = code
	return o
}
func (o *GetConfigurationEndpointsDefault) SetStatusCode(code int) {
	o._statusCode = code
}