func (o *GetBackendSwitchingRulesURL) String() string {
	return o.Must(o.Build()).String()
}
String returns the string representation of the path with query string
package backend_switching_rule
import (
	"errors"
	"net/url"
	golangswaggerpaths "path"
)
type GetBackendSwitchingRulesURL struct {
	Frontend      string
	TransactionID *string
	_basePath string
	_ struct{}
}
func (o *GetBackendSwitchingRulesURL) WithBasePath(bp string) *GetBackendSwitchingRulesURL {
	o.SetBasePath(bp)
	return o
}
func (o *GetBackendSwitchingRulesURL) SetBasePath(bp string) {
	o._basePath = bp
}
func (o *GetBackendSwitchingRulesURL) Build() (*url.URL, error) {
	var _result url.URL
	var _path = "/services/haproxy/configuration/backend_switching_rules"
	_basePath := o._basePath
	if _basePath == "" {
		_basePath = "/v2"
	}
	_result.Path = golangswaggerpaths.Join(_basePath, _path)
	qs := make(url.Values)
	frontendQ := o.Frontend
	if frontendQ != "" {
		qs.Set("frontend", frontendQ)
	}
	var transactionIDQ string
	if o.TransactionID != nil {
		transactionIDQ = *o.TransactionID
	}
	if transactionIDQ != "" {
		qs.Set("transaction_id", transactionIDQ)
	}
	_result.RawQuery = qs.Encode()
	return &_result, nil
}
func (o *GetBackendSwitchingRulesURL) Must(u *url.URL, err error) *url.URL {
	if err != nil {
		panic(err)
	}
	if u == nil {
		panic("url can't be nil")
	}
	return u
}