func (o *GetTCPRequestRulesURL) Build() (*url.URL, error) {
	var _result url.URL
	var _path = "/services/haproxy/configuration/tcp_request_rules"
	_basePath := o._basePath
	if _basePath == "" {
		_basePath = "/v2"
	}
	_result.Path = golangswaggerpaths.Join(_basePath, _path)
	qs := make(url.Values)
	parentNameQ := o.ParentName
	if parentNameQ != "" {
		qs.Set("parent_name", parentNameQ)
	}
	parentTypeQ := o.ParentType
	if parentTypeQ != "" {
		qs.Set("parent_type", parentTypeQ)
	}
	var transactionIDQ string
	if o.TransactionID != nil {
		transactionIDQ = *o.TransactionID
	}
	if transactionIDQ != "" {
		qs.Set("transaction_id", transactionIDQ)
	}
	_result.RawQuery = qs.Encode()
	return &_result, nil
}
Build a url path and query string
package tcp_request_rule
import (
	"errors"
	"net/url"
	golangswaggerpaths "path"
)
type GetTCPRequestRulesURL struct {
	ParentName    string
	ParentType    string
	TransactionID *string
	_basePath string
	_ struct{}
}
func (o *GetTCPRequestRulesURL) WithBasePath(bp string) *GetTCPRequestRulesURL {
	o.SetBasePath(bp)
	return o
}
func (o *GetTCPRequestRulesURL) SetBasePath(bp string) {
	o._basePath = bp
}