func (o *ReplaceStorageMapFileURL) Build() (*url.URL, error) {
	var _result url.URL
	var _path = "/services/haproxy/storage/maps/{name}"
	name := o.Name
	if name != "" {
		_path = strings.Replace(_path, "{name}", name, -1)
	} else {
		return nil, errors.New("name is required on ReplaceStorageMapFileURL")
	}
	_basePath := o._basePath
	if _basePath == "" {
		_basePath = "/v2"
	}
	_result.Path = golangswaggerpaths.Join(_basePath, _path)
	qs := make(url.Values)
	var forceReloadQ string
	if o.ForceReload != nil {
		forceReloadQ = swag.FormatBool(*o.ForceReload)
	}
	if forceReloadQ != "" {
		qs.Set("force_reload", forceReloadQ)
	}
	var skipReloadQ string
	if o.SkipReload != nil {
		skipReloadQ = swag.FormatBool(*o.SkipReload)
	}
	if skipReloadQ != "" {
		qs.Set("skip_reload", skipReloadQ)
	}
	_result.RawQuery = qs.Encode()
	return &_result, nil
}
Build a url path and query string
package storage
import (
	"errors"
	"net/url"
	golangswaggerpaths "path"
	"strings"
	"github.com/go-openapi/swag"
)
type ReplaceStorageMapFileURL struct {
	Name string
	ForceReload *bool
	SkipReload  *bool
	_basePath string
	_ struct{}
}
func (o *ReplaceStorageMapFileURL) WithBasePath(bp string) *ReplaceStorageMapFileURL {
	o.SetBasePath(bp)
	return o
}
func (o *ReplaceStorageMapFileURL) SetBasePath(bp string) {
	o._basePath = bp
}