func (o *DeleteBackendSwitchingRuleDefault) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
SetConfigurationVersion sets the configurationVersion to the delete backend switching rule default response
package backend_switching_rule
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const DeleteBackendSwitchingRuleAcceptedCode int = 202
type DeleteBackendSwitchingRuleAccepted struct {
	ReloadID string `json:"Reload-ID"`
}
func NewDeleteBackendSwitchingRuleAccepted() *DeleteBackendSwitchingRuleAccepted {
	return &DeleteBackendSwitchingRuleAccepted{}
}
func (o *DeleteBackendSwitchingRuleAccepted) WithReloadID(reloadID string) *DeleteBackendSwitchingRuleAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *DeleteBackendSwitchingRuleAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}
func (o *DeleteBackendSwitchingRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	reloadID := o.ReloadID
	if reloadID != "" {
		rw.Header().Set("Reload-ID", reloadID)
	}
	rw.Header().Del(runtime.HeaderContentType)  
	rw.WriteHeader(202)
}
const DeleteBackendSwitchingRuleNoContentCode int = 204
type DeleteBackendSwitchingRuleNoContent struct {
}
func NewDeleteBackendSwitchingRuleNoContent() *DeleteBackendSwitchingRuleNoContent {
	return &DeleteBackendSwitchingRuleNoContent{}
}
func (o *DeleteBackendSwitchingRuleNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.Header().Del(runtime.HeaderContentType)  
	rw.WriteHeader(204)
}
const DeleteBackendSwitchingRuleNotFoundCode int = 404
type DeleteBackendSwitchingRuleNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewDeleteBackendSwitchingRuleNotFound() *DeleteBackendSwitchingRuleNotFound {
	return &DeleteBackendSwitchingRuleNotFound{}
}
func (o *DeleteBackendSwitchingRuleNotFound) WithConfigurationVersion(configurationVersion string) *DeleteBackendSwitchingRuleNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *DeleteBackendSwitchingRuleNotFound) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *DeleteBackendSwitchingRuleNotFound) WithPayload(payload *models.Error) *DeleteBackendSwitchingRuleNotFound {
	o.Payload = payload
	return o
}
func (o *DeleteBackendSwitchingRuleNotFound) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *DeleteBackendSwitchingRuleNotFound) 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 DeleteBackendSwitchingRuleDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewDeleteBackendSwitchingRuleDefault(code int) *DeleteBackendSwitchingRuleDefault {
	if code <= 0 {
		code = 500
	}
	return &DeleteBackendSwitchingRuleDefault{
		_statusCode: code,
	}
}
func (o *DeleteBackendSwitchingRuleDefault) WithStatusCode(code int) *DeleteBackendSwitchingRuleDefault {
	o._statusCode = code
	return o
}
func (o *DeleteBackendSwitchingRuleDefault) SetStatusCode(code int) {
	o._statusCode = code
}
func (o *DeleteBackendSwitchingRuleDefault) WithConfigurationVersion(configurationVersion string) *DeleteBackendSwitchingRuleDefault {
	o.ConfigurationVersion = configurationVersion
	return o
}