public static interface RouteMatrixEntry.Builder extends SdkPojo, CopyableBuilder<RouteMatrixEntry.Builder,RouteMatrixEntry>
| Modifier and Type | Method and Description |
|---|---|
RouteMatrixEntry.Builder |
distance(Double distance)
The total distance of travel for the route.
|
RouteMatrixEntry.Builder |
durationSeconds(Double durationSeconds)
The expected duration of travel for the route.
|
default RouteMatrixEntry.Builder |
error(Consumer<RouteMatrixEntryError.Builder> error)
An error corresponding to the calculation of a route between the
DeparturePosition and
DestinationPosition. |
RouteMatrixEntry.Builder |
error(RouteMatrixEntryError error)
An error corresponding to the calculation of a route between the
DeparturePosition and
DestinationPosition. |
equalsBySdkFields, sdkFieldscopyapplyMutation, buildRouteMatrixEntry.Builder distance(Double distance)
The total distance of travel for the route.
distance - The total distance of travel for the route.RouteMatrixEntry.Builder durationSeconds(Double durationSeconds)
The expected duration of travel for the route.
durationSeconds - The expected duration of travel for the route.RouteMatrixEntry.Builder error(RouteMatrixEntryError error)
An error corresponding to the calculation of a route between the DeparturePosition and
DestinationPosition.
error - An error corresponding to the calculation of a route between the DeparturePosition and
DestinationPosition.default RouteMatrixEntry.Builder error(Consumer<RouteMatrixEntryError.Builder> error)
An error corresponding to the calculation of a route between the DeparturePosition and
DestinationPosition.
RouteMatrixEntryError.Builder avoiding
the need to create one manually via RouteMatrixEntryError.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to error(RouteMatrixEntryError).
error - a consumer that will call methods on RouteMatrixEntryError.Buildererror(RouteMatrixEntryError)Copyright © 2023. All rights reserved.