public abstract class Amenity extends DirectionsJsonObject
DirectionsCriteria.PROFILE_DRIVING profile.| Modifier and Type | Class and Description |
|---|---|
static class |
Amenity.Builder
This builder can be used to set the values describing the
Amenity. |
| Constructor and Description |
|---|
Amenity() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.String |
brand()
The brand name of the amenity.
|
static Amenity.Builder |
builder()
Create a new instance of this class by using the
Amenity.Builder class. |
static Amenity |
fromJson(java.lang.String json)
Create a new instance of this class by passing in a formatted valid JSON String.
|
abstract java.lang.String |
name()
The name of the amenity.
|
abstract Amenity.Builder |
toBuilder()
Convert the current
Amenity to its builder holding the currently assigned
values. |
abstract java.lang.String |
type()
The type of amenities such as gas, restaurants, shopping, bank, atm etc.
|
static com.google.gson.TypeAdapter<Amenity> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
getUnrecognizedJsonProperties, getUnrecognizedPropertiesNames, getUnrecognizedProperty, toJson@NonNull public abstract java.lang.String type()
DirectionsCriteria.AmenityTypeCriteria.@Nullable public abstract java.lang.String name()
@Nullable public abstract java.lang.String brand()
public static Amenity.Builder builder()
Amenity.Builder class.Amenity.Builder for creating a new instancepublic abstract Amenity.Builder toBuilder()
Amenity 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 Amenity.Amenity.Builder with the same values set to match the ones
defined in this Amenitypublic static com.google.gson.TypeAdapter<Amenity> typeAdapter(com.google.gson.Gson gson)
gson - the built Gson objectpublic static Amenity fromJson(java.lang.String json)
json - a formatted valid JSON string defining an Incident