public abstract class TollCollection extends DirectionsJsonObject
DirectionsCriteria.PROFILE_DRIVING profile.| Modifier and Type | Class and Description |
|---|---|
static class |
TollCollection.Builder
This builder can be used to set the values describing the
TollCollection. |
| Constructor and Description |
|---|
TollCollection() |
| Modifier and Type | Method and Description |
|---|---|
static TollCollection.Builder |
builder()
Create a new instance of this class by using the
TollCollection.Builder class. |
static TollCollection |
fromJson(java.lang.String json)
Create a new instance of this class by passing in a formatted valid JSON String.
|
abstract java.lang.String |
name()
The name of toll collection point.
|
abstract TollCollection.Builder |
toBuilder()
Convert the current
TollCollection to its builder holding the currently assigned
values. |
abstract java.lang.String |
type()
The type of toll collection point, either `toll_booth` or `toll_gantry`.
|
static com.google.gson.TypeAdapter<TollCollection> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
getUnrecognizedJsonProperties, getUnrecognizedPropertiesNames, getUnrecognizedProperty, toJson@Nullable public abstract java.lang.String type()
@Nullable public abstract java.lang.String name()
public static TollCollection.Builder builder()
TollCollection.Builder class.TollCollection.Builder for creating a new instancepublic abstract TollCollection.Builder toBuilder()
TollCollection 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 TollCollection.TollCollection.Builder with the same values set to match the ones defined in this TollCollectionpublic static com.google.gson.TypeAdapter<TollCollection> typeAdapter(com.google.gson.Gson gson)
gson - the built Gson objectpublic static TollCollection fromJson(java.lang.String json)
json - a formatted valid JSON string defining an Incident