Interface OptimizeWaypointsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<OptimizeWaypointsResponse.Builder,
,OptimizeWaypointsResponse> GeoRoutesResponse.Builder
,SdkBuilder<OptimizeWaypointsResponse.Builder,
,OptimizeWaypointsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
OptimizeWaypointsResponse
-
Method Summary
Modifier and TypeMethodDescriptionconnections
(Collection<WaypointOptimizationConnection> connections) Details about the connection from one waypoint to the next, within the optimized sequence.connections
(Consumer<WaypointOptimizationConnection.Builder>... connections) Details about the connection from one waypoint to the next, within the optimized sequence.connections
(WaypointOptimizationConnection... connections) Details about the connection from one waypoint to the next, within the optimized sequence.Overall distance to travel the whole sequence.Overall duration to travel the whole sequence.impedingWaypoints
(Collection<WaypointOptimizationImpedingWaypoint> impedingWaypoints) Returns waypoints that caused the optimization problem to fail, and the constraints that were unsatisfied leading to the failure.impedingWaypoints
(Consumer<WaypointOptimizationImpedingWaypoint.Builder>... impedingWaypoints) Returns waypoints that caused the optimization problem to fail, and the constraints that were unsatisfied leading to the failure.impedingWaypoints
(WaypointOptimizationImpedingWaypoint... impedingWaypoints) Returns waypoints that caused the optimization problem to fail, and the constraints that were unsatisfied leading to the failure.optimizedWaypoints
(Collection<WaypointOptimizationOptimizedWaypoint> optimizedWaypoints) Waypoints in the order of the optimized sequence.optimizedWaypoints
(Consumer<WaypointOptimizationOptimizedWaypoint.Builder>... optimizedWaypoints) Waypoints in the order of the optimized sequence.optimizedWaypoints
(WaypointOptimizationOptimizedWaypoint... optimizedWaypoints) Waypoints in the order of the optimized sequence.pricingBucket
(String pricingBucket) The pricing bucket for which the query is charged at.timeBreakdown
(Consumer<WaypointOptimizationTimeBreakdown.Builder> timeBreakdown) Time breakdown for the sequence.timeBreakdown
(WaypointOptimizationTimeBreakdown timeBreakdown) Time breakdown for the sequence.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.georoutes.model.GeoRoutesResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
connections
OptimizeWaypointsResponse.Builder connections(Collection<WaypointOptimizationConnection> connections) Details about the connection from one waypoint to the next, within the optimized sequence.
- Parameters:
connections
- Details about the connection from one waypoint to the next, within the optimized sequence.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connections
Details about the connection from one waypoint to the next, within the optimized sequence.
- Parameters:
connections
- Details about the connection from one waypoint to the next, within the optimized sequence.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connections
OptimizeWaypointsResponse.Builder connections(Consumer<WaypointOptimizationConnection.Builder>... connections) Details about the connection from one waypoint to the next, within the optimized sequence.
This is a convenience method that creates an instance of theWaypointOptimizationConnection.Builder
avoiding the need to create one manually viaWaypointOptimizationConnection.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconnections(List<WaypointOptimizationConnection>)
.- Parameters:
connections
- a consumer that will call methods onWaypointOptimizationConnection.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
distance
Overall distance to travel the whole sequence.
- Parameters:
distance
- Overall distance to travel the whole sequence.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
duration
Overall duration to travel the whole sequence.
Unit:
seconds
- Parameters:
duration
- Overall duration to travel the whole sequence.Unit:
seconds
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
impedingWaypoints
OptimizeWaypointsResponse.Builder impedingWaypoints(Collection<WaypointOptimizationImpedingWaypoint> impedingWaypoints) Returns waypoints that caused the optimization problem to fail, and the constraints that were unsatisfied leading to the failure.
- Parameters:
impedingWaypoints
- Returns waypoints that caused the optimization problem to fail, and the constraints that were unsatisfied leading to the failure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
impedingWaypoints
OptimizeWaypointsResponse.Builder impedingWaypoints(WaypointOptimizationImpedingWaypoint... impedingWaypoints) Returns waypoints that caused the optimization problem to fail, and the constraints that were unsatisfied leading to the failure.
- Parameters:
impedingWaypoints
- Returns waypoints that caused the optimization problem to fail, and the constraints that were unsatisfied leading to the failure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
impedingWaypoints
OptimizeWaypointsResponse.Builder impedingWaypoints(Consumer<WaypointOptimizationImpedingWaypoint.Builder>... impedingWaypoints) Returns waypoints that caused the optimization problem to fail, and the constraints that were unsatisfied leading to the failure.
This is a convenience method that creates an instance of theWaypointOptimizationImpedingWaypoint.Builder
avoiding the need to create one manually viaWaypointOptimizationImpedingWaypoint.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toimpedingWaypoints(List<WaypointOptimizationImpedingWaypoint>)
.- Parameters:
impedingWaypoints
- a consumer that will call methods onWaypointOptimizationImpedingWaypoint.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
optimizedWaypoints
OptimizeWaypointsResponse.Builder optimizedWaypoints(Collection<WaypointOptimizationOptimizedWaypoint> optimizedWaypoints) Waypoints in the order of the optimized sequence.
- Parameters:
optimizedWaypoints
- Waypoints in the order of the optimized sequence.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
optimizedWaypoints
OptimizeWaypointsResponse.Builder optimizedWaypoints(WaypointOptimizationOptimizedWaypoint... optimizedWaypoints) Waypoints in the order of the optimized sequence.
- Parameters:
optimizedWaypoints
- Waypoints in the order of the optimized sequence.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
optimizedWaypoints
OptimizeWaypointsResponse.Builder optimizedWaypoints(Consumer<WaypointOptimizationOptimizedWaypoint.Builder>... optimizedWaypoints) Waypoints in the order of the optimized sequence.
This is a convenience method that creates an instance of theWaypointOptimizationOptimizedWaypoint.Builder
avoiding the need to create one manually viaWaypointOptimizationOptimizedWaypoint.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooptimizedWaypoints(List<WaypointOptimizationOptimizedWaypoint>)
.- Parameters:
optimizedWaypoints
- a consumer that will call methods onWaypointOptimizationOptimizedWaypoint.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
pricingBucket
The pricing bucket for which the query is charged at.
- Parameters:
pricingBucket
- The pricing bucket for which the query is charged at.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeBreakdown
Time breakdown for the sequence.
- Parameters:
timeBreakdown
- Time breakdown for the sequence.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeBreakdown
default OptimizeWaypointsResponse.Builder timeBreakdown(Consumer<WaypointOptimizationTimeBreakdown.Builder> timeBreakdown) Time breakdown for the sequence.
This is a convenience method that creates an instance of theWaypointOptimizationTimeBreakdown.Builder
avoiding the need to create one manually viaWaypointOptimizationTimeBreakdown.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totimeBreakdown(WaypointOptimizationTimeBreakdown)
.- Parameters:
timeBreakdown
- a consumer that will call methods onWaypointOptimizationTimeBreakdown.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-