Interface RouteTravelModeOptions.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RouteTravelModeOptions.Builder,
,RouteTravelModeOptions> SdkBuilder<RouteTravelModeOptions.Builder,
,RouteTravelModeOptions> SdkPojo
- Enclosing class:
RouteTravelModeOptions
-
Method Summary
Modifier and TypeMethodDescriptiondefault RouteTravelModeOptions.Builder
Travel mode options when the provided travel mode is "Car"car
(RouteCarOptions car) Travel mode options when the provided travel mode is "Car"default RouteTravelModeOptions.Builder
pedestrian
(Consumer<RoutePedestrianOptions.Builder> pedestrian) Travel mode options when the provided travel mode is "Pedestrian"pedestrian
(RoutePedestrianOptions pedestrian) Travel mode options when the provided travel mode is "Pedestrian"default RouteTravelModeOptions.Builder
scooter
(Consumer<RouteScooterOptions.Builder> scooter) Travel mode options when the provided travel mode isScooter
scooter
(RouteScooterOptions scooter) Travel mode options when the provided travel mode isScooter
default RouteTravelModeOptions.Builder
truck
(Consumer<RouteTruckOptions.Builder> truck) Travel mode options when the provided travel mode is "Truck"truck
(RouteTruckOptions truck) Travel mode options when the provided travel mode is "Truck"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
-
car
Travel mode options when the provided travel mode is "Car"
- Parameters:
car
- Travel mode options when the provided travel mode is "Car"- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
car
Travel mode options when the provided travel mode is "Car"
This is a convenience method that creates an instance of theRouteCarOptions.Builder
avoiding the need to create one manually viaRouteCarOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocar(RouteCarOptions)
.- Parameters:
car
- a consumer that will call methods onRouteCarOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
pedestrian
Travel mode options when the provided travel mode is "Pedestrian"
- Parameters:
pedestrian
- Travel mode options when the provided travel mode is "Pedestrian"- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pedestrian
default RouteTravelModeOptions.Builder pedestrian(Consumer<RoutePedestrianOptions.Builder> pedestrian) Travel mode options when the provided travel mode is "Pedestrian"
This is a convenience method that creates an instance of theRoutePedestrianOptions.Builder
avoiding the need to create one manually viaRoutePedestrianOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topedestrian(RoutePedestrianOptions)
.- Parameters:
pedestrian
- a consumer that will call methods onRoutePedestrianOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scooter
Travel mode options when the provided travel mode is
Scooter
When travel mode is set to
Scooter
, then the avoidance optionControlledAccessHighways
defaults totrue
.- Parameters:
scooter
- Travel mode options when the provided travel mode isScooter
When travel mode is set to
Scooter
, then the avoidance optionControlledAccessHighways
defaults totrue
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scooter
Travel mode options when the provided travel mode is
Scooter
When travel mode is set to
Scooter
, then the avoidance optionControlledAccessHighways
defaults totrue
.RouteScooterOptions.Builder
avoiding the need to create one manually viaRouteScooterOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toscooter(RouteScooterOptions)
.- Parameters:
scooter
- a consumer that will call methods onRouteScooterOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
truck
Travel mode options when the provided travel mode is "Truck"
- Parameters:
truck
- Travel mode options when the provided travel mode is "Truck"- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
truck
Travel mode options when the provided travel mode is "Truck"
This is a convenience method that creates an instance of theRouteTruckOptions.Builder
avoiding the need to create one manually viaRouteTruckOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totruck(RouteTruckOptions)
.- Parameters:
truck
- a consumer that will call methods onRouteTruckOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-