func (o *GetRuntimeEndpointsURL) StringFull(scheme, host string) string {
	return o.Must(o.BuildFull(scheme, host)).String()
}
StringFull returns the string representation of a complete url
package discovery
import (
	"errors"
	"net/url"
	golangswaggerpaths "path"
)
type GetRuntimeEndpointsURL struct {
	_basePath string
}
func (o *GetRuntimeEndpointsURL) WithBasePath(bp string) *GetRuntimeEndpointsURL {
	o.SetBasePath(bp)
	return o
}
func (o *GetRuntimeEndpointsURL) SetBasePath(bp string) {
	o._basePath = bp
}
func (o *GetRuntimeEndpointsURL) Build() (*url.URL, error) {
	var _result url.URL
	var _path = "/services/haproxy/runtime"
	_basePath := o._basePath
	if _basePath == "" {
		_basePath = "/v2"
	}
	_result.Path = golangswaggerpaths.Join(_basePath, _path)
	return &_result, nil
}
func (o *GetRuntimeEndpointsURL) 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 *GetRuntimeEndpointsURL) String() string {
	return o.Must(o.Build()).String()
}
func (o *GetRuntimeEndpointsURL) BuildFull(scheme, host string) (*url.URL, error) {
	if scheme == "" {
		return nil, errors.New("scheme is required for a full url on GetRuntimeEndpointsURL")
	}
	if host == "" {
		return nil, errors.New("host is required for a full url on GetRuntimeEndpointsURL")
	}
	base, err := o.Build()
	if err != nil {
		return nil, err
	}
	base.Scheme = scheme
	base.Host = host
	return base, nil
}