public abstract static class DirectionsError.Builder
extends java.lang.Object
DirectionsError.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
abstract DirectionsError |
build()
Build a new
DirectionsError object. |
abstract DirectionsError.Builder |
code(java.lang.String code)
String indicating the state of the response.
|
abstract DirectionsError.Builder |
message(java.lang.String message)
Provides a short message with the explanation of the invalid input.
|
public abstract DirectionsError.Builder code(java.lang.String code)
code - a string with one of the given values described in the list abovepublic abstract DirectionsError.Builder message(java.lang.String message)
message - a string containing the message API Directions responsepublic abstract DirectionsError build()
DirectionsError object.DirectionsError using the provided values in this builder