func (o *ReplaceRuntimeMapEntryURL) Build() (*url.URL, error) {
	var _result url.URL
	var _path = "/services/haproxy/runtime/maps_entries/{id}"
	id := o.ID
	if id != "" {
		_path = strings.Replace(_path, "{id}", id, -1)
	} else {
		return nil, errors.New("id is required on ReplaceRuntimeMapEntryURL")
	}
	_basePath := o._basePath
	if _basePath == "" {
		_basePath = "/v2"
	}
	_result.Path = golangswaggerpaths.Join(_basePath, _path)
	qs := make(url.Values)
	var forceSyncQ string
	if o.ForceSync != nil {
		forceSyncQ = swag.FormatBool(*o.ForceSync)
	}
	if forceSyncQ != "" {
		qs.Set("force_sync", forceSyncQ)
	}
	mapVarQ := o.Map
	if mapVarQ != "" {
		qs.Set("map", mapVarQ)
	}
	_result.RawQuery = qs.Encode()
	return &_result, nil
}
Build a url path and query string
package maps
import (
	"errors"
	"net/url"
	golangswaggerpaths "path"
	"strings"
	"github.com/go-openapi/swag"
)
type ReplaceRuntimeMapEntryURL struct {
	ID string
	ForceSync *bool
	Map       string
	_basePath string
	_ struct{}
}
func (o *ReplaceRuntimeMapEntryURL) WithBasePath(bp string) *ReplaceRuntimeMapEntryURL {
	o.SetBasePath(bp)
	return o
}
func (o *ReplaceRuntimeMapEntryURL) SetBasePath(bp string) {
	o._basePath = bp
}