Interface WaypointOptimizationDriverOptions.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<WaypointOptimizationDriverOptions.Builder,WaypointOptimizationDriverOptions>,SdkBuilder<WaypointOptimizationDriverOptions.Builder,WaypointOptimizationDriverOptions>,SdkPojo
- Enclosing class:
- WaypointOptimizationDriverOptions
public static interface WaypointOptimizationDriverOptions.Builder extends SdkPojo, CopyableBuilder<WaypointOptimizationDriverOptions.Builder,WaypointOptimizationDriverOptions>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default WaypointOptimizationDriverOptions.BuilderrestCycles(Consumer<WaypointOptimizationRestCycles.Builder> restCycles)Driver work-rest schedules defined by a short and long cycle.WaypointOptimizationDriverOptions.BuilderrestCycles(WaypointOptimizationRestCycles restCycles)Driver work-rest schedules defined by a short and long cycle.default WaypointOptimizationDriverOptions.BuilderrestProfile(Consumer<WaypointOptimizationRestProfile.Builder> restProfile)Pre defined rest profiles for a driver schedule.WaypointOptimizationDriverOptions.BuilderrestProfile(WaypointOptimizationRestProfile restProfile)Pre defined rest profiles for a driver schedule.WaypointOptimizationDriverOptions.BuildertreatServiceTimeAs(String treatServiceTimeAs)If the service time provided at a waypoint/destination should be considered as rest or work.WaypointOptimizationDriverOptions.BuildertreatServiceTimeAs(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 Detail
-
restCycles
WaypointOptimizationDriverOptions.Builder restCycles(WaypointOptimizationRestCycles 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.Builderavoiding the need to create one manually viaWaypointOptimizationRestCycles.builder().When the
Consumercompletes,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:
restCycles(WaypointOptimizationRestCycles)
-
restProfile
WaypointOptimizationDriverOptions.Builder restProfile(WaypointOptimizationRestProfile 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.Builderavoiding the need to create one manually viaWaypointOptimizationRestProfile.builder().When the
Consumercompletes,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:
restProfile(WaypointOptimizationRestProfile)
-
treatServiceTimeAs
WaypointOptimizationDriverOptions.Builder treatServiceTimeAs(String 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:
WaypointOptimizationServiceTimeTreatment,WaypointOptimizationServiceTimeTreatment
-
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:
WaypointOptimizationServiceTimeTreatment,WaypointOptimizationServiceTimeTreatment
-
-