func (o *DeleteServerSwitchingRuleDefault) SetStatusCode(code int) {
	o._statusCode = code
}
SetStatusCode sets the status to the delete server switching rule default response
package server_switching_rule
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const DeleteServerSwitchingRuleAcceptedCode int = 202
type DeleteServerSwitchingRuleAccepted struct {
	ReloadID string `json:"Reload-ID"`
}
func NewDeleteServerSwitchingRuleAccepted() *DeleteServerSwitchingRuleAccepted {
	return &DeleteServerSwitchingRuleAccepted{}
}
func (o *DeleteServerSwitchingRuleAccepted) WithReloadID(reloadID string) *DeleteServerSwitchingRuleAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *DeleteServerSwitchingRuleAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}
func (o *DeleteServerSwitchingRuleAccepted) 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 DeleteServerSwitchingRuleNoContentCode int = 204
type DeleteServerSwitchingRuleNoContent struct {
}
func NewDeleteServerSwitchingRuleNoContent() *DeleteServerSwitchingRuleNoContent {
	return &DeleteServerSwitchingRuleNoContent{}
}
func (o *DeleteServerSwitchingRuleNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.Header().Del(runtime.HeaderContentType)  
	rw.WriteHeader(204)
}
const DeleteServerSwitchingRuleNotFoundCode int = 404
type DeleteServerSwitchingRuleNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewDeleteServerSwitchingRuleNotFound() *DeleteServerSwitchingRuleNotFound {
	return &DeleteServerSwitchingRuleNotFound{}
}
func (o *DeleteServerSwitchingRuleNotFound) WithConfigurationVersion(configurationVersion string) *DeleteServerSwitchingRuleNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *DeleteServerSwitchingRuleNotFound) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *DeleteServerSwitchingRuleNotFound) WithPayload(payload *models.Error) *DeleteServerSwitchingRuleNotFound {
	o.Payload = payload
	return o
}
func (o *DeleteServerSwitchingRuleNotFound) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *DeleteServerSwitchingRuleNotFound) 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 DeleteServerSwitchingRuleDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewDeleteServerSwitchingRuleDefault(code int) *DeleteServerSwitchingRuleDefault {
	if code <= 0 {
		code = 500
	}
	return &DeleteServerSwitchingRuleDefault{
		_statusCode: code,
	}
}
func (o *DeleteServerSwitchingRuleDefault) WithStatusCode(code int) *DeleteServerSwitchingRuleDefault {
	o._statusCode = code
	return o
}