public abstract static class IntersectionLanes.Builder
extends java.lang.Object
IntersectionLanes.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
abstract IntersectionLanes.Builder |
access(IntersectionLaneAccess access)
A
IntersectionLaneAccess object representing the access attributes of the lane. |
abstract IntersectionLanes.Builder |
active(java.lang.Boolean active)
Indicates whether this lane is a preferred lane (true) or not (false).
|
abstract IntersectionLanes |
build()
Build a new
IntersectionLanes object. |
abstract IntersectionLanes.Builder |
indications(java.util.List<java.lang.String> indications)
list that can be made up of multiple signs such as
left, right, etc. |
abstract IntersectionLanes.Builder |
paymentMethods(java.util.List<java.lang.String> paymentMethods)
Set available payment methods for the lane.
|
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.
|
abstract IntersectionLanes.Builder |
valid(java.lang.Boolean valid)
Provide a boolean value you can use to determine if the given lane is valid for the user to
complete the maneuver.
|
abstract IntersectionLanes.Builder |
validIndication(java.lang.String validIndication)
Shows which of the lane indications is applicable to the current route,
when there is more than one.
|
public abstract IntersectionLanes.Builder valid(@Nullable java.lang.Boolean valid)
valid - Boolean value for whether this lane can be taken to complete the maneuver. For
instance, if the lane array has four objects and the first two are marked as
valid, then the driver can take either of the left lanes and stay on the route.public abstract IntersectionLanes.Builder active(@Nullable java.lang.Boolean active)
active - Boolean value that indicates whether this lane is a preferred lane (true)
or not (false).public abstract IntersectionLanes.Builder validIndication(@Nullable java.lang.String validIndication)
validIndication - lane indications applicable to the current route,
when there is more than one.public abstract IntersectionLanes.Builder indications(@Nullable java.util.List<java.lang.String> indications)
left, right, etc.indications - list of signs for each turn lane. There can be multiple signs. For
example, a turning lane can have a sign with an arrow pointing left and
another sign with an arrow pointing straight.public abstract IntersectionLanes.Builder paymentMethods(@Nullable java.util.List<java.lang.String> paymentMethods)
paymentMethods - is a list of strings where each value
matches DirectionsCriteria.PaymentMethodsCriteriapublic abstract IntersectionLanes.Builder access(@Nullable IntersectionLaneAccess access)
IntersectionLaneAccess object representing the access attributes of the lane.
This can include information such as the vehicle types for which the lane is designated.access - an object representing the access attributes of the lane.public abstract IntersectionLanes build()
IntersectionLanes object.IntersectionLanes 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