Interface OptimizeWaypointsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<OptimizeWaypointsRequest.Builder,
,OptimizeWaypointsRequest> GeoRoutesRequest.Builder
,SdkBuilder<OptimizeWaypointsRequest.Builder,
,OptimizeWaypointsRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
OptimizeWaypointsRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault OptimizeWaypointsRequest.Builder
Features that are avoided.Features that are avoided.default OptimizeWaypointsRequest.Builder
Clustering allows you to specify how nearby waypoints can be clustered to improve the optimized sequence.clustering
(WaypointOptimizationClusteringOptions clustering) Clustering allows you to specify how nearby waypoints can be clustered to improve the optimized sequence.departureTime
(String departureTime) Departure time from the waypoint.destination
(Double... destination) The final position for the route in the World Geodetic System (WGS 84) format:[longitude, latitude]
.destination
(Collection<Double> destination) The final position for the route in the World Geodetic System (WGS 84) format:[longitude, latitude]
.default OptimizeWaypointsRequest.Builder
destinationOptions
(Consumer<WaypointOptimizationDestinationOptions.Builder> destinationOptions) Destination related options.destinationOptions
(WaypointOptimizationDestinationOptions destinationOptions) Destination related options.default OptimizeWaypointsRequest.Builder
Driver related options.Driver related options.default OptimizeWaypointsRequest.Builder
Features to be strictly excluded while calculating the route.Features to be strictly excluded while calculating the route.Optional: The API key to be used for authorization.optimizeSequencingFor
(String optimizeSequencingFor) Specifies the optimization criteria for the calculated sequence.optimizeSequencingFor
(WaypointOptimizationSequencingObjective optimizeSequencingFor) Specifies the optimization criteria for the calculated sequence.The start position for the route.origin
(Collection<Double> origin) The start position for the route.default OptimizeWaypointsRequest.Builder
originOptions
(Consumer<WaypointOptimizationOriginOptions.Builder> originOptions) Origin related options.originOptions
(WaypointOptimizationOriginOptions originOptions) Origin related options.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default OptimizeWaypointsRequest.Builder
Traffic-related options.Traffic-related options.travelMode
(String travelMode) Specifies the mode of transport when calculating a route.travelMode
(WaypointOptimizationTravelMode travelMode) Specifies the mode of transport when calculating a route.default OptimizeWaypointsRequest.Builder
travelModeOptions
(Consumer<WaypointOptimizationTravelModeOptions.Builder> travelModeOptions) Travel mode related options for the provided travel mode.travelModeOptions
(WaypointOptimizationTravelModeOptions travelModeOptions) Travel mode related options for the provided travel mode.waypoints
(Collection<WaypointOptimizationWaypoint> waypoints) List of waypoints between theOrigin
andDestination
.waypoints
(Consumer<WaypointOptimizationWaypoint.Builder>... waypoints) List of waypoints between theOrigin
andDestination
.waypoints
(WaypointOptimizationWaypoint... waypoints) List of waypoints between theOrigin
andDestination
.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
-
avoid
Features that are avoided. Avoidance is on a best-case basis. If an avoidance can't be satisfied for a particular case, this setting is ignored.
- Parameters:
avoid
- Features that are avoided. Avoidance is on a best-case basis. If an avoidance can't be satisfied for a particular case, this setting is ignored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
avoid
default OptimizeWaypointsRequest.Builder avoid(Consumer<WaypointOptimizationAvoidanceOptions.Builder> avoid) Features that are avoided. Avoidance is on a best-case basis. If an avoidance can't be satisfied for a particular case, this setting is ignored.
This is a convenience method that creates an instance of theWaypointOptimizationAvoidanceOptions.Builder
avoiding the need to create one manually viaWaypointOptimizationAvoidanceOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toavoid(WaypointOptimizationAvoidanceOptions)
.- Parameters:
avoid
- a consumer that will call methods onWaypointOptimizationAvoidanceOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clustering
Clustering allows you to specify how nearby waypoints can be clustered to improve the optimized sequence.
- Parameters:
clustering
- Clustering allows you to specify how nearby waypoints can be clustered to improve the optimized sequence.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clustering
default OptimizeWaypointsRequest.Builder clustering(Consumer<WaypointOptimizationClusteringOptions.Builder> clustering) Clustering allows you to specify how nearby waypoints can be clustered to improve the optimized sequence.
This is a convenience method that creates an instance of theWaypointOptimizationClusteringOptions.Builder
avoiding the need to create one manually viaWaypointOptimizationClusteringOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toclustering(WaypointOptimizationClusteringOptions)
.- Parameters:
clustering
- a consumer that will call methods onWaypointOptimizationClusteringOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
departureTime
Departure time from the waypoint.
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
- Departure time from the waypoint.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
OptimizeWaypointsRequest.Builder destinationOptions(WaypointOptimizationDestinationOptions 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 OptimizeWaypointsRequest.Builder destinationOptions(Consumer<WaypointOptimizationDestinationOptions.Builder> destinationOptions) Destination related options.
This is a convenience method that creates an instance of theWaypointOptimizationDestinationOptions.Builder
avoiding the need to create one manually viaWaypointOptimizationDestinationOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todestinationOptions(WaypointOptimizationDestinationOptions)
.- Parameters:
destinationOptions
- a consumer that will call methods onWaypointOptimizationDestinationOptions.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
default OptimizeWaypointsRequest.Builder driver(Consumer<WaypointOptimizationDriverOptions.Builder> driver) Driver related options.
This is a convenience method that creates an instance of theWaypointOptimizationDriverOptions.Builder
avoiding the need to create one manually viaWaypointOptimizationDriverOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todriver(WaypointOptimizationDriverOptions)
.- Parameters:
driver
- a consumer that will call methods onWaypointOptimizationDriverOptions.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
default OptimizeWaypointsRequest.Builder exclude(Consumer<WaypointOptimizationExclusionOptions.Builder> exclude) Features to be strictly excluded while calculating the route.
This is a convenience method that creates an instance of theWaypointOptimizationExclusionOptions.Builder
avoiding the need to create one manually viaWaypointOptimizationExclusionOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toexclude(WaypointOptimizationExclusionOptions)
.- Parameters:
exclude
- a consumer that will call methods onWaypointOptimizationExclusionOptions.Builder
- 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.
-
optimizeSequencingFor
Specifies the optimization criteria for the calculated sequence.
Default Value:
FastestRoute
.- Parameters:
optimizeSequencingFor
- Specifies the optimization criteria for the calculated sequence.Default Value:
FastestRoute
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
optimizeSequencingFor
OptimizeWaypointsRequest.Builder optimizeSequencingFor(WaypointOptimizationSequencingObjective optimizeSequencingFor) Specifies the optimization criteria for the calculated sequence.
Default Value:
FastestRoute
.- Parameters:
optimizeSequencingFor
- Specifies the optimization criteria for the calculated sequence.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 OptimizeWaypointsRequest.Builder originOptions(Consumer<WaypointOptimizationOriginOptions.Builder> originOptions) Origin related options.
This is a convenience method that creates an instance of theWaypointOptimizationOriginOptions.Builder
avoiding the need to create one manually viaWaypointOptimizationOriginOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooriginOptions(WaypointOptimizationOriginOptions)
.- Parameters:
originOptions
- a consumer that will call methods onWaypointOptimizationOriginOptions.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
default OptimizeWaypointsRequest.Builder traffic(Consumer<WaypointOptimizationTrafficOptions.Builder> traffic) Traffic-related options.
This is a convenience method that creates an instance of theWaypointOptimizationTrafficOptions.Builder
avoiding the need to create one manually viaWaypointOptimizationTrafficOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totraffic(WaypointOptimizationTrafficOptions)
.- Parameters:
traffic
- a consumer that will call methods onWaypointOptimizationTrafficOptions.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
OptimizeWaypointsRequest.Builder travelModeOptions(WaypointOptimizationTravelModeOptions 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 OptimizeWaypointsRequest.Builder travelModeOptions(Consumer<WaypointOptimizationTravelModeOptions.Builder> travelModeOptions) Travel mode related options for the provided travel mode.
This is a convenience method that creates an instance of theWaypointOptimizationTravelModeOptions.Builder
avoiding the need to create one manually viaWaypointOptimizationTravelModeOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totravelModeOptions(WaypointOptimizationTravelModeOptions)
.- Parameters:
travelModeOptions
- a consumer that will call methods onWaypointOptimizationTravelModeOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
waypoints
List of waypoints between the
Origin
andDestination
.- Parameters:
waypoints
- List of waypoints between theOrigin
andDestination
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
waypoints
List of waypoints between the
Origin
andDestination
.- Parameters:
waypoints
- List of waypoints between theOrigin
andDestination
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
waypoints
OptimizeWaypointsRequest.Builder waypoints(Consumer<WaypointOptimizationWaypoint.Builder>... waypoints) List of waypoints between the
This is a convenience method that creates an instance of theOrigin
andDestination
.WaypointOptimizationWaypoint.Builder
avoiding the need to create one manually viaWaypointOptimizationWaypoint.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed towaypoints(List<WaypointOptimizationWaypoint>)
.- Parameters:
waypoints
- a consumer that will call methods onWaypointOptimizationWaypoint.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
OptimizeWaypointsRequest.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
OptimizeWaypointsRequest.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.
-