Interface RouteSummary.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RouteSummary.Builder,,RouteSummary> SdkBuilder<RouteSummary.Builder,,RouteSummary> SdkPojo
- Enclosing class:
RouteSummary
@Mutable
@NotThreadSafe
public static interface RouteSummary.Builder
extends SdkPojo, CopyableBuilder<RouteSummary.Builder,RouteSummary>
-
Method Summary
Modifier and TypeMethodDescriptionDistance of the route.Duration of the route.default RouteSummary.Buildertolls(Consumer<RouteTollSummary.Builder> tolls) Toll summary for the complete route.tolls(RouteTollSummary tolls) Toll summary for the complete route.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, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
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
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:
-