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.BuilderAn error corresponding to the calculation of a route between theDeparturePositionandDestinationPosition.error(RouteMatrixEntryError error) An error corresponding to the calculation of a route between theDeparturePositionandDestinationPosition.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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
DeparturePositionandDestinationPosition.- Parameters:
 error- An error corresponding to the calculation of a route between theDeparturePositionandDestinationPosition.- 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 theDeparturePositionandDestinationPosition.RouteMatrixEntryError.Builderavoiding the need to create one manually viaRouteMatrixEntryError.builder().When the
Consumercompletes,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:
 
 
 -