func (o *GetBackendDefault) WithStatusCode(code int) *GetBackendDefault {
	o._statusCode = code
	return o
}
WithStatusCode adds the status to the get backend default response
package backend
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const GetBackendOKCode int = 200
type GetBackendOK struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *GetBackendOKBody `json:"body,omitempty"`
}
func NewGetBackendOK() *GetBackendOK {
	return &GetBackendOK{}
}
func (o *GetBackendOK) WithConfigurationVersion(configurationVersion string) *GetBackendOK {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetBackendOK) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetBackendOK) WithPayload(payload *GetBackendOKBody) *GetBackendOK {
	o.Payload = payload
	return o
}
func (o *GetBackendOK) SetPayload(payload *GetBackendOKBody) {
	o.Payload = payload
}
func (o *GetBackendOK) 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 GetBackendNotFoundCode int = 404
type GetBackendNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetBackendNotFound() *GetBackendNotFound {
	return &GetBackendNotFound{}
}
func (o *GetBackendNotFound) WithConfigurationVersion(configurationVersion string) *GetBackendNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetBackendNotFound) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetBackendNotFound) WithPayload(payload *models.Error) *GetBackendNotFound {
	o.Payload = payload
	return o
}
func (o *GetBackendNotFound) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *GetBackendNotFound) 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 GetBackendDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetBackendDefault(code int) *GetBackendDefault {
	if code <= 0 {
		code = 500
	}
	return &GetBackendDefault{
		_statusCode: code,
	}
}