public abstract static class MapboxRouteTileVersions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract MapboxRouteTileVersions.Builder |
accessToken(java.lang.String accessToken)
Required to call when this is being built.
|
abstract MapboxRouteTileVersions.Builder |
baseUrl(java.lang.String baseUrl)
Optionally change the APIs base URL to something other then the default Mapbox one.
|
MapboxRouteTileVersions |
build()
This uses the provided parameters set using the
MapboxRouteTileVersions.Builder and first checks that all
values are valid, and creates a new MapboxRouteTileVersions object with the values
provided. |
abstract MapboxRouteTileVersions.Builder |
clientAppName(java.lang.String clientAppName)
Base package name or other simple string identifier.
|
public abstract MapboxRouteTileVersions.Builder accessToken(@NonNull java.lang.String accessToken)
ServicesException
will be thrown.accessToken
- Mapbox access token, You must have a Mapbox account inorder to use
the Route Tiles APIpublic abstract MapboxRouteTileVersions.Builder baseUrl(@NonNull java.lang.String baseUrl)
baseUrl
- base url used as end pointpublic abstract MapboxRouteTileVersions.Builder clientAppName(@NonNull java.lang.String clientAppName)
clientAppName
- base package name or other simple string identifierpublic MapboxRouteTileVersions build()
MapboxRouteTileVersions.Builder
and first checks that all
values are valid, and creates a new MapboxRouteTileVersions
object with the values
provided.com.mapbox.core.exceptions.ServicesException
- when a provided parameter is detected to be incorrect