func (o *CreateBackendSwitchingRuleCreated) WithPayload(payload *models.BackendSwitchingRule) *CreateBackendSwitchingRuleCreated {
	o.Payload = payload
	return o
}
WithPayload adds the payload to the create backend switching rule created response
package backend_switching_rule
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const CreateBackendSwitchingRuleCreatedCode int = 201
type CreateBackendSwitchingRuleCreated struct {
	Payload *models.BackendSwitchingRule `json:"body,omitempty"`
}
func NewCreateBackendSwitchingRuleCreated() *CreateBackendSwitchingRuleCreated {
	return &CreateBackendSwitchingRuleCreated{}
}