func (o *CreateConsulBadRequest) WithConfigurationVersion(configurationVersion string) *CreateConsulBadRequest {
	o.ConfigurationVersion = configurationVersion
	return o
}
WithConfigurationVersion adds the configurationVersion to the create consul bad request response
package service_discovery
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const CreateConsulCreatedCode int = 201
type CreateConsulCreated struct {
	Payload *models.Consul `json:"body,omitempty"`
}
func NewCreateConsulCreated() *CreateConsulCreated {
	return &CreateConsulCreated{}
}
func (o *CreateConsulCreated) WithPayload(payload *models.Consul) *CreateConsulCreated {
	o.Payload = payload
	return o
}
func (o *CreateConsulCreated) SetPayload(payload *models.Consul) {
	o.Payload = payload
}
func (o *CreateConsulCreated) 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 CreateConsulBadRequestCode int = 400
type CreateConsulBadRequest struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewCreateConsulBadRequest() *CreateConsulBadRequest {
	return &CreateConsulBadRequest{}
}