public abstract class RestStop extends DirectionsJsonObject
DirectionsCriteria.PROFILE_DRIVING profile.| Modifier and Type | Class and Description |
|---|---|
static class |
RestStop.Builder
This builder can be used to set the values describing the
RestStop. |
| Constructor and Description |
|---|
RestStop() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.util.List<Amenity> |
amenities()
The list of amenities at the rest stop if available.
|
static RestStop.Builder |
builder()
Create a new instance of this class by using the
RestStop.Builder class. |
static RestStop |
fromJson(java.lang.String json)
Create a new instance of this class by passing in a formatted valid JSON String.
|
abstract java.lang.String |
guideMap() |
abstract java.lang.String |
name()
The name of the rest stop.
|
abstract RestStop.Builder |
toBuilder()
Convert the current
RestStop to its builder holding the currently assigned
values. |
abstract 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).
|
static com.google.gson.TypeAdapter<RestStop> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
getUnrecognizedJsonProperties, getUnrecognizedPropertiesNames, getUnrecognizedProperty, toJson@Nullable public abstract java.lang.String type()
@Nullable public abstract java.lang.String name()
@Nullable public abstract java.util.List<Amenity> amenities()
@Nullable @SerializedName(value="guidemap") public abstract java.lang.String guideMap()
public static RestStop.Builder builder()
RestStop.Builder class.RestStop.Builder for creating a new instancepublic abstract RestStop.Builder toBuilder()
RestStop to its builder holding the currently assigned
values. This allows you to modify a single property and then rebuild the object resulting in
an updated and modified RestStop.RestStop.Builder with the same values set to match the ones defined in this RestStoppublic static com.google.gson.TypeAdapter<RestStop> typeAdapter(com.google.gson.Gson gson)
gson - the built Gson objectpublic static RestStop fromJson(java.lang.String json)
json - a formatted valid JSON string defining an Incident