func (o *GetSpoeAgentsDefault) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
SetConfigurationVersion sets the configurationVersion to the get spoe agents default response
package spoe
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const GetSpoeAgentsOKCode int = 200
type GetSpoeAgentsOK struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *GetSpoeAgentsOKBody `json:"body,omitempty"`
}
func NewGetSpoeAgentsOK() *GetSpoeAgentsOK {
	return &GetSpoeAgentsOK{}
}
func (o *GetSpoeAgentsOK) WithConfigurationVersion(configurationVersion string) *GetSpoeAgentsOK {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetSpoeAgentsOK) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetSpoeAgentsOK) WithPayload(payload *GetSpoeAgentsOKBody) *GetSpoeAgentsOK {
	o.Payload = payload
	return o
}
func (o *GetSpoeAgentsOK) SetPayload(payload *GetSpoeAgentsOKBody) {
	o.Payload = payload
}
func (o *GetSpoeAgentsOK) 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)  
		}
	}
}
type GetSpoeAgentsDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetSpoeAgentsDefault(code int) *GetSpoeAgentsDefault {
	if code <= 0 {
		code = 500
	}
	return &GetSpoeAgentsDefault{
		_statusCode: code,
	}
}
func (o *GetSpoeAgentsDefault) WithStatusCode(code int) *GetSpoeAgentsDefault {
	o._statusCode = code
	return o
}
func (o *GetSpoeAgentsDefault) SetStatusCode(code int) {
	o._statusCode = code
}
func (o *GetSpoeAgentsDefault) WithConfigurationVersion(configurationVersion string) *GetSpoeAgentsDefault {
	o.ConfigurationVersion = configurationVersion
	return o
}