public abstract class MapboxStreetsV8 extends DirectionsJsonObject
DirectionsCriteria.PROFILE_DRIVING profile.| Modifier and Type | Class and Description |
|---|---|
static class |
MapboxStreetsV8.Builder
This builder can be used to set the values describing the
MapboxStreetsV8. |
| Constructor and Description |
|---|
MapboxStreetsV8() |
| Modifier and Type | Method and Description |
|---|---|
static MapboxStreetsV8.Builder |
builder()
Create a new instance of this class by using the
MapboxStreetsV8.Builder class. |
static MapboxStreetsV8 |
fromJson(java.lang.String json)
Create a new instance of this class by passing in a formatted valid JSON String.
|
abstract java.lang.String |
roadClass()
The road class of the road exiting the intersection as defined by the
Mapbox Streets v8 road class specification.
|
abstract MapboxStreetsV8.Builder |
toBuilder()
Convert the current
MapboxStreetsV8 to its builder holding the currently assigned
values. |
static com.google.gson.TypeAdapter<MapboxStreetsV8> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
getUnrecognizedJsonProperties, getUnrecognizedPropertiesNames, getUnrecognizedProperty, toJson@Nullable @SerializedName(value="class") public abstract java.lang.String roadClass()
public static MapboxStreetsV8.Builder builder()
MapboxStreetsV8.Builder class.MapboxStreetsV8.Builder for creating a new instancepublic abstract MapboxStreetsV8.Builder toBuilder()
MapboxStreetsV8 to its builder holding the currently assigned
values. This allows you to modify a single property and then rebuild the object resulting in
an updated and modified MapboxStreetsV8.MapboxStreetsV8.Builder with the same values set to match the ones defined in this MapboxStreetsV8public static com.google.gson.TypeAdapter<MapboxStreetsV8> typeAdapter(com.google.gson.Gson gson)
gson - the built Gson objectpublic static MapboxStreetsV8 fromJson(java.lang.String json)
json - a formatted valid JSON string defining an Incident