Interface RouteTransitOptions.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RouteTransitOptions.Builder,,RouteTransitOptions> SdkBuilder<RouteTransitOptions.Builder,,RouteTransitOptions> SdkPojo
- Enclosing class:
RouteTransitOptions
-
Method Summary
Modifier and TypeMethodDescriptionaccessibilityAttributes(Collection<RouteAccessibilityAttribute> accessibilityAttributes) Accessibility attributes to consider when calculating the route.accessibilityAttributes(RouteAccessibilityAttribute... accessibilityAttributes) Accessibility attributes to consider when calculating the route.accessibilityAttributesWithStrings(String... accessibilityAttributes) Accessibility attributes to consider when calculating the route.accessibilityAttributesWithStrings(Collection<String> accessibilityAttributes) Accessibility attributes to consider when calculating the route.allowedModes(Collection<RouteTransitMode> allowedModes) Allowed transit transport modes when calculating the route.allowedModes(RouteTransitMode... allowedModes) Allowed transit transport modes when calculating the route.allowedModesWithStrings(String... allowedModes) Allowed transit transport modes when calculating the route.allowedModesWithStrings(Collection<String> allowedModes) Allowed transit transport modes when calculating the route.excludedModes(Collection<RouteTransitMode> excludedModes) Excluded transit transport modes when calculating the route.excludedModes(RouteTransitMode... excludedModes) Excluded transit transport modes when calculating the route.excludedModesWithStrings(String... excludedModes) Excluded transit transport modes when calculating the route.excludedModesWithStrings(Collection<String> excludedModes) Excluded transit transport modes when calculating the route.maxTransfers(Integer maxTransfers) Maximum number of transfers allowed when calculating the route.default RouteTransitOptions.Builderpedestrian(Consumer<RouteTransitPedestrianOptions.Builder> pedestrian) Options for the pedestrian leg of the transit route.pedestrian(RouteTransitPedestrianOptions pedestrian) Options for the pedestrian leg of the transit route.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
-
accessibilityAttributesWithStrings
RouteTransitOptions.Builder accessibilityAttributesWithStrings(Collection<String> accessibilityAttributes) Accessibility attributes to consider when calculating the route.
- Parameters:
accessibilityAttributes- Accessibility attributes to consider when calculating the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessibilityAttributesWithStrings
Accessibility attributes to consider when calculating the route.
- Parameters:
accessibilityAttributes- Accessibility attributes to consider when calculating the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessibilityAttributes
RouteTransitOptions.Builder accessibilityAttributes(Collection<RouteAccessibilityAttribute> accessibilityAttributes) Accessibility attributes to consider when calculating the route.
- Parameters:
accessibilityAttributes- Accessibility attributes to consider when calculating the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessibilityAttributes
RouteTransitOptions.Builder accessibilityAttributes(RouteAccessibilityAttribute... accessibilityAttributes) Accessibility attributes to consider when calculating the route.
- Parameters:
accessibilityAttributes- Accessibility attributes to consider when calculating the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowedModesWithStrings
Allowed transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with
ExcludedModes.- Parameters:
allowedModes- Allowed transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together withExcludedModes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowedModesWithStrings
Allowed transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with
ExcludedModes.- Parameters:
allowedModes- Allowed transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together withExcludedModes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowedModes
Allowed transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with
ExcludedModes.- Parameters:
allowedModes- Allowed transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together withExcludedModes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowedModes
Allowed transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with
ExcludedModes.- Parameters:
allowedModes- Allowed transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together withExcludedModes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludedModesWithStrings
Excluded transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with
AllowedModes.- Parameters:
excludedModes- Excluded transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together withAllowedModes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludedModesWithStrings
Excluded transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with
AllowedModes.- Parameters:
excludedModes- Excluded transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together withAllowedModes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludedModes
Excluded transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with
AllowedModes.- Parameters:
excludedModes- Excluded transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together withAllowedModes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludedModes
Excluded transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with
AllowedModes.- Parameters:
excludedModes- Excluded transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together withAllowedModes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxTransfers
Maximum number of transfers allowed when calculating the route.
- Parameters:
maxTransfers- Maximum number of transfers allowed when calculating the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pedestrian
Options for the pedestrian leg of the transit route.
- Parameters:
pedestrian- Options for the pedestrian leg of the transit route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pedestrian
default RouteTransitOptions.Builder pedestrian(Consumer<RouteTransitPedestrianOptions.Builder> pedestrian) Options for the pedestrian leg of the transit route.
This is a convenience method that creates an instance of theRouteTransitPedestrianOptions.Builderavoiding the need to create one manually viaRouteTransitPedestrianOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topedestrian(RouteTransitPedestrianOptions).- Parameters:
pedestrian- a consumer that will call methods onRouteTransitPedestrianOptions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-