func (o *GetSpoeGroupDefault) WithStatusCode(code int) *GetSpoeGroupDefault {
	o._statusCode = code
	return o
}
WithStatusCode adds the status to the get spoe group default response
package spoe
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const GetSpoeGroupOKCode int = 200
type GetSpoeGroupOK struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *GetSpoeGroupOKBody `json:"body,omitempty"`
}
func NewGetSpoeGroupOK() *GetSpoeGroupOK {
	return &GetSpoeGroupOK{}
}
func (o *GetSpoeGroupOK) WithConfigurationVersion(configurationVersion string) *GetSpoeGroupOK {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetSpoeGroupOK) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetSpoeGroupOK) WithPayload(payload *GetSpoeGroupOKBody) *GetSpoeGroupOK {
	o.Payload = payload
	return o
}
func (o *GetSpoeGroupOK) SetPayload(payload *GetSpoeGroupOKBody) {
	o.Payload = payload
}
func (o *GetSpoeGroupOK) 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 GetSpoeGroupNotFoundCode int = 404
type GetSpoeGroupNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetSpoeGroupNotFound() *GetSpoeGroupNotFound {
	return &GetSpoeGroupNotFound{}
}
func (o *GetSpoeGroupNotFound) WithConfigurationVersion(configurationVersion string) *GetSpoeGroupNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetSpoeGroupNotFound) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetSpoeGroupNotFound) WithPayload(payload *models.Error) *GetSpoeGroupNotFound {
	o.Payload = payload
	return o
}
func (o *GetSpoeGroupNotFound) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *GetSpoeGroupNotFound) 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 GetSpoeGroupDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetSpoeGroupDefault(code int) *GetSpoeGroupDefault {
	if code <= 0 {
		code = 500
	}
	return &GetSpoeGroupDefault{
		_statusCode: code,
	}
}