Interface RouteMatrixEntry.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RouteMatrixEntry.Builder,
,RouteMatrixEntry> SdkBuilder<RouteMatrixEntry.Builder,
,RouteMatrixEntry> SdkPojo
- Enclosing class:
RouteMatrixEntry
public static interface RouteMatrixEntry.Builder
extends SdkPojo, CopyableBuilder<RouteMatrixEntry.Builder,RouteMatrixEntry>
-
Method Summary
Modifier and TypeMethodDescriptionThe total distance of travel for the route.durationSeconds
(Double durationSeconds) The expected duration of travel for the route.default RouteMatrixEntry.Builder
An error corresponding to the calculation of a route between theDeparturePosition
andDestinationPosition
.error
(RouteMatrixEntryError error) An error corresponding to the calculation of a route between theDeparturePosition
andDestinationPosition
.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
distance
The total distance of travel for the route.
- Parameters:
distance
- The total distance of travel for the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
durationSeconds
The expected duration of travel for the route.
- Parameters:
durationSeconds
- The expected duration of travel for the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
An error corresponding to the calculation of a route between the
DeparturePosition
andDestinationPosition
.- Parameters:
error
- An error corresponding to the calculation of a route between theDeparturePosition
andDestinationPosition
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
An error corresponding to the calculation of a route between the
This is a convenience method that creates an instance of theDeparturePosition
andDestinationPosition
.RouteMatrixEntryError.Builder
avoiding the need to create one manually viaRouteMatrixEntryError.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toerror(RouteMatrixEntryError)
.- Parameters:
error
- a consumer that will call methods onRouteMatrixEntryError.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-