func (o *GetSpoeAgentsURL) 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 spoe
import (
	"errors"
	"net/url"
	golangswaggerpaths "path"
)
type GetSpoeAgentsURL struct {
	Scope         string
	Spoe          string
	TransactionID *string
	_basePath string
	_ struct{}
}
func (o *GetSpoeAgentsURL) WithBasePath(bp string) *GetSpoeAgentsURL {
	o.SetBasePath(bp)
	return o
}
func (o *GetSpoeAgentsURL) SetBasePath(bp string) {
	o._basePath = bp
}
func (o *GetSpoeAgentsURL) Build() (*url.URL, error) {
	var _result url.URL
	var _path = "/services/haproxy/spoe/spoe_agents"
	_basePath := o._basePath
	if _basePath == "" {
		_basePath = "/v2"
	}
	_result.Path = golangswaggerpaths.Join(_basePath, _path)
	qs := make(url.Values)
	scopeQ := o.Scope
	if scopeQ != "" {
		qs.Set("scope", scopeQ)
	}
	spoeQ := o.Spoe
	if spoeQ != "" {
		qs.Set("spoe", spoeQ)
	}
	var transactionIDQ string
	if o.TransactionID != nil {
		transactionIDQ = *o.TransactionID
	}
	if transactionIDQ != "" {
		qs.Set("transaction_id", transactionIDQ)
	}
	_result.RawQuery = qs.Encode()
	return &_result, nil
}