Interface RouteDriverOptions.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RouteDriverOptions.Builder,,RouteDriverOptions> SdkBuilder<RouteDriverOptions.Builder,,RouteDriverOptions> SdkPojo
- Enclosing class:
RouteDriverOptions
@Mutable
@NotThreadSafe
public static interface RouteDriverOptions.Builder
extends SdkPojo, CopyableBuilder<RouteDriverOptions.Builder,RouteDriverOptions>
-
Method Summary
Modifier and TypeMethodDescriptionschedule(Collection<RouteDriverScheduleInterval> schedule) Driver work-rest schedule.schedule(Consumer<RouteDriverScheduleInterval.Builder>... schedule) Driver work-rest schedule.schedule(RouteDriverScheduleInterval... schedule) Driver work-rest schedule.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
schedule
Driver work-rest schedule. Stops are added to fulfil the provided rest schedule.
- Parameters:
schedule- Driver work-rest schedule. Stops are added to fulfil the provided rest schedule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schedule
Driver work-rest schedule. Stops are added to fulfil the provided rest schedule.
- Parameters:
schedule- Driver work-rest schedule. Stops are added to fulfil the provided rest schedule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schedule
Driver work-rest schedule. Stops are added to fulfil the provided rest schedule.
This is a convenience method that creates an instance of theRouteDriverScheduleInterval.Builderavoiding the need to create one manually viaRouteDriverScheduleInterval.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toschedule(List<RouteDriverScheduleInterval>).- Parameters:
schedule- a consumer that will call methods onRouteDriverScheduleInterval.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-