func (o *CreateTCPResponseRuleAccepted) WithPayload(payload *models.TCPResponseRule) *CreateTCPResponseRuleAccepted {
	o.Payload = payload
	return o
}
WithPayload adds the payload to the create Tcp response rule accepted response
package tcp_response_rule
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const CreateTCPResponseRuleCreatedCode int = 201
type CreateTCPResponseRuleCreated struct {
	Payload *models.TCPResponseRule `json:"body,omitempty"`
}
func NewCreateTCPResponseRuleCreated() *CreateTCPResponseRuleCreated {
	return &CreateTCPResponseRuleCreated{}
}
func (o *CreateTCPResponseRuleCreated) WithPayload(payload *models.TCPResponseRule) *CreateTCPResponseRuleCreated {
	o.Payload = payload
	return o
}
func (o *CreateTCPResponseRuleCreated) SetPayload(payload *models.TCPResponseRule) {
	o.Payload = payload
}
func (o *CreateTCPResponseRuleCreated) 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 CreateTCPResponseRuleAcceptedCode int = 202
type CreateTCPResponseRuleAccepted struct {
	ReloadID string `json:"Reload-ID"`
	Payload *models.TCPResponseRule `json:"body,omitempty"`
}
func NewCreateTCPResponseRuleAccepted() *CreateTCPResponseRuleAccepted {
	return &CreateTCPResponseRuleAccepted{}
}
func (o *CreateTCPResponseRuleAccepted) WithReloadID(reloadID string) *CreateTCPResponseRuleAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *CreateTCPResponseRuleAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}