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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RouteMatrixEntry.Builderdistance(Double distance)The total distance of travel for the route.RouteMatrixEntry.BuilderdurationSeconds(Double durationSeconds)The expected duration of travel for the route.default RouteMatrixEntry.Buildererror(Consumer<RouteMatrixEntryError.Builder> error)An error corresponding to the calculation of a route between theDeparturePositionandDestinationPosition.RouteMatrixEntry.Buildererror(RouteMatrixEntryError error)An error corresponding to the calculation of a route between theDeparturePositionandDestinationPosition.-
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 Detail
-
distance
RouteMatrixEntry.Builder distance(Double 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
RouteMatrixEntry.Builder durationSeconds(Double 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
RouteMatrixEntry.Builder error(RouteMatrixEntryError 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
default RouteMatrixEntry.Builder error(Consumer<RouteMatrixEntryError.Builder> 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:
error(RouteMatrixEntryError)
-
-