Interface OptimizeWaypointsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<OptimizeWaypointsResponse.Builder,OptimizeWaypointsResponse>,GeoRoutesResponse.Builder,SdkBuilder<OptimizeWaypointsResponse.Builder,OptimizeWaypointsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- OptimizeWaypointsResponse
public static interface OptimizeWaypointsResponse.Builder extends GeoRoutesResponse.Builder, SdkPojo, CopyableBuilder<OptimizeWaypointsResponse.Builder,OptimizeWaypointsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description OptimizeWaypointsResponse.Builderconnections(Collection<WaypointOptimizationConnection> connections)Details about the connection from one waypoint to the next, within the optimized sequence.OptimizeWaypointsResponse.Builderconnections(Consumer<WaypointOptimizationConnection.Builder>... connections)Details about the connection from one waypoint to the next, within the optimized sequence.OptimizeWaypointsResponse.Builderconnections(WaypointOptimizationConnection... connections)Details about the connection from one waypoint to the next, within the optimized sequence.OptimizeWaypointsResponse.Builderdistance(Long distance)Overall distance to travel the whole sequence.OptimizeWaypointsResponse.Builderduration(Long duration)Overall duration to travel the whole sequence.OptimizeWaypointsResponse.BuilderimpedingWaypoints(Collection<WaypointOptimizationImpedingWaypoint> impedingWaypoints)Returns waypoints that caused the optimization problem to fail, and the constraints that were unsatisfied leading to the failure.OptimizeWaypointsResponse.BuilderimpedingWaypoints(Consumer<WaypointOptimizationImpedingWaypoint.Builder>... impedingWaypoints)Returns waypoints that caused the optimization problem to fail, and the constraints that were unsatisfied leading to the failure.OptimizeWaypointsResponse.BuilderimpedingWaypoints(WaypointOptimizationImpedingWaypoint... impedingWaypoints)Returns waypoints that caused the optimization problem to fail, and the constraints that were unsatisfied leading to the failure.OptimizeWaypointsResponse.BuilderoptimizedWaypoints(Collection<WaypointOptimizationOptimizedWaypoint> optimizedWaypoints)Waypoints in the order of the optimized sequence.OptimizeWaypointsResponse.BuilderoptimizedWaypoints(Consumer<WaypointOptimizationOptimizedWaypoint.Builder>... optimizedWaypoints)Waypoints in the order of the optimized sequence.OptimizeWaypointsResponse.BuilderoptimizedWaypoints(WaypointOptimizationOptimizedWaypoint... optimizedWaypoints)Waypoints in the order of the optimized sequence.OptimizeWaypointsResponse.BuilderpricingBucket(String pricingBucket)The pricing bucket for which the query is charged at.default OptimizeWaypointsResponse.BuildertimeBreakdown(Consumer<WaypointOptimizationTimeBreakdown.Builder> timeBreakdown)Time breakdown for the sequence.OptimizeWaypointsResponse.BuildertimeBreakdown(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 Detail
-
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
OptimizeWaypointsResponse.Builder connections(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
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.Builderavoiding the need to create one manually viaWaypointOptimizationConnection.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#connections(List.) - 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:
#connections(java.util.Collection)
-
distance
OptimizeWaypointsResponse.Builder distance(Long 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
OptimizeWaypointsResponse.Builder duration(Long 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.Builderavoiding the need to create one manually viaWaypointOptimizationImpedingWaypoint.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#impedingWaypoints(List.) - 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:
#impedingWaypoints(java.util.Collection)
-
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.Builderavoiding the need to create one manually viaWaypointOptimizationOptimizedWaypoint.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#optimizedWaypoints(List.) - 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:
#optimizedWaypoints(java.util.Collection)
-
pricingBucket
OptimizeWaypointsResponse.Builder pricingBucket(String 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
OptimizeWaypointsResponse.Builder timeBreakdown(WaypointOptimizationTimeBreakdown 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.Builderavoiding the need to create one manually viaWaypointOptimizationTimeBreakdown.builder().When the
Consumercompletes,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:
timeBreakdown(WaypointOptimizationTimeBreakdown)
-
-