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