public abstract static class NbmapDirectionsRefresh.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
abstract NbmapDirectionsRefresh.Builder |
accessToken(java.lang.String accessToken)
Required to call when this is being built.
|
abstract NbmapDirectionsRefresh.Builder |
baseUrl(java.lang.String baseUrl)
Optionally change the APIs base URL to something other then the default Nbmap one.
|
abstract NbmapDirectionsRefresh |
build()
Returns an instance of
NbmapDirectionsRefresh for interacting with the endpoint
with the specified values. |
abstract NbmapDirectionsRefresh.Builder |
clientAppName(java.lang.String clientAppName)
Base package name or other simple string identifier.
|
abstract NbmapDirectionsRefresh.Builder |
interceptor(okhttp3.Interceptor interceptor)
Adds an optional interceptor to set in the OkHttp client.
|
abstract NbmapDirectionsRefresh.Builder |
legIndex(int legIndex)
Index of leg of which to start.
|
abstract NbmapDirectionsRefresh.Builder |
requestId(java.lang.String requestId)
Specified here is the uuid of the initial directions request.
|
abstract NbmapDirectionsRefresh.Builder |
routeIndex(int routeIndex)
Index of original route in response.
|
public abstract NbmapDirectionsRefresh.Builder requestId(java.lang.String requestId)
requestId - id of the original directions request. This is found in the
RouteOptions object.public abstract NbmapDirectionsRefresh.Builder routeIndex(@NonNull int routeIndex)
routeIndex - index of route in responsepublic abstract NbmapDirectionsRefresh.Builder legIndex(@NonNull int legIndex)
legIndex - index of legpublic abstract NbmapDirectionsRefresh.Builder accessToken(@NonNull java.lang.String accessToken)
ServicesException will be thrown.accessToken - Nbmap access tokenpublic abstract NbmapDirectionsRefresh.Builder clientAppName(@NonNull java.lang.String clientAppName)
clientAppName - base package name or other simple string identifierpublic abstract NbmapDirectionsRefresh.Builder baseUrl(java.lang.String baseUrl)
baseUrl - base url used as endpointpublic abstract NbmapDirectionsRefresh.Builder interceptor(okhttp3.Interceptor interceptor)
interceptor - to set for OkHttppublic abstract NbmapDirectionsRefresh build()
NbmapDirectionsRefresh for interacting with the endpoint
with the specified values.NbmapDirectionsRefresh with specified attributes