Interface CalculateRoutesRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CalculateRoutesRequest.Builder,CalculateRoutesRequest>,GeoRoutesRequest.Builder,SdkBuilder<CalculateRoutesRequest.Builder,CalculateRoutesRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CalculateRoutesRequest
public static interface CalculateRoutesRequest.Builder extends GeoRoutesRequest.Builder, SdkPojo, CopyableBuilder<CalculateRoutesRequest.Builder,CalculateRoutesRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CalculateRoutesRequest.Builderallow(Consumer<RouteAllowOptions.Builder> allow)Features that are allowed while calculating.CalculateRoutesRequest.Builderallow(RouteAllowOptions allow)Features that are allowed while calculating.CalculateRoutesRequest.BuilderarrivalTime(String arrivalTime)Time of arrival at the destination.default CalculateRoutesRequest.Builderavoid(Consumer<RouteAvoidanceOptions.Builder> avoid)Features that are avoided while calculating a route.CalculateRoutesRequest.Builderavoid(RouteAvoidanceOptions avoid)Features that are avoided while calculating a route.CalculateRoutesRequest.BuilderdepartNow(Boolean departNow)Uses the current time as the time of departure.CalculateRoutesRequest.BuilderdepartureTime(String departureTime)Time of departure from thr origin.CalculateRoutesRequest.Builderdestination(Double... destination)The final position for the route.CalculateRoutesRequest.Builderdestination(Collection<Double> destination)The final position for the route.default CalculateRoutesRequest.BuilderdestinationOptions(Consumer<RouteDestinationOptions.Builder> destinationOptions)Destination related options.CalculateRoutesRequest.BuilderdestinationOptions(RouteDestinationOptions destinationOptions)Destination related options.default CalculateRoutesRequest.Builderdriver(Consumer<RouteDriverOptions.Builder> driver)Driver related options.CalculateRoutesRequest.Builderdriver(RouteDriverOptions driver)Driver related options.default CalculateRoutesRequest.Builderexclude(Consumer<RouteExclusionOptions.Builder> exclude)Features to be strictly excluded while calculating the route.CalculateRoutesRequest.Builderexclude(RouteExclusionOptions exclude)Features to be strictly excluded while calculating the route.CalculateRoutesRequest.BuilderinstructionsMeasurementSystem(String instructionsMeasurementSystem)Measurement system to be used for instructions within steps in the response.CalculateRoutesRequest.BuilderinstructionsMeasurementSystem(MeasurementSystem instructionsMeasurementSystem)Measurement system to be used for instructions within steps in the response.CalculateRoutesRequest.Builderkey(String key)Optional: The API key to be used for authorization.CalculateRoutesRequest.Builderlanguages(String... languages)List of languages for instructions within steps in the response.CalculateRoutesRequest.Builderlanguages(Collection<String> languages)List of languages for instructions within steps in the response.CalculateRoutesRequest.BuilderlegAdditionalFeatures(Collection<RouteLegAdditionalFeature> legAdditionalFeatures)A list of optional additional parameters such as timezone that can be requested for each result.CalculateRoutesRequest.BuilderlegAdditionalFeatures(RouteLegAdditionalFeature... legAdditionalFeatures)A list of optional additional parameters such as timezone that can be requested for each result.CalculateRoutesRequest.BuilderlegAdditionalFeaturesWithStrings(String... legAdditionalFeatures)A list of optional additional parameters such as timezone that can be requested for each result.CalculateRoutesRequest.BuilderlegAdditionalFeaturesWithStrings(Collection<String> legAdditionalFeatures)A list of optional additional parameters such as timezone that can be requested for each result.CalculateRoutesRequest.BuilderlegGeometryFormat(String legGeometryFormat)Specifies the format of the geometry returned for each leg of the route.CalculateRoutesRequest.BuilderlegGeometryFormat(GeometryFormat legGeometryFormat)Specifies the format of the geometry returned for each leg of the route.CalculateRoutesRequest.BuildermaxAlternatives(Integer maxAlternatives)Maximum number of alternative routes to be provided in the response, if available.CalculateRoutesRequest.BuilderoptimizeRoutingFor(String optimizeRoutingFor)Specifies the optimization criteria for calculating a route.CalculateRoutesRequest.BuilderoptimizeRoutingFor(RoutingObjective optimizeRoutingFor)Specifies the optimization criteria for calculating a route.CalculateRoutesRequest.Builderorigin(Double... origin)The start position for the route.CalculateRoutesRequest.Builderorigin(Collection<Double> origin)The start position for the route.default CalculateRoutesRequest.BuilderoriginOptions(Consumer<RouteOriginOptions.Builder> originOptions)Origin related options.CalculateRoutesRequest.BuilderoriginOptions(RouteOriginOptions originOptions)Origin related options.CalculateRoutesRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CalculateRoutesRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CalculateRoutesRequest.BuilderspanAdditionalFeatures(Collection<RouteSpanAdditionalFeature> spanAdditionalFeatures)A list of optional features such as SpeedLimit that can be requested for a Span.CalculateRoutesRequest.BuilderspanAdditionalFeatures(RouteSpanAdditionalFeature... spanAdditionalFeatures)A list of optional features such as SpeedLimit that can be requested for a Span.CalculateRoutesRequest.BuilderspanAdditionalFeaturesWithStrings(String... spanAdditionalFeatures)A list of optional features such as SpeedLimit that can be requested for a Span.CalculateRoutesRequest.BuilderspanAdditionalFeaturesWithStrings(Collection<String> spanAdditionalFeatures)A list of optional features such as SpeedLimit that can be requested for a Span.default CalculateRoutesRequest.Buildertolls(Consumer<RouteTollOptions.Builder> tolls)Toll related options.CalculateRoutesRequest.Buildertolls(RouteTollOptions tolls)Toll related options.default CalculateRoutesRequest.Buildertraffic(Consumer<RouteTrafficOptions.Builder> traffic)Traffic related options.CalculateRoutesRequest.Buildertraffic(RouteTrafficOptions traffic)Traffic related options.CalculateRoutesRequest.BuildertravelMode(String travelMode)Specifies the mode of transport when calculating a route.CalculateRoutesRequest.BuildertravelMode(RouteTravelMode travelMode)Specifies the mode of transport when calculating a route.default CalculateRoutesRequest.BuildertravelModeOptions(Consumer<RouteTravelModeOptions.Builder> travelModeOptions)Travel mode related options for the provided travel mode.CalculateRoutesRequest.BuildertravelModeOptions(RouteTravelModeOptions travelModeOptions)Travel mode related options for the provided travel mode.CalculateRoutesRequest.BuildertravelStepType(String travelStepType)Type of step returned by the response.CalculateRoutesRequest.BuildertravelStepType(RouteTravelStepType travelStepType)Type of step returned by the response.CalculateRoutesRequest.Builderwaypoints(Collection<RouteWaypoint> waypoints)List of waypoints between the Origin and Destination.CalculateRoutesRequest.Builderwaypoints(Consumer<RouteWaypoint.Builder>... waypoints)List of waypoints between the Origin and Destination.CalculateRoutesRequest.Builderwaypoints(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 Detail
-
allow
CalculateRoutesRequest.Builder allow(RouteAllowOptions 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
default CalculateRoutesRequest.Builder allow(Consumer<RouteAllowOptions.Builder> allow)
Features that are allowed while calculating. a route
This is a convenience method that creates an instance of theRouteAllowOptions.Builderavoiding the need to create one manually viaRouteAllowOptions.builder().When the
Consumercompletes,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:
allow(RouteAllowOptions)
-
arrivalTime
CalculateRoutesRequest.Builder arrivalTime(String arrivalTime)
Time of arrival at the destination.
Time format:
YYYY-MM-DDThh:mm:ss.sssZ | YYYY-MM-DDThh:mm:ss.sss+hh:mmExamples:
2020-04-22T17:57:24Z2020-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:mmExamples:
2020-04-22T17:57:24Z2020-04-22T17:57:24+02:00- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
avoid
CalculateRoutesRequest.Builder avoid(RouteAvoidanceOptions 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
default CalculateRoutesRequest.Builder avoid(Consumer<RouteAvoidanceOptions.Builder> 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.Builderavoiding the need to create one manually viaRouteAvoidanceOptions.builder().When the
Consumercompletes,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:
avoid(RouteAvoidanceOptions)
-
departNow
CalculateRoutesRequest.Builder departNow(Boolean 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
CalculateRoutesRequest.Builder departureTime(String departureTime)
Time of departure from thr origin.
Time format:
YYYY-MM-DDThh:mm:ss.sssZ | YYYY-MM-DDThh:mm:ss.sss+hh:mmExamples:
2020-04-22T17:57:24Z2020-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:mmExamples:
2020-04-22T17:57:24Z2020-04-22T17:57:24+02:00- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destination
CalculateRoutesRequest.Builder destination(Collection<Double> 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
CalculateRoutesRequest.Builder destination(Double... 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
CalculateRoutesRequest.Builder destinationOptions(RouteDestinationOptions 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.Builderavoiding the need to create one manually viaRouteDestinationOptions.builder().When the
Consumercompletes,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:
destinationOptions(RouteDestinationOptions)
-
driver
CalculateRoutesRequest.Builder driver(RouteDriverOptions 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
default CalculateRoutesRequest.Builder driver(Consumer<RouteDriverOptions.Builder> driver)
Driver related options.
This is a convenience method that creates an instance of theRouteDriverOptions.Builderavoiding the need to create one manually viaRouteDriverOptions.builder().When the
Consumercompletes,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:
driver(RouteDriverOptions)
-
exclude
CalculateRoutesRequest.Builder exclude(RouteExclusionOptions 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
default CalculateRoutesRequest.Builder exclude(Consumer<RouteExclusionOptions.Builder> exclude)
Features to be strictly excluded while calculating the route.
This is a convenience method that creates an instance of theRouteExclusionOptions.Builderavoiding the need to create one manually viaRouteExclusionOptions.builder().When the
Consumercompletes,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:
exclude(RouteExclusionOptions)
-
instructionsMeasurementSystem
CalculateRoutesRequest.Builder instructionsMeasurementSystem(String 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:
MeasurementSystem,MeasurementSystem
-
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:
MeasurementSystem,MeasurementSystem
-
key
CalculateRoutesRequest.Builder key(String 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
CalculateRoutesRequest.Builder languages(Collection<String> 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
CalculateRoutesRequest.Builder languages(String... 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
CalculateRoutesRequest.Builder legAdditionalFeaturesWithStrings(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.
-
-
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
CalculateRoutesRequest.Builder legGeometryFormat(String 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:
GeometryFormat,GeometryFormat
-
legGeometryFormat
CalculateRoutesRequest.Builder legGeometryFormat(GeometryFormat 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:
GeometryFormat,GeometryFormat
-
maxAlternatives
CalculateRoutesRequest.Builder maxAlternatives(Integer 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
CalculateRoutesRequest.Builder optimizeRoutingFor(String 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:
RoutingObjective,RoutingObjective
-
optimizeRoutingFor
CalculateRoutesRequest.Builder optimizeRoutingFor(RoutingObjective 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:
RoutingObjective,RoutingObjective
-
origin
CalculateRoutesRequest.Builder origin(Collection<Double> 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
CalculateRoutesRequest.Builder origin(Double... 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
CalculateRoutesRequest.Builder originOptions(RouteOriginOptions 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.Builderavoiding the need to create one manually viaRouteOriginOptions.builder().When the
Consumercompletes,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:
originOptions(RouteOriginOptions)
-
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
CalculateRoutesRequest.Builder spanAdditionalFeaturesWithStrings(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.
-
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
CalculateRoutesRequest.Builder tolls(RouteTollOptions 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
default CalculateRoutesRequest.Builder tolls(Consumer<RouteTollOptions.Builder> tolls)
Toll related options.
This is a convenience method that creates an instance of theRouteTollOptions.Builderavoiding the need to create one manually viaRouteTollOptions.builder().When the
Consumercompletes,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:
tolls(RouteTollOptions)
-
traffic
CalculateRoutesRequest.Builder traffic(RouteTrafficOptions 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
default CalculateRoutesRequest.Builder traffic(Consumer<RouteTrafficOptions.Builder> traffic)
Traffic related options.
This is a convenience method that creates an instance of theRouteTrafficOptions.Builderavoiding the need to create one manually viaRouteTrafficOptions.builder().When the
Consumercompletes,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:
traffic(RouteTrafficOptions)
-
travelMode
CalculateRoutesRequest.Builder travelMode(String 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:
RouteTravelMode,RouteTravelMode
-
travelMode
CalculateRoutesRequest.Builder travelMode(RouteTravelMode 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:
RouteTravelMode,RouteTravelMode
-
travelModeOptions
CalculateRoutesRequest.Builder travelModeOptions(RouteTravelModeOptions 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.Builderavoiding the need to create one manually viaRouteTravelModeOptions.builder().When the
Consumercompletes,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:
travelModeOptions(RouteTravelModeOptions)
-
travelStepType
CalculateRoutesRequest.Builder travelStepType(String 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 naviagtion 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 naviagtion system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RouteTravelStepType,RouteTravelStepType
-
travelStepType
CalculateRoutesRequest.Builder travelStepType(RouteTravelStepType 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 naviagtion 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 naviagtion system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RouteTravelStepType,RouteTravelStepType
-
waypoints
CalculateRoutesRequest.Builder waypoints(Collection<RouteWaypoint> 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
CalculateRoutesRequest.Builder waypoints(RouteWaypoint... 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
CalculateRoutesRequest.Builder waypoints(Consumer<RouteWaypoint.Builder>... waypoints)
List of waypoints between the Origin and Destination.
This is a convenience method that creates an instance of theRouteWaypoint.Builderavoiding the need to create one manually viaRouteWaypoint.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#waypoints(List.) - 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:
#waypoints(java.util.Collection)
-
overrideConfiguration
CalculateRoutesRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CalculateRoutesRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-