public abstract static class DirectionsRouteRefresh.Builder
extends java.lang.Object
DirectionsRouteRefresh
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract DirectionsRouteRefresh |
build()
Build a new
DirectionsRouteRefresh object. |
abstract DirectionsRouteRefresh.Builder |
legs(java.util.List<RouteLegRefresh> legs)
A Leg Refresh is an object contain refresh data between only two
DirectionsWaypoint . |
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 DirectionsRouteRefresh.Builder legs(@Nullable java.util.List<RouteLegRefresh> legs)
DirectionsWaypoint
.legs
- list of RouteLegRefresh
objectspublic abstract DirectionsRouteRefresh build()
DirectionsRouteRefresh
object.DirectionsRouteRefresh
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