public abstract static class MapboxShield.Builder
extends java.lang.Object
MapboxShield.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
abstract MapboxShield.Builder |
baseUrl(java.lang.String baseUrl)
Base url to query the styles endpoint.
|
abstract MapboxShield |
build()
Build a new
MapboxShield object. |
abstract MapboxShield.Builder |
displayRef(java.lang.String displayRef)
String indicating the display ref.
|
abstract MapboxShield.Builder |
name(java.lang.String name)
String indicating the name of the route shield.
|
abstract MapboxShield.Builder |
textColor(java.lang.String textColor)
String indicating the color of the text to be rendered on the route shield.
|
T |
unrecognizedJsonProperties(java.util.Map<java.lang.String,com.google.gson.JsonElement> unrecognizedProperties)
Use this method to add parameters which are not present in the model yet but are supported
on the Directions API side in the response.
|
public abstract MapboxShield.Builder baseUrl(java.lang.String baseUrl)
baseUrl - base url to query the styles endpointMapboxShield.Builder objectpublic abstract MapboxShield.Builder name(java.lang.String name)
name - name of the shieldMapboxShield.Builder objectpublic abstract MapboxShield.Builder textColor(java.lang.String textColor)
textColor - color of the text to be rendered on the route shieldMapboxShield.Builder objectpublic abstract MapboxShield.Builder displayRef(java.lang.String displayRef)
displayRef - display ref for the shieldMapboxShield.Builder objectpublic abstract MapboxShield build()
MapboxShield object.MapboxShield using the provided values in this builder@NonNull
public T unrecognizedJsonProperties(@Nullable
java.util.Map<java.lang.String,com.google.gson.JsonElement> unrecognizedProperties)
unrecognizedProperties - parameters to add to request