Interface CalculateRoutesRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CalculateRoutesRequest.Builder,
,CalculateRoutesRequest> GeoRoutesRequest.Builder
,SdkBuilder<CalculateRoutesRequest.Builder,
,CalculateRoutesRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CalculateRoutesRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault CalculateRoutesRequest.Builder
allow
(Consumer<RouteAllowOptions.Builder> allow) Features that are allowed while calculating a route.allow
(RouteAllowOptions allow) Features that are allowed while calculating a route.arrivalTime
(String arrivalTime) Time of arrival at the destination.default CalculateRoutesRequest.Builder
Features that are avoided while calculating a route.avoid
(RouteAvoidanceOptions avoid) Features that are avoided while calculating a route.Uses the current time as the time of departure.departureTime
(String departureTime) Time of departure from thr origin.destination
(Double... destination) The final position for the route.destination
(Collection<Double> destination) The final position for the route.default CalculateRoutesRequest.Builder
destinationOptions
(Consumer<RouteDestinationOptions.Builder> destinationOptions) Destination related options.destinationOptions
(RouteDestinationOptions destinationOptions) Destination related options.default CalculateRoutesRequest.Builder
driver
(Consumer<RouteDriverOptions.Builder> driver) Driver related options.driver
(RouteDriverOptions driver) Driver related options.default CalculateRoutesRequest.Builder
exclude
(Consumer<RouteExclusionOptions.Builder> exclude) Features to be strictly excluded while calculating the route.exclude
(RouteExclusionOptions exclude) Features to be strictly excluded while calculating the route.instructionsMeasurementSystem
(String instructionsMeasurementSystem) Measurement system to be used for instructions within steps in the response.instructionsMeasurementSystem
(MeasurementSystem instructionsMeasurementSystem) Measurement system to be used for instructions within steps in the response.Optional: The API key to be used for authorization.List of languages for instructions within steps in the response.languages
(Collection<String> languages) List of languages for instructions within steps in the response.legAdditionalFeatures
(Collection<RouteLegAdditionalFeature> legAdditionalFeatures) A list of optional additional parameters such as timezone that can be requested for each result.legAdditionalFeatures
(RouteLegAdditionalFeature... legAdditionalFeatures) A list of optional additional parameters such as timezone that can be requested for each result.legAdditionalFeaturesWithStrings
(String... legAdditionalFeatures) A list of optional additional parameters such as timezone that can be requested for each result.legAdditionalFeaturesWithStrings
(Collection<String> legAdditionalFeatures) A list of optional additional parameters such as timezone that can be requested for each result.legGeometryFormat
(String legGeometryFormat) Specifies the format of the geometry returned for each leg of the route.legGeometryFormat
(GeometryFormat legGeometryFormat) Specifies the format of the geometry returned for each leg of the route.maxAlternatives
(Integer maxAlternatives) Maximum number of alternative routes to be provided in the response, if available.optimizeRoutingFor
(String optimizeRoutingFor) Specifies the optimization criteria for calculating a route.optimizeRoutingFor
(RoutingObjective optimizeRoutingFor) Specifies the optimization criteria for calculating a route.The start position for the route.origin
(Collection<Double> origin) The start position for the route.default CalculateRoutesRequest.Builder
originOptions
(Consumer<RouteOriginOptions.Builder> originOptions) Origin related options.originOptions
(RouteOriginOptions originOptions) Origin related options.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.spanAdditionalFeatures
(Collection<RouteSpanAdditionalFeature> spanAdditionalFeatures) A list of optional features such as SpeedLimit that can be requested for a Span.spanAdditionalFeatures
(RouteSpanAdditionalFeature... spanAdditionalFeatures) A list of optional features such as SpeedLimit that can be requested for a Span.spanAdditionalFeaturesWithStrings
(String... spanAdditionalFeatures) A list of optional features such as SpeedLimit that can be requested for a Span.spanAdditionalFeaturesWithStrings
(Collection<String> spanAdditionalFeatures) A list of optional features such as SpeedLimit that can be requested for a Span.default CalculateRoutesRequest.Builder
tolls
(Consumer<RouteTollOptions.Builder> tolls) Toll related options.tolls
(RouteTollOptions tolls) Toll related options.default CalculateRoutesRequest.Builder
traffic
(Consumer<RouteTrafficOptions.Builder> traffic) Traffic related options.traffic
(RouteTrafficOptions traffic) Traffic related options.travelMode
(String travelMode) Specifies the mode of transport when calculating a route.travelMode
(RouteTravelMode travelMode) Specifies the mode of transport when calculating a route.default CalculateRoutesRequest.Builder
travelModeOptions
(Consumer<RouteTravelModeOptions.Builder> travelModeOptions) Travel mode related options for the provided travel mode.travelModeOptions
(RouteTravelModeOptions travelModeOptions) Travel mode related options for the provided travel mode.travelStepType
(String travelStepType) Type of step returned by the response.travelStepType
(RouteTravelStepType travelStepType) Type of step returned by the response.waypoints
(Collection<RouteWaypoint> waypoints) List of waypoints between the Origin and Destination.waypoints
(Consumer<RouteWaypoint.Builder>... waypoints) List of waypoints between the Origin and Destination.waypoints
(RouteWaypoint... waypoints) List of waypoints between the Origin and Destination.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.georoutes.model.GeoRoutesRequest.Builder
build
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
-
allow
Features that are allowed while calculating a route.
- Parameters:
allow
- Features that are allowed while calculating a route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allow
Features that are allowed while calculating a route.
This is a convenience method that creates an instance of theRouteAllowOptions.Builder
avoiding the need to create one manually viaRouteAllowOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toallow(RouteAllowOptions)
.- Parameters:
allow
- a consumer that will call methods onRouteAllowOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
arrivalTime
Time of arrival at the destination.
Time format:
YYYY-MM-DDThh:mm:ss.sssZ | YYYY-MM-DDThh:mm:ss.sss+hh:mm
Examples:
2020-04-22T17:57:24Z
2020-04-22T17:57:24+02:00
- Parameters:
arrivalTime
- Time of arrival at the destination.Time format:
YYYY-MM-DDThh:mm:ss.sssZ | YYYY-MM-DDThh:mm:ss.sss+hh:mm
Examples:
2020-04-22T17:57:24Z
2020-04-22T17:57:24+02:00
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
avoid
Features that are avoided while calculating a route. Avoidance is on a best-case basis. If an avoidance can't be satisfied for a particular case, it violates the avoidance and the returned response produces a notice for the violation.
- Parameters:
avoid
- Features that are avoided while calculating a route. Avoidance is on a best-case basis. If an avoidance can't be satisfied for a particular case, it violates the avoidance and the returned response produces a notice for the violation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
avoid
Features that are avoided while calculating a route. Avoidance is on a best-case basis. If an avoidance can't be satisfied for a particular case, it violates the avoidance and the returned response produces a notice for the violation.
This is a convenience method that creates an instance of theRouteAvoidanceOptions.Builder
avoiding the need to create one manually viaRouteAvoidanceOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toavoid(RouteAvoidanceOptions)
.- Parameters:
avoid
- a consumer that will call methods onRouteAvoidanceOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
departNow
Uses the current time as the time of departure.
- Parameters:
departNow
- Uses the current time as the time of departure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
departureTime
Time of departure from thr origin.
Time format:
YYYY-MM-DDThh:mm:ss.sssZ | YYYY-MM-DDThh:mm:ss.sss+hh:mm
Examples:
2020-04-22T17:57:24Z
2020-04-22T17:57:24+02:00
- Parameters:
departureTime
- Time of departure from thr origin.Time format:
YYYY-MM-DDThh:mm:ss.sssZ | YYYY-MM-DDThh:mm:ss.sss+hh:mm
Examples:
2020-04-22T17:57:24Z
2020-04-22T17:57:24+02:00
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destination
The final position for the route. In the World Geodetic System (WGS 84) format:
[longitude, latitude]
.- Parameters:
destination
- The final position for the route. In the World Geodetic System (WGS 84) format:[longitude, latitude]
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destination
The final position for the route. In the World Geodetic System (WGS 84) format:
[longitude, latitude]
.- Parameters:
destination
- The final position for the route. In the World Geodetic System (WGS 84) format:[longitude, latitude]
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinationOptions
Destination related options.
- Parameters:
destinationOptions
- Destination related options.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinationOptions
default CalculateRoutesRequest.Builder destinationOptions(Consumer<RouteDestinationOptions.Builder> destinationOptions) Destination related options.
This is a convenience method that creates an instance of theRouteDestinationOptions.Builder
avoiding the need to create one manually viaRouteDestinationOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todestinationOptions(RouteDestinationOptions)
.- Parameters:
destinationOptions
- a consumer that will call methods onRouteDestinationOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
driver
Driver related options.
- Parameters:
driver
- Driver related options.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
driver
Driver related options.
This is a convenience method that creates an instance of theRouteDriverOptions.Builder
avoiding the need to create one manually viaRouteDriverOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todriver(RouteDriverOptions)
.- Parameters:
driver
- a consumer that will call methods onRouteDriverOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
exclude
Features to be strictly excluded while calculating the route.
- Parameters:
exclude
- Features to be strictly excluded while calculating the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exclude
Features to be strictly excluded while calculating the route.
This is a convenience method that creates an instance of theRouteExclusionOptions.Builder
avoiding the need to create one manually viaRouteExclusionOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toexclude(RouteExclusionOptions)
.- Parameters:
exclude
- a consumer that will call methods onRouteExclusionOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instructionsMeasurementSystem
Measurement system to be used for instructions within steps in the response.
- Parameters:
instructionsMeasurementSystem
- Measurement system to be used for instructions within steps in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instructionsMeasurementSystem
CalculateRoutesRequest.Builder instructionsMeasurementSystem(MeasurementSystem instructionsMeasurementSystem) Measurement system to be used for instructions within steps in the response.
- Parameters:
instructionsMeasurementSystem
- Measurement system to be used for instructions within steps in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
key
Optional: The API key to be used for authorization. Either an API key or valid SigV4 signature must be provided when making a request.
- Parameters:
key
- Optional: The API key to be used for authorization. Either an API key or valid SigV4 signature must be provided when making a request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
languages
List of languages for instructions within steps in the response.
Instructions in the requested language are returned only if they are available.
- Parameters:
languages
- List of languages for instructions within steps in the response.Instructions in the requested language are returned only if they are available.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
languages
List of languages for instructions within steps in the response.
Instructions in the requested language are returned only if they are available.
- Parameters:
languages
- List of languages for instructions within steps in the response.Instructions in the requested language are returned only if they are available.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
legAdditionalFeaturesWithStrings
CalculateRoutesRequest.Builder legAdditionalFeaturesWithStrings(Collection<String> legAdditionalFeatures) A list of optional additional parameters such as timezone that can be requested for each result.
-
Elevation
: Retrieves the elevation information for each location. -
Incidents
: Provides information on traffic incidents along the route. -
PassThroughWaypoints
: Indicates waypoints that are passed through without stopping. -
Summary
: Returns a summary of the route, including distance and duration. -
Tolls
: Supplies toll cost information along the route. -
TravelStepInstructions
: Provides step-by-step instructions for travel along the route. -
TruckRoadTypes
: Returns information about road types suitable for trucks. -
TypicalDuration
: Gives typical travel duration based on historical data. -
Zones
: Specifies the time zone information for each waypoint.
- Parameters:
legAdditionalFeatures
- A list of optional additional parameters such as timezone that can be requested for each result.-
Elevation
: Retrieves the elevation information for each location. -
Incidents
: Provides information on traffic incidents along the route. -
PassThroughWaypoints
: Indicates waypoints that are passed through without stopping. -
Summary
: Returns a summary of the route, including distance and duration. -
Tolls
: Supplies toll cost information along the route. -
TravelStepInstructions
: Provides step-by-step instructions for travel along the route. -
TruckRoadTypes
: Returns information about road types suitable for trucks. -
TypicalDuration
: Gives typical travel duration based on historical data. -
Zones
: Specifies the time zone information for each waypoint.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
legAdditionalFeaturesWithStrings
A list of optional additional parameters such as timezone that can be requested for each result.
-
Elevation
: Retrieves the elevation information for each location. -
Incidents
: Provides information on traffic incidents along the route. -
PassThroughWaypoints
: Indicates waypoints that are passed through without stopping. -
Summary
: Returns a summary of the route, including distance and duration. -
Tolls
: Supplies toll cost information along the route. -
TravelStepInstructions
: Provides step-by-step instructions for travel along the route. -
TruckRoadTypes
: Returns information about road types suitable for trucks. -
TypicalDuration
: Gives typical travel duration based on historical data. -
Zones
: Specifies the time zone information for each waypoint.
- Parameters:
legAdditionalFeatures
- A list of optional additional parameters such as timezone that can be requested for each result.-
Elevation
: Retrieves the elevation information for each location. -
Incidents
: Provides information on traffic incidents along the route. -
PassThroughWaypoints
: Indicates waypoints that are passed through without stopping. -
Summary
: Returns a summary of the route, including distance and duration. -
Tolls
: Supplies toll cost information along the route. -
TravelStepInstructions
: Provides step-by-step instructions for travel along the route. -
TruckRoadTypes
: Returns information about road types suitable for trucks. -
TypicalDuration
: Gives typical travel duration based on historical data. -
Zones
: Specifies the time zone information for each waypoint.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
legAdditionalFeatures
CalculateRoutesRequest.Builder legAdditionalFeatures(Collection<RouteLegAdditionalFeature> legAdditionalFeatures) A list of optional additional parameters such as timezone that can be requested for each result.
-
Elevation
: Retrieves the elevation information for each location. -
Incidents
: Provides information on traffic incidents along the route. -
PassThroughWaypoints
: Indicates waypoints that are passed through without stopping. -
Summary
: Returns a summary of the route, including distance and duration. -
Tolls
: Supplies toll cost information along the route. -
TravelStepInstructions
: Provides step-by-step instructions for travel along the route. -
TruckRoadTypes
: Returns information about road types suitable for trucks. -
TypicalDuration
: Gives typical travel duration based on historical data. -
Zones
: Specifies the time zone information for each waypoint.
- Parameters:
legAdditionalFeatures
- A list of optional additional parameters such as timezone that can be requested for each result.-
Elevation
: Retrieves the elevation information for each location. -
Incidents
: Provides information on traffic incidents along the route. -
PassThroughWaypoints
: Indicates waypoints that are passed through without stopping. -
Summary
: Returns a summary of the route, including distance and duration. -
Tolls
: Supplies toll cost information along the route. -
TravelStepInstructions
: Provides step-by-step instructions for travel along the route. -
TruckRoadTypes
: Returns information about road types suitable for trucks. -
TypicalDuration
: Gives typical travel duration based on historical data. -
Zones
: Specifies the time zone information for each waypoint.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
legAdditionalFeatures
CalculateRoutesRequest.Builder legAdditionalFeatures(RouteLegAdditionalFeature... legAdditionalFeatures) A list of optional additional parameters such as timezone that can be requested for each result.
-
Elevation
: Retrieves the elevation information for each location. -
Incidents
: Provides information on traffic incidents along the route. -
PassThroughWaypoints
: Indicates waypoints that are passed through without stopping. -
Summary
: Returns a summary of the route, including distance and duration. -
Tolls
: Supplies toll cost information along the route. -
TravelStepInstructions
: Provides step-by-step instructions for travel along the route. -
TruckRoadTypes
: Returns information about road types suitable for trucks. -
TypicalDuration
: Gives typical travel duration based on historical data. -
Zones
: Specifies the time zone information for each waypoint.
- Parameters:
legAdditionalFeatures
- A list of optional additional parameters such as timezone that can be requested for each result.-
Elevation
: Retrieves the elevation information for each location. -
Incidents
: Provides information on traffic incidents along the route. -
PassThroughWaypoints
: Indicates waypoints that are passed through without stopping. -
Summary
: Returns a summary of the route, including distance and duration. -
Tolls
: Supplies toll cost information along the route. -
TravelStepInstructions
: Provides step-by-step instructions for travel along the route. -
TruckRoadTypes
: Returns information about road types suitable for trucks. -
TypicalDuration
: Gives typical travel duration based on historical data. -
Zones
: Specifies the time zone information for each waypoint.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
legGeometryFormat
Specifies the format of the geometry returned for each leg of the route. You can choose between two different geometry encoding formats.
FlexiblePolyline
: A compact and precise encoding format for the leg geometry. For more information on the format, see the GitHub repository forFlexiblePolyline
.Simple
: A less compact encoding, which is easier to decode but may be less precise and result in larger payloads.- Parameters:
legGeometryFormat
- Specifies the format of the geometry returned for each leg of the route. You can choose between two different geometry encoding formats.FlexiblePolyline
: A compact and precise encoding format for the leg geometry. For more information on the format, see the GitHub repository forFlexiblePolyline
.Simple
: A less compact encoding, which is easier to decode but may be less precise and result in larger payloads.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
legGeometryFormat
Specifies the format of the geometry returned for each leg of the route. You can choose between two different geometry encoding formats.
FlexiblePolyline
: A compact and precise encoding format for the leg geometry. For more information on the format, see the GitHub repository forFlexiblePolyline
.Simple
: A less compact encoding, which is easier to decode but may be less precise and result in larger payloads.- Parameters:
legGeometryFormat
- Specifies the format of the geometry returned for each leg of the route. You can choose between two different geometry encoding formats.FlexiblePolyline
: A compact and precise encoding format for the leg geometry. For more information on the format, see the GitHub repository forFlexiblePolyline
.Simple
: A less compact encoding, which is easier to decode but may be less precise and result in larger payloads.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxAlternatives
Maximum number of alternative routes to be provided in the response, if available.
- Parameters:
maxAlternatives
- Maximum number of alternative routes to be provided in the response, if available.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
optimizeRoutingFor
Specifies the optimization criteria for calculating a route.
Default Value:
FastestRoute
- Parameters:
optimizeRoutingFor
- Specifies the optimization criteria for calculating a route.Default Value:
FastestRoute
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
optimizeRoutingFor
Specifies the optimization criteria for calculating a route.
Default Value:
FastestRoute
- Parameters:
optimizeRoutingFor
- Specifies the optimization criteria for calculating a route.Default Value:
FastestRoute
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
origin
The start position for the route.
- Parameters:
origin
- The start position for the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
origin
The start position for the route.
- Parameters:
origin
- The start position for the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
originOptions
Origin related options.
- Parameters:
originOptions
- Origin related options.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
originOptions
default CalculateRoutesRequest.Builder originOptions(Consumer<RouteOriginOptions.Builder> originOptions) Origin related options.
This is a convenience method that creates an instance of theRouteOriginOptions.Builder
avoiding the need to create one manually viaRouteOriginOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooriginOptions(RouteOriginOptions)
.- Parameters:
originOptions
- a consumer that will call methods onRouteOriginOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
spanAdditionalFeaturesWithStrings
CalculateRoutesRequest.Builder spanAdditionalFeaturesWithStrings(Collection<String> spanAdditionalFeatures) A list of optional features such as SpeedLimit that can be requested for a Span. A span is a section of a Leg for which the requested features have the same values.
- Parameters:
spanAdditionalFeatures
- A list of optional features such as SpeedLimit that can be requested for a Span. A span is a section of a Leg for which the requested features have the same values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spanAdditionalFeaturesWithStrings
A list of optional features such as SpeedLimit that can be requested for a Span. A span is a section of a Leg for which the requested features have the same values.
- Parameters:
spanAdditionalFeatures
- A list of optional features such as SpeedLimit that can be requested for a Span. A span is a section of a Leg for which the requested features have the same values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spanAdditionalFeatures
CalculateRoutesRequest.Builder spanAdditionalFeatures(Collection<RouteSpanAdditionalFeature> spanAdditionalFeatures) A list of optional features such as SpeedLimit that can be requested for a Span. A span is a section of a Leg for which the requested features have the same values.
- Parameters:
spanAdditionalFeatures
- A list of optional features such as SpeedLimit that can be requested for a Span. A span is a section of a Leg for which the requested features have the same values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spanAdditionalFeatures
CalculateRoutesRequest.Builder spanAdditionalFeatures(RouteSpanAdditionalFeature... spanAdditionalFeatures) A list of optional features such as SpeedLimit that can be requested for a Span. A span is a section of a Leg for which the requested features have the same values.
- Parameters:
spanAdditionalFeatures
- A list of optional features such as SpeedLimit that can be requested for a Span. A span is a section of a Leg for which the requested features have the same values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tolls
Toll related options.
- Parameters:
tolls
- Toll related options.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tolls
Toll related options.
This is a convenience method that creates an instance of theRouteTollOptions.Builder
avoiding the need to create one manually viaRouteTollOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totolls(RouteTollOptions)
.- Parameters:
tolls
- a consumer that will call methods onRouteTollOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
traffic
Traffic related options.
- Parameters:
traffic
- Traffic related options.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
traffic
Traffic related options.
This is a convenience method that creates an instance of theRouteTrafficOptions.Builder
avoiding the need to create one manually viaRouteTrafficOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totraffic(RouteTrafficOptions)
.- Parameters:
traffic
- a consumer that will call methods onRouteTrafficOptions.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:
-
travelModeOptions
Travel mode related options for the provided travel mode.
- Parameters:
travelModeOptions
- Travel mode related options for the provided travel mode.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
travelModeOptions
default CalculateRoutesRequest.Builder travelModeOptions(Consumer<RouteTravelModeOptions.Builder> travelModeOptions) Travel mode related options for the provided travel mode.
This is a convenience method that creates an instance of theRouteTravelModeOptions.Builder
avoiding the need to create one manually viaRouteTravelModeOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totravelModeOptions(RouteTravelModeOptions)
.- Parameters:
travelModeOptions
- a consumer that will call methods onRouteTravelModeOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
travelStepType
Type of step returned by the response. Default provides basic steps intended for web based applications. TurnByTurn provides detailed instructions with more granularity intended for a turn based navigation system.
- Parameters:
travelStepType
- Type of step returned by the response. Default provides basic steps intended for web based applications. TurnByTurn provides detailed instructions with more granularity intended for a turn based navigation system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
travelStepType
Type of step returned by the response. Default provides basic steps intended for web based applications. TurnByTurn provides detailed instructions with more granularity intended for a turn based navigation system.
- Parameters:
travelStepType
- Type of step returned by the response. Default provides basic steps intended for web based applications. TurnByTurn provides detailed instructions with more granularity intended for a turn based navigation system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
waypoints
List of waypoints between the Origin and Destination.
- Parameters:
waypoints
- List of waypoints between the Origin and Destination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
waypoints
List of waypoints between the Origin and Destination.
- Parameters:
waypoints
- List of waypoints between the Origin and Destination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
waypoints
List of waypoints between the Origin and Destination.
This is a convenience method that creates an instance of theRouteWaypoint.Builder
avoiding the need to create one manually viaRouteWaypoint.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed towaypoints(List<RouteWaypoint>)
.- Parameters:
waypoints
- a consumer that will call methods onRouteWaypoint.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CalculateRoutesRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CalculateRoutesRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-