Interface RouteTravelModeOptions.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RouteTravelModeOptions.Builder,,RouteTravelModeOptions> SdkBuilder<RouteTravelModeOptions.Builder,,RouteTravelModeOptions> SdkPojo
- Enclosing class:
RouteTravelModeOptions
-
Method Summary
Modifier and TypeMethodDescriptiondefault RouteTravelModeOptions.BuilderTravel mode options when the provided travel mode is "Car"car(RouteCarOptions car) Travel mode options when the provided travel mode is "Car"default RouteTravelModeOptions.Builderpedestrian(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.Builderscooter(Consumer<RouteScooterOptions.Builder> scooter) Travel mode options when the provided travel mode is "Scooter"scooter(RouteScooterOptions scooter) Travel mode options when the provided travel mode is "Scooter"default RouteTravelModeOptions.Buildertruck(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
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
-
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.Builderavoiding the need to create one manually viaRouteCarOptions.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaRoutePedestrianOptions.builder().When the
Consumercompletes,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"
- Parameters:
scooter- Travel mode options when the provided travel mode is "Scooter"- 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"
This is a convenience method that creates an instance of theRouteScooterOptions.Builderavoiding the need to create one manually viaRouteScooterOptions.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaRouteTruckOptions.builder().When the
Consumercompletes,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:
-