Interface RouteLeg.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RouteLeg.Builder,
,RouteLeg> SdkBuilder<RouteLeg.Builder,
,RouteLeg> SdkPojo
- Enclosing class:
RouteLeg
-
Method Summary
Modifier and TypeMethodDescriptiondefault RouteLeg.Builder
ferryLegDetails
(Consumer<RouteFerryLegDetails.Builder> ferryLegDetails) FerryLegDetails is populated when the Leg type is Ferry, and provides additional information that is specificferryLegDetails
(RouteFerryLegDetails ferryLegDetails) FerryLegDetails is populated when the Leg type is Ferry, and provides additional information that is specificdefault RouteLeg.Builder
geometry
(Consumer<RouteLegGeometry.Builder> geometry) Geometry of the area to be avoided.geometry
(RouteLegGeometry geometry) Geometry of the area to be avoided.List of languages for instructions within steps in the response.default RouteLeg.Builder
pedestrianLegDetails
(Consumer<RoutePedestrianLegDetails.Builder> pedestrianLegDetails) Details related to the pedestrian leg.pedestrianLegDetails
(RoutePedestrianLegDetails pedestrianLegDetails) Details related to the pedestrian leg.travelMode
(String travelMode) Specifies the mode of transport when calculating a route.travelMode
(RouteLegTravelMode travelMode) Specifies the mode of transport when calculating a route.Type of the leg.type
(RouteLegType type) Type of the leg.default RouteLeg.Builder
vehicleLegDetails
(Consumer<RouteVehicleLegDetails.Builder> vehicleLegDetails) Details related to the vehicle leg.vehicleLegDetails
(RouteVehicleLegDetails vehicleLegDetails) Details related to the vehicle leg.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 Details
-
ferryLegDetails
FerryLegDetails is populated when the Leg type is Ferry, and provides additional information that is specific
- Parameters:
ferryLegDetails
- FerryLegDetails is populated when the Leg type is Ferry, and provides additional information that is specific- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ferryLegDetails
FerryLegDetails is populated when the Leg type is Ferry, and provides additional information that is specific
This is a convenience method that creates an instance of theRouteFerryLegDetails.Builder
avoiding the need to create one manually viaRouteFerryLegDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toferryLegDetails(RouteFerryLegDetails)
.- Parameters:
ferryLegDetails
- a consumer that will call methods onRouteFerryLegDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
geometry
Geometry of the area to be avoided.
- Parameters:
geometry
- Geometry of the area to be avoided.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
geometry
Geometry of the area to be avoided.
This is a convenience method that creates an instance of theRouteLegGeometry.Builder
avoiding the need to create one manually viaRouteLegGeometry.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togeometry(RouteLegGeometry)
.- Parameters:
geometry
- a consumer that will call methods onRouteLegGeometry.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
language
List of languages for instructions within steps in the response.
- Parameters:
language
- List of languages for instructions within steps in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pedestrianLegDetails
Details related to the pedestrian leg.
- Parameters:
pedestrianLegDetails
- Details related to the pedestrian leg.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pedestrianLegDetails
default RouteLeg.Builder pedestrianLegDetails(Consumer<RoutePedestrianLegDetails.Builder> pedestrianLegDetails) Details related to the pedestrian leg.
This is a convenience method that creates an instance of theRoutePedestrianLegDetails.Builder
avoiding the need to create one manually viaRoutePedestrianLegDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topedestrianLegDetails(RoutePedestrianLegDetails)
.- Parameters:
pedestrianLegDetails
- a consumer that will call methods onRoutePedestrianLegDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
travelMode
Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility.
Default Value:
Car
- Parameters:
travelMode
- Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility.Default Value:
Car
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
travelMode
Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility.
Default Value:
Car
- Parameters:
travelMode
- Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility.Default Value:
Car
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
Type of the leg.
- Parameters:
type
- Type of the leg.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
Type of the leg.
- Parameters:
type
- Type of the leg.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
vehicleLegDetails
Details related to the vehicle leg.
- Parameters:
vehicleLegDetails
- Details related to the vehicle leg.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vehicleLegDetails
default RouteLeg.Builder vehicleLegDetails(Consumer<RouteVehicleLegDetails.Builder> vehicleLegDetails) Details related to the vehicle leg.
This is a convenience method that creates an instance of theRouteVehicleLegDetails.Builder
avoiding the need to create one manually viaRouteVehicleLegDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovehicleLegDetails(RouteVehicleLegDetails)
.- Parameters:
vehicleLegDetails
- a consumer that will call methods onRouteVehicleLegDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-