Interface RouteRentalSummary.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RouteRentalSummary.Builder,,RouteRentalSummary> SdkBuilder<RouteRentalSummary.Builder,,RouteRentalSummary> SdkPojo
- Enclosing class:
RouteRentalSummary
@Mutable
@NotThreadSafe
public static interface RouteRentalSummary.Builder
extends SdkPojo, CopyableBuilder<RouteRentalSummary.Builder,RouteRentalSummary>
-
Method Summary
Modifier and TypeMethodDescriptiondefault RouteRentalSummary.Builderoverview(Consumer<RouteRentalOverviewSummary.Builder> overview) Summary including duration and distance for the entire leg.overview(RouteRentalOverviewSummary overview) Summary including duration and distance for the entire leg.default RouteRentalSummary.BuildertravelOnly(Consumer<RouteRentalTravelOnlySummary.Builder> travelOnly) Summary including duration and distance for the travel portion of the leg only.travelOnly(RouteRentalTravelOnlySummary travelOnly) Summary including duration and distance for the travel portion of the leg only.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
-
overview
Summary including duration and distance for the entire leg.
- Parameters:
overview- Summary including duration and distance for the entire leg.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overview
Summary including duration and distance for the entire leg.
This is a convenience method that creates an instance of theRouteRentalOverviewSummary.Builderavoiding the need to create one manually viaRouteRentalOverviewSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooverview(RouteRentalOverviewSummary).- Parameters:
overview- a consumer that will call methods onRouteRentalOverviewSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
travelOnly
Summary including duration and distance for the travel portion of the leg only.
- Parameters:
travelOnly- Summary including duration and distance for the travel portion of the leg only.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
travelOnly
default RouteRentalSummary.Builder travelOnly(Consumer<RouteRentalTravelOnlySummary.Builder> travelOnly) Summary including duration and distance for the travel portion of the leg only.
This is a convenience method that creates an instance of theRouteRentalTravelOnlySummary.Builderavoiding the need to create one manually viaRouteRentalTravelOnlySummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totravelOnly(RouteRentalTravelOnlySummary).- Parameters:
travelOnly- a consumer that will call methods onRouteRentalTravelOnlySummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-