Interface WaypointOptimizationDriverOptions.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<WaypointOptimizationDriverOptions.Builder,
,WaypointOptimizationDriverOptions> SdkBuilder<WaypointOptimizationDriverOptions.Builder,
,WaypointOptimizationDriverOptions> SdkPojo
- Enclosing class:
WaypointOptimizationDriverOptions
-
Method Summary
Modifier and TypeMethodDescriptionrestCycles
(Consumer<WaypointOptimizationRestCycles.Builder> restCycles) Driver work-rest schedules defined by a short and long cycle.restCycles
(WaypointOptimizationRestCycles restCycles) Driver work-rest schedules defined by a short and long cycle.restProfile
(Consumer<WaypointOptimizationRestProfile.Builder> restProfile) Pre defined rest profiles for a driver schedule.restProfile
(WaypointOptimizationRestProfile restProfile) Pre defined rest profiles for a driver schedule.treatServiceTimeAs
(String treatServiceTimeAs) If the service time provided at a waypoint/destination should be considered as rest or work.treatServiceTimeAs
(WaypointOptimizationServiceTimeTreatment treatServiceTimeAs) If the service time provided at a waypoint/destination should be considered as rest or work.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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
-
restCycles
Driver work-rest schedules defined by a short and long cycle. A rest needs to be taken after the short work duration. The short cycle can be repeated until you hit the long work duration, at which point the long rest duration should be taken before restarting.
- Parameters:
restCycles
- Driver work-rest schedules defined by a short and long cycle. A rest needs to be taken after the short work duration. The short cycle can be repeated until you hit the long work duration, at which point the long rest duration should be taken before restarting.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
restCycles
default WaypointOptimizationDriverOptions.Builder restCycles(Consumer<WaypointOptimizationRestCycles.Builder> restCycles) Driver work-rest schedules defined by a short and long cycle. A rest needs to be taken after the short work duration. The short cycle can be repeated until you hit the long work duration, at which point the long rest duration should be taken before restarting.
This is a convenience method that creates an instance of theWaypointOptimizationRestCycles.Builder
avoiding the need to create one manually viaWaypointOptimizationRestCycles.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torestCycles(WaypointOptimizationRestCycles)
.- Parameters:
restCycles
- a consumer that will call methods onWaypointOptimizationRestCycles.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
restProfile
Pre defined rest profiles for a driver schedule. The only currently supported profile is EU.
- Parameters:
restProfile
- Pre defined rest profiles for a driver schedule. The only currently supported profile is EU.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
restProfile
default WaypointOptimizationDriverOptions.Builder restProfile(Consumer<WaypointOptimizationRestProfile.Builder> restProfile) Pre defined rest profiles for a driver schedule. The only currently supported profile is EU.
This is a convenience method that creates an instance of theWaypointOptimizationRestProfile.Builder
avoiding the need to create one manually viaWaypointOptimizationRestProfile.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torestProfile(WaypointOptimizationRestProfile)
.- Parameters:
restProfile
- a consumer that will call methods onWaypointOptimizationRestProfile.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
treatServiceTimeAs
If the service time provided at a waypoint/destination should be considered as rest or work. This contributes to the total time breakdown returned within the response.
- Parameters:
treatServiceTimeAs
- If the service time provided at a waypoint/destination should be considered as rest or work. This contributes to the total time breakdown returned within the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
treatServiceTimeAs
WaypointOptimizationDriverOptions.Builder treatServiceTimeAs(WaypointOptimizationServiceTimeTreatment treatServiceTimeAs) If the service time provided at a waypoint/destination should be considered as rest or work. This contributes to the total time breakdown returned within the response.
- Parameters:
treatServiceTimeAs
- If the service time provided at a waypoint/destination should be considered as rest or work. This contributes to the total time breakdown returned within the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-