| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
abstract RestStop.Builder |
amenities(java.util.List<Amenity> amenities)
The list of amenities at the rest stop if available.
|
abstract RestStop |
build()
Build a new
RestStop object. |
abstract RestStop.Builder |
guideMap(java.lang.String guideMap) |
abstract RestStop.Builder |
name(java.lang.String name)
The name of the rest stop.
|
abstract RestStop.Builder |
type(java.lang.String type)
The type of rest stop, either `rest_area` (includes parking only) or `service_area`
(includes amenities such as gas or restaurants).
|
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 RestStop.Builder type(@Nullable java.lang.String type)
type - rest stop type@NonNull public abstract RestStop.Builder name(@Nullable java.lang.String name)
name - rest stop name@NonNull public abstract RestStop.Builder amenities(@Nullable java.util.List<Amenity> amenities)
amenities - list of amenities@NonNull public abstract RestStop.Builder guideMap(@Nullable java.lang.String guideMap)
@NonNull public abstract RestStop build()
RestStop object.RestStop 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