func (o *FindProjectDataURL) 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 operations
import (
	"errors"
	"net/url"
	golangswaggerpaths "path"
	"strings"
	"github.com/go-openapi/swag"
)
type FindProjectDataURL struct {
	ProjectID string
	Count  *int32
	Cursor *string
	_basePath string
	_ struct{}
}
func (o *FindProjectDataURL) WithBasePath(bp string) *FindProjectDataURL {
	o.SetBasePath(bp)
	return o
}
func (o *FindProjectDataURL) SetBasePath(bp string) {
	o._basePath = bp
}
func (o *FindProjectDataURL) Build() (*url.URL, error) {
	var _result url.URL
	var _path = "/projects/{projectId}/data"
	projectID := o.ProjectID
	if projectID != "" {
		_path = strings.Replace(_path, "{projectId}", projectID, -1)
	} else {
		return nil, errors.New("projectId is required on FindProjectDataURL")
	}
	_basePath := o._basePath
	_result.Path = golangswaggerpaths.Join(_basePath, _path)
	qs := make(url.Values)
	var count string
	if o.Count != nil {
		count = swag.FormatInt32(*o.Count)
	}
	if count != "" {
		qs.Set("count", count)
	}
	var cursor string
	if o.Cursor != nil {
		cursor = *o.Cursor
	}
	if cursor != "" {
		qs.Set("cursor", cursor)
	}
	_result.RawQuery = qs.Encode()
	return &_result, nil
}