func (o *GetHAProxyConfigurationURL) Build() (*url.URL, error) {
	var _result url.URL
	var _path = "/services/haproxy/configuration/raw"
	_basePath := o._basePath
	if _basePath == "" {
		_basePath = "/v2"
	}
	_result.Path = golangswaggerpaths.Join(_basePath, _path)
	qs := make(url.Values)
	var transactionIDQ string
	if o.TransactionID != nil {
		transactionIDQ = *o.TransactionID
	}
	if transactionIDQ != "" {
		qs.Set("transaction_id", transactionIDQ)
	}
	var versionQ string
	if o.Version != nil {
		versionQ = swag.FormatInt64(*o.Version)
	}
	if versionQ != "" {
		qs.Set("version", versionQ)
	}
	_result.RawQuery = qs.Encode()
	return &_result, nil
}
Build a url path and query string
package configuration
import (
	"errors"
	"net/url"
	golangswaggerpaths "path"
	"github.com/go-openapi/swag"
)
type GetHAProxyConfigurationURL struct {
	TransactionID *string
	Version       *int64
	_basePath string
	_ struct{}
}
func (o *GetHAProxyConfigurationURL) WithBasePath(bp string) *GetHAProxyConfigurationURL {
	o.SetBasePath(bp)
	return o
}
func (o *GetHAProxyConfigurationURL) SetBasePath(bp string) {
	o._basePath = bp
}