func (o *GetSitesURL) StringFull(scheme, host string) string {
	return o.Must(o.BuildFull(scheme, host)).String()
}
StringFull returns the string representation of a complete url
package sites
import (
	"errors"
	"net/url"
	golangswaggerpaths "path"
)
type GetSitesURL struct {
	TransactionID *string
	_basePath string
	_ struct{}
}
func (o *GetSitesURL) WithBasePath(bp string) *GetSitesURL {
	o.SetBasePath(bp)
	return o
}
func (o *GetSitesURL) SetBasePath(bp string) {
	o._basePath = bp
}
func (o *GetSitesURL) Build() (*url.URL, error) {
	var _result url.URL
	var _path = "/services/haproxy/sites"
	_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)
	}
	_result.RawQuery = qs.Encode()
	return &_result, nil
}
func (o *GetSitesURL) Must(u *url.URL, err error) *url.URL {
	if err != nil {
		panic(err)
	}
	if u == nil {
		panic("url can't be nil")
	}
	return u
}
func (o *GetSitesURL) String() string {
	return o.Must(o.Build()).String()
}
func (o *GetSitesURL) BuildFull(scheme, host string) (*url.URL, error) {
	if scheme == "" {
		return nil, errors.New("scheme is required for a full url on GetSitesURL")
	}
	if host == "" {
		return nil, errors.New("host is required for a full url on GetSitesURL")
	}
	base, err := o.Build()
	if err != nil {
		return nil, err
	}
	base.Scheme = scheme
	base.Host = host
	return base, nil
}