public abstract static class RouteLegRefresh.Builder
extends java.lang.Object
RouteLegRefresh
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract RouteLegRefresh.Builder |
annotation(com.mapbox.api.directions.v5.models.LegAnnotation annotation)
A
LegAnnotation that contains additional details about each line segment along the
route geometry. |
abstract RouteLegRefresh |
build()
Build a new
RouteLegRefresh object. |
abstract RouteLegRefresh.Builder |
closures(java.util.List<com.mapbox.api.directions.v5.models.Closure> closures)
A list of closures that occur on this leg.
|
abstract RouteLegRefresh.Builder |
incidents(java.util.List<com.mapbox.api.directions.v5.models.Incident> incidents)
A list of incidents that occur on this leg.
|
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.
|
@NonNull public abstract RouteLegRefresh.Builder incidents(@Nullable java.util.List<com.mapbox.api.directions.v5.models.Incident> incidents)
incidents
- a list of Incident
@NonNull public abstract RouteLegRefresh.Builder annotation(@Nullable com.mapbox.api.directions.v5.models.LegAnnotation annotation)
LegAnnotation
that contains additional details about each line segment along the
route geometry. If you'd like to receiving this, you must request it inside your Directions
request before executing the call.annotation
- a LegAnnotation
object@NonNull public abstract RouteLegRefresh.Builder closures(@Nullable java.util.List<com.mapbox.api.directions.v5.models.Closure> closures)
closures
- a list of Closure
public abstract RouteLegRefresh build()
RouteLegRefresh
object.RouteLegRefresh
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