func (o *DeleteTCPResponseRuleDefault) SetPayload(payload *models.Error) {
	o.Payload = payload
}
SetPayload sets the payload to the delete TCP response rule default response
package tcp_response_rule
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const DeleteTCPResponseRuleAcceptedCode int = 202
type DeleteTCPResponseRuleAccepted struct {
	ReloadID string `json:"Reload-ID"`
}
func NewDeleteTCPResponseRuleAccepted() *DeleteTCPResponseRuleAccepted {
	return &DeleteTCPResponseRuleAccepted{}
}
func (o *DeleteTCPResponseRuleAccepted) WithReloadID(reloadID string) *DeleteTCPResponseRuleAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *DeleteTCPResponseRuleAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}
func (o *DeleteTCPResponseRuleAccepted) 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 DeleteTCPResponseRuleNoContentCode int = 204
type DeleteTCPResponseRuleNoContent struct {
}
func NewDeleteTCPResponseRuleNoContent() *DeleteTCPResponseRuleNoContent {
	return &DeleteTCPResponseRuleNoContent{}
}
func (o *DeleteTCPResponseRuleNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.Header().Del(runtime.HeaderContentType)  
	rw.WriteHeader(204)
}
const DeleteTCPResponseRuleNotFoundCode int = 404
type DeleteTCPResponseRuleNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewDeleteTCPResponseRuleNotFound() *DeleteTCPResponseRuleNotFound {
	return &DeleteTCPResponseRuleNotFound{}
}
func (o *DeleteTCPResponseRuleNotFound) WithConfigurationVersion(configurationVersion string) *DeleteTCPResponseRuleNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *DeleteTCPResponseRuleNotFound) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *DeleteTCPResponseRuleNotFound) WithPayload(payload *models.Error) *DeleteTCPResponseRuleNotFound {
	o.Payload = payload
	return o
}
func (o *DeleteTCPResponseRuleNotFound) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *DeleteTCPResponseRuleNotFound) 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 DeleteTCPResponseRuleDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewDeleteTCPResponseRuleDefault(code int) *DeleteTCPResponseRuleDefault {
	if code <= 0 {
		code = 500
	}
	return &DeleteTCPResponseRuleDefault{
		_statusCode: code,
	}
}
func (o *DeleteTCPResponseRuleDefault) WithStatusCode(code int) *DeleteTCPResponseRuleDefault {
	o._statusCode = code
	return o
}
func (o *DeleteTCPResponseRuleDefault) SetStatusCode(code int) {
	o._statusCode = code
}
func (o *DeleteTCPResponseRuleDefault) WithConfigurationVersion(configurationVersion string) *DeleteTCPResponseRuleDefault {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *DeleteTCPResponseRuleDefault) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *DeleteTCPResponseRuleDefault) WithPayload(payload *models.Error) *DeleteTCPResponseRuleDefault {
	o.Payload = payload
	return o
}