func (o *ReplaceSpoeGroupBadRequest) WithConfigurationVersion(configurationVersion string) *ReplaceSpoeGroupBadRequest {
	o.ConfigurationVersion = configurationVersion
	return o
}
WithConfigurationVersion adds the configurationVersion to the replace spoe group bad request response
package spoe
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const ReplaceSpoeGroupOKCode int = 200
type ReplaceSpoeGroupOK struct {
	Payload *models.SpoeGroup `json:"body,omitempty"`
}
func NewReplaceSpoeGroupOK() *ReplaceSpoeGroupOK {
	return &ReplaceSpoeGroupOK{}
}
func (o *ReplaceSpoeGroupOK) WithPayload(payload *models.SpoeGroup) *ReplaceSpoeGroupOK {
	o.Payload = payload
	return o
}
func (o *ReplaceSpoeGroupOK) SetPayload(payload *models.SpoeGroup) {
	o.Payload = payload
}
func (o *ReplaceSpoeGroupOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.WriteHeader(200)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const ReplaceSpoeGroupBadRequestCode int = 400
type ReplaceSpoeGroupBadRequest struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewReplaceSpoeGroupBadRequest() *ReplaceSpoeGroupBadRequest {
	return &ReplaceSpoeGroupBadRequest{}
}