func (o *GetReloadURL) Must(u *url.URL, err error) *url.URL {
	if err != nil {
		panic(err)
	}
	if u == nil {
		panic("url can't be nil")
	}
	return u
}
Must is a helper function to panic when the url builder returns an error
package reloads
import (
	"errors"
	"net/url"
	golangswaggerpaths "path"
	"strings"
)
type GetReloadURL struct {
	ID string
	_basePath string
	_ struct{}
}
func (o *GetReloadURL) WithBasePath(bp string) *GetReloadURL {
	o.SetBasePath(bp)
	return o
}
func (o *GetReloadURL) SetBasePath(bp string) {
	o._basePath = bp
}
func (o *GetReloadURL) Build() (*url.URL, error) {
	var _result url.URL
	var _path = "/services/haproxy/reloads/{id}"
	id := o.ID
	if id != "" {
		_path = strings.Replace(_path, "{id}", id, -1)
	} else {
		return nil, errors.New("id is required on GetReloadURL")
	}
	_basePath := o._basePath
	if _basePath == "" {
		_basePath = "/v2"
	}
	_result.Path = golangswaggerpaths.Join(_basePath, _path)
	return &_result, nil
}