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.BuilderFeatures that are avoided while calculating a route.Features that are avoided while calculating a route.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.BuilderdestinationOptions(Consumer<WaypointOptimizationDestinationOptions.Builder> destinationOptions) Destination related options.destinationOptions(WaypointOptimizationDestinationOptions destinationOptions) Destination related options.default OptimizeWaypointsRequest.BuilderDriver related options.Driver related options.default OptimizeWaypointsRequest.BuilderFeatures 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.BuilderoriginOptions(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.BuilderTraffic-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.BuildertravelModeOptions(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 theOriginandDestination.waypoints(Consumer<WaypointOptimizationWaypoint.Builder>... waypoints) List of waypoints between theOriginandDestination.waypoints(WaypointOptimizationWaypoint... waypoints) List of waypoints between theOriginandDestination.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.georoutes.model.GeoRoutesRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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:
-
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
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.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:
-
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:
-
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:
-
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.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:
-
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:
-
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.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:
-
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
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 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-