Interface OptimizeWaypointsRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<OptimizeWaypointsRequest.Builder,OptimizeWaypointsRequest>,GeoRoutesRequest.Builder,SdkBuilder<OptimizeWaypointsRequest.Builder,OptimizeWaypointsRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- OptimizeWaypointsRequest
public static interface OptimizeWaypointsRequest.Builder extends GeoRoutesRequest.Builder, SdkPojo, CopyableBuilder<OptimizeWaypointsRequest.Builder,OptimizeWaypointsRequest>
-
-
Method Summary
-
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
-
avoid
OptimizeWaypointsRequest.Builder avoid(WaypointOptimizationAvoidanceOptions 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, this setting is ignored.
- 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, 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 while calculating a route. 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.Builderavoiding the need to create one manually viaWaypointOptimizationAvoidanceOptions.builder().When the
Consumercompletes,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:
avoid(WaypointOptimizationAvoidanceOptions)
-
departureTime
OptimizeWaypointsRequest.Builder departureTime(String departureTime)
Departure time from the waypoint.
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- Departure time from the waypoint.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
OptimizeWaypointsRequest.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
OptimizeWaypointsRequest.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
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.Builderavoiding the need to create one manually viaWaypointOptimizationDestinationOptions.builder().When the
Consumercompletes,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:
destinationOptions(WaypointOptimizationDestinationOptions)
-
driver
OptimizeWaypointsRequest.Builder driver(WaypointOptimizationDriverOptions 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.Builderavoiding the need to create one manually viaWaypointOptimizationDriverOptions.builder().When the
Consumercompletes,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:
driver(WaypointOptimizationDriverOptions)
-
exclude
OptimizeWaypointsRequest.Builder exclude(WaypointOptimizationExclusionOptions 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.Builderavoiding the need to create one manually viaWaypointOptimizationExclusionOptions.builder().When the
Consumercompletes,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:
exclude(WaypointOptimizationExclusionOptions)
-
key
OptimizeWaypointsRequest.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.
-
optimizeSequencingFor
OptimizeWaypointsRequest.Builder optimizeSequencingFor(String 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:
WaypointOptimizationSequencingObjective,WaypointOptimizationSequencingObjective
-
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:
WaypointOptimizationSequencingObjective,WaypointOptimizationSequencingObjective
-
origin
OptimizeWaypointsRequest.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
OptimizeWaypointsRequest.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
OptimizeWaypointsRequest.Builder originOptions(WaypointOptimizationOriginOptions 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.Builderavoiding the need to create one manually viaWaypointOptimizationOriginOptions.builder().When the
Consumercompletes,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:
originOptions(WaypointOptimizationOriginOptions)
-
traffic
OptimizeWaypointsRequest.Builder traffic(WaypointOptimizationTrafficOptions 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.Builderavoiding the need to create one manually viaWaypointOptimizationTrafficOptions.builder().When the
Consumercompletes,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:
traffic(WaypointOptimizationTrafficOptions)
-
travelMode
OptimizeWaypointsRequest.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:
WaypointOptimizationTravelMode,WaypointOptimizationTravelMode
-
travelMode
OptimizeWaypointsRequest.Builder travelMode(WaypointOptimizationTravelMode 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:
WaypointOptimizationTravelMode,WaypointOptimizationTravelMode
-
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.Builderavoiding the need to create one manually viaWaypointOptimizationTravelModeOptions.builder().When the
Consumercompletes,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:
travelModeOptions(WaypointOptimizationTravelModeOptions)
-
waypoints
OptimizeWaypointsRequest.Builder waypoints(Collection<WaypointOptimizationWaypoint> waypoints)
List of waypoints between the
OriginandDestination.- Parameters:
waypoints- List of waypoints between theOriginandDestination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
waypoints
OptimizeWaypointsRequest.Builder waypoints(WaypointOptimizationWaypoint... waypoints)
List of waypoints between the
OriginandDestination.- Parameters:
waypoints- List of waypoints between theOriginandDestination.- 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 theOriginandDestination.WaypointOptimizationWaypoint.Builderavoiding the need to create one manually viaWaypointOptimizationWaypoint.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 onWaypointOptimizationWaypoint.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#waypoints(java.util.Collection)
-
overrideConfiguration
OptimizeWaypointsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
OptimizeWaypointsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-