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