Interface WaypointOptimizationRestCycles.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<WaypointOptimizationRestCycles.Builder,
,WaypointOptimizationRestCycles> SdkBuilder<WaypointOptimizationRestCycles.Builder,
,WaypointOptimizationRestCycles> SdkPojo
- Enclosing class:
WaypointOptimizationRestCycles
@Mutable
@NotThreadSafe
public static interface WaypointOptimizationRestCycles.Builder
extends SdkPojo, CopyableBuilder<WaypointOptimizationRestCycles.Builder,WaypointOptimizationRestCycles>
-
Method Summary
Modifier and TypeMethodDescriptionLong cycle for a driver work-rest schedule.longCycle
(WaypointOptimizationRestCycleDurations longCycle) Long cycle for a driver work-rest schedule.Short cycle for a driver work-rest scheduleshortCycle
(WaypointOptimizationRestCycleDurations shortCycle) Short cycle for a driver work-rest scheduleMethods 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
-
longCycle
Long cycle for a driver work-rest schedule.
- Parameters:
longCycle
- Long cycle for a driver work-rest schedule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
longCycle
default WaypointOptimizationRestCycles.Builder longCycle(Consumer<WaypointOptimizationRestCycleDurations.Builder> longCycle) Long cycle for a driver work-rest schedule.
This is a convenience method that creates an instance of theWaypointOptimizationRestCycleDurations.Builder
avoiding the need to create one manually viaWaypointOptimizationRestCycleDurations.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolongCycle(WaypointOptimizationRestCycleDurations)
.- Parameters:
longCycle
- a consumer that will call methods onWaypointOptimizationRestCycleDurations.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
shortCycle
WaypointOptimizationRestCycles.Builder shortCycle(WaypointOptimizationRestCycleDurations shortCycle) Short cycle for a driver work-rest schedule
- Parameters:
shortCycle
- Short cycle for a driver work-rest schedule- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shortCycle
default WaypointOptimizationRestCycles.Builder shortCycle(Consumer<WaypointOptimizationRestCycleDurations.Builder> shortCycle) Short cycle for a driver work-rest schedule
This is a convenience method that creates an instance of theWaypointOptimizationRestCycleDurations.Builder
avoiding the need to create one manually viaWaypointOptimizationRestCycleDurations.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toshortCycle(WaypointOptimizationRestCycleDurations)
.- Parameters:
shortCycle
- a consumer that will call methods onWaypointOptimizationRestCycleDurations.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-