Interface RouteSummary.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RouteSummary.Builder,RouteSummary>,SdkBuilder<RouteSummary.Builder,RouteSummary>,SdkPojo
- Enclosing class:
- RouteSummary
public static interface RouteSummary.Builder extends SdkPojo, CopyableBuilder<RouteSummary.Builder,RouteSummary>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RouteSummary.Builderdistance(Long distance)Distance of the route.RouteSummary.Builderduration(Long duration)Duration of the route.default RouteSummary.Buildertolls(Consumer<RouteTollSummary.Builder> tolls)Toll summary for the complete route.RouteSummary.Buildertolls(RouteTollSummary tolls)Toll summary for the complete route.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
distance
RouteSummary.Builder distance(Long distance)
Distance of the route.
- Parameters:
distance- Distance of the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
duration
RouteSummary.Builder duration(Long duration)
Duration of the route.
Unit:
seconds- Parameters:
duration- Duration of the route.Unit:
seconds- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tolls
RouteSummary.Builder tolls(RouteTollSummary tolls)
Toll summary for the complete route.
- Parameters:
tolls- Toll summary for the complete route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tolls
default RouteSummary.Builder tolls(Consumer<RouteTollSummary.Builder> tolls)
Toll summary for the complete route.
This is a convenience method that creates an instance of theRouteTollSummary.Builderavoiding the need to create one manually viaRouteTollSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totolls(RouteTollSummary).- Parameters:
tolls- a consumer that will call methods onRouteTollSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
tolls(RouteTollSummary)
-
-