Interface RouteDestinationOptions.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RouteDestinationOptions.Builder,,RouteDestinationOptions> SdkBuilder<RouteDestinationOptions.Builder,,RouteDestinationOptions> SdkPojo
- Enclosing class:
RouteDestinationOptions
-
Method Summary
Modifier and TypeMethodDescriptionavoidActionsForDistance(Long avoidActionsForDistance) The distance in meters from the destination point within which certain routing actions (such as U-turns or left turns across traffic) are restricted.avoidUTurns(Boolean avoidUTurns) Avoid U-turns for calculation on highways and motorways.GPS Heading at the position.default RouteDestinationOptions.Buildermatching(Consumer<RouteMatchingOptions.Builder> matching) Options to configure matching the provided position to the road network.matching(RouteMatchingOptions matching) Options to configure matching the provided position to the road network.default RouteDestinationOptions.BuildersideOfStreet(Consumer<RouteSideOfStreetOptions.Builder> sideOfStreet) Options to configure matching the provided position to a side of the street.sideOfStreet(RouteSideOfStreetOptions sideOfStreet) Options to configure matching the provided position to a side of the street.stopDuration(Long stopDuration) Duration of the stop.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
-
avoidActionsForDistance
The distance in meters from the destination point within which certain routing actions (such as U-turns or left turns across traffic) are restricted. This helps generate more practical routes by avoiding potentially dangerous maneuvers near the endpoint.
- Parameters:
avoidActionsForDistance- The distance in meters from the destination point within which certain routing actions (such as U-turns or left turns across traffic) are restricted. This helps generate more practical routes by avoiding potentially dangerous maneuvers near the endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
avoidUTurns
Avoid U-turns for calculation on highways and motorways.
- Parameters:
avoidUTurns- Avoid U-turns for calculation on highways and motorways.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
heading
GPS Heading at the position.
- Parameters:
heading- GPS Heading at the position.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
matching
Options to configure matching the provided position to the road network.
- Parameters:
matching- Options to configure matching the provided position to the road network.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
matching
Options to configure matching the provided position to the road network.
This is a convenience method that creates an instance of theRouteMatchingOptions.Builderavoiding the need to create one manually viaRouteMatchingOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomatching(RouteMatchingOptions).- Parameters:
matching- a consumer that will call methods onRouteMatchingOptions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sideOfStreet
Options to configure matching the provided position to a side of the street.
- Parameters:
sideOfStreet- Options to configure matching the provided position to a side of the street.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sideOfStreet
default RouteDestinationOptions.Builder sideOfStreet(Consumer<RouteSideOfStreetOptions.Builder> sideOfStreet) Options to configure matching the provided position to a side of the street.
This is a convenience method that creates an instance of theRouteSideOfStreetOptions.Builderavoiding the need to create one manually viaRouteSideOfStreetOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosideOfStreet(RouteSideOfStreetOptions).- Parameters:
sideOfStreet- a consumer that will call methods onRouteSideOfStreetOptions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
stopDuration
Duration of the stop.
Unit:
seconds- Parameters:
stopDuration- Duration of the stop.Unit:
seconds- Returns:
- Returns a reference to this object so that method calls can be chained together.
-