public abstract static class TollCollection.Builder
extends java.lang.Object
TollCollection.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
abstract TollCollection |
build()
Build a new
TollCollection object. |
abstract TollCollection.Builder |
name(java.lang.String name)
The name of toll collection point.
|
abstract TollCollection.Builder |
type(java.lang.String type)
The type of toll collection point, either `toll_booth` or `toll_gantry`.
|
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 TollCollection.Builder type(@Nullable java.lang.String type)
type - toll collection typepublic abstract TollCollection.Builder name(@Nullable java.lang.String name)
name - toll collection namepublic abstract TollCollection build()
TollCollection object.TollCollection 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