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 isCar.car(RouteCarOptions car) Travel mode options when the provided travel mode isCar.default RouteTravelModeOptions.Builderintermodal(Consumer<RouteIntermodalOptions.Builder> intermodal) Travel mode options when the provided travel mode isIntermodal.intermodal(RouteIntermodalOptions intermodal) Travel mode options when the provided travel mode isIntermodal.default RouteTravelModeOptions.Builderpedestrian(Consumer<RoutePedestrianOptions.Builder> pedestrian) Travel mode options when the provided travel mode isPedestrian.pedestrian(RoutePedestrianOptions pedestrian) Travel mode options when the provided travel mode isPedestrian.default RouteTravelModeOptions.Builderscooter(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.Buildertransit(Consumer<RouteTransitOptions.Builder> transit) Travel mode options when the provided travel mode isTransit.transit(RouteTransitOptions transit) Travel mode options when the provided travel mode isTransit.default RouteTravelModeOptions.Buildertruck(Consumer<RouteTruckOptions.Builder> truck) Travel mode options when the provided travel mode isTruck.truck(RouteTruckOptions truck) Travel mode options when the provided travel mode isTruck.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 isCar.- 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
This is a convenience method that creates an instance of theCar.RouteCarOptions.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 isPedestrian.- 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
This is a convenience method that creates an instance of thePedestrian.RoutePedestrianOptions.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.When travel mode is set to
Scooter, then the avoidance optionControlledAccessHighwaysdefaults totrue.- Parameters:
scooter- Travel mode options when the provided travel mode isScooter.When travel mode is set to
Scooter, then the avoidance optionControlledAccessHighwaysdefaults 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. This is a convenience method that creates an instance of theWhen travel mode is set to
Scooter, then the avoidance optionControlledAccessHighwaysdefaults totrue.RouteScooterOptions.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 isTruck.- 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
This is a convenience method that creates an instance of theTruck.RouteTruckOptions.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:
-
intermodal
Travel mode options when the provided travel mode is
Intermodal.Not supported in
ap-southeast-1andap-southeast-5regions for GrabMaps customers.- Parameters:
intermodal- Travel mode options when the provided travel mode isIntermodal.Not supported in
ap-southeast-1andap-southeast-5regions for GrabMaps customers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
intermodal
default RouteTravelModeOptions.Builder intermodal(Consumer<RouteIntermodalOptions.Builder> intermodal) Travel mode options when the provided travel mode is
Intermodal. This is a convenience method that creates an instance of theNot supported in
ap-southeast-1andap-southeast-5regions for GrabMaps customers.RouteIntermodalOptions.Builderavoiding the need to create one manually viaRouteIntermodalOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tointermodal(RouteIntermodalOptions).- Parameters:
intermodal- a consumer that will call methods onRouteIntermodalOptions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
transit
Travel mode options when the provided travel mode is
Transit.Not supported in
ap-southeast-1andap-southeast-5regions for GrabMaps customers.- Parameters:
transit- Travel mode options when the provided travel mode isTransit.Not supported in
ap-southeast-1andap-southeast-5regions for GrabMaps customers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
transit
Travel mode options when the provided travel mode is
Transit. This is a convenience method that creates an instance of theNot supported in
ap-southeast-1andap-southeast-5regions for GrabMaps customers.RouteTransitOptions.Builderavoiding the need to create one manually viaRouteTransitOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totransit(RouteTransitOptions).- Parameters:
transit- a consumer that will call methods onRouteTransitOptions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-