func NewCreateSpoeGroupConflict() *CreateSpoeGroupConflict {
	return &CreateSpoeGroupConflict{}
}
NewCreateSpoeGroupConflict creates CreateSpoeGroupConflict with default headers values
package spoe
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const CreateSpoeGroupCreatedCode int = 201
type CreateSpoeGroupCreated struct {
	Payload *models.SpoeGroup `json:"body,omitempty"`
}
func NewCreateSpoeGroupCreated() *CreateSpoeGroupCreated {
	return &CreateSpoeGroupCreated{}
}
func (o *CreateSpoeGroupCreated) WithPayload(payload *models.SpoeGroup) *CreateSpoeGroupCreated {
	o.Payload = payload
	return o
}
func (o *CreateSpoeGroupCreated) SetPayload(payload *models.SpoeGroup) {
	o.Payload = payload
}
func (o *CreateSpoeGroupCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.WriteHeader(201)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const CreateSpoeGroupBadRequestCode int = 400
type CreateSpoeGroupBadRequest struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewCreateSpoeGroupBadRequest() *CreateSpoeGroupBadRequest {
	return &CreateSpoeGroupBadRequest{}
}
func (o *CreateSpoeGroupBadRequest) WithConfigurationVersion(configurationVersion string) *CreateSpoeGroupBadRequest {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *CreateSpoeGroupBadRequest) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *CreateSpoeGroupBadRequest) WithPayload(payload *models.Error) *CreateSpoeGroupBadRequest {
	o.Payload = payload
	return o
}
func (o *CreateSpoeGroupBadRequest) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *CreateSpoeGroupBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	configurationVersion := o.ConfigurationVersion
	if configurationVersion != "" {
		rw.Header().Set("Configuration-Version", configurationVersion)
	}
	rw.WriteHeader(400)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const CreateSpoeGroupConflictCode int = 409
type CreateSpoeGroupConflict struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}