Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract Amenity.Builder |
brand(java.lang.String brand)
The brand name of the amenity.
|
abstract Amenity |
build()
Build a new
Amenity object. |
abstract Amenity.Builder |
name(java.lang.String name)
The name of the amenity.
|
abstract Amenity.Builder |
type(java.lang.String type)
The type of amenity, includes amenities such as gas, restaurants etc.
|
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 Amenity.Builder type(@NonNull java.lang.String type)
type
- amenity type@NonNull public abstract Amenity.Builder name(@Nullable java.lang.String name)
name
- amenity name@NonNull public abstract Amenity.Builder brand(@Nullable java.lang.String brand)
brand
- amenity brand name@NonNull public abstract Amenity build()
Amenity
object.Amenity
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