Interface RouteAvoidanceOptions.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RouteAvoidanceOptions.Builder,RouteAvoidanceOptions>,SdkBuilder<RouteAvoidanceOptions.Builder,RouteAvoidanceOptions>,SdkPojo
- Enclosing class:
- RouteAvoidanceOptions
public static interface RouteAvoidanceOptions.Builder extends SdkPojo, CopyableBuilder<RouteAvoidanceOptions.Builder,RouteAvoidanceOptions>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RouteAvoidanceOptions.Builderareas(Collection<RouteAvoidanceArea> areas)Areas to be avoided.RouteAvoidanceOptions.Builderareas(Consumer<RouteAvoidanceArea.Builder>... areas)Areas to be avoided.RouteAvoidanceOptions.Builderareas(RouteAvoidanceArea... areas)Areas to be avoided.RouteAvoidanceOptions.BuildercarShuttleTrains(Boolean carShuttleTrains)Avoid car-shuttle-trains while calculating the route.RouteAvoidanceOptions.BuildercontrolledAccessHighways(Boolean controlledAccessHighways)Avoid controlled access highways while calculating the route.RouteAvoidanceOptions.BuilderdirtRoads(Boolean dirtRoads)Avoid dirt roads while calculating the route.RouteAvoidanceOptions.Builderferries(Boolean ferries)Avoid ferries while calculating the route.RouteAvoidanceOptions.BuilderseasonalClosure(Boolean seasonalClosure)Avoid roads that have seasonal closure while calculating the route.RouteAvoidanceOptions.BuildertollRoads(Boolean tollRoads)Avoids roads where the specified toll transponders are the only mode of payment.RouteAvoidanceOptions.BuildertollTransponders(Boolean tollTransponders)Avoids roads where the specified toll transponders are the only mode of payment.RouteAvoidanceOptions.BuildertruckRoadTypes(String... truckRoadTypes)Truck road type identifiers.RouteAvoidanceOptions.BuildertruckRoadTypes(Collection<String> truckRoadTypes)Truck road type identifiers.RouteAvoidanceOptions.Buildertunnels(Boolean tunnels)Avoid tunnels while calculating the route.RouteAvoidanceOptions.BuilderuTurns(Boolean uTurns)Avoid U-turns for calculation on highways and motorways.RouteAvoidanceOptions.BuilderzoneCategories(Collection<RouteAvoidanceZoneCategory> zoneCategories)Zone categories to be avoided.RouteAvoidanceOptions.BuilderzoneCategories(Consumer<RouteAvoidanceZoneCategory.Builder>... zoneCategories)Zone categories to be avoided.RouteAvoidanceOptions.BuilderzoneCategories(RouteAvoidanceZoneCategory... zoneCategories)Zone categories to be avoided.-
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 Detail
-
areas
RouteAvoidanceOptions.Builder areas(Collection<RouteAvoidanceArea> areas)
Areas to be avoided.
- Parameters:
areas- Areas to be avoided.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
areas
RouteAvoidanceOptions.Builder areas(RouteAvoidanceArea... areas)
Areas to be avoided.
- Parameters:
areas- Areas to be avoided.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
areas
RouteAvoidanceOptions.Builder areas(Consumer<RouteAvoidanceArea.Builder>... areas)
Areas to be avoided.
This is a convenience method that creates an instance of theRouteAvoidanceArea.Builderavoiding the need to create one manually viaRouteAvoidanceArea.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#areas(List.) - Parameters:
areas- a consumer that will call methods onRouteAvoidanceArea.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#areas(java.util.Collection)
-
carShuttleTrains
RouteAvoidanceOptions.Builder carShuttleTrains(Boolean carShuttleTrains)
Avoid car-shuttle-trains while calculating the route.
- Parameters:
carShuttleTrains- Avoid car-shuttle-trains while calculating the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
controlledAccessHighways
RouteAvoidanceOptions.Builder controlledAccessHighways(Boolean controlledAccessHighways)
Avoid controlled access highways while calculating the route.
- Parameters:
controlledAccessHighways- Avoid controlled access highways while calculating the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dirtRoads
RouteAvoidanceOptions.Builder dirtRoads(Boolean dirtRoads)
Avoid dirt roads while calculating the route.
- Parameters:
dirtRoads- Avoid dirt roads while calculating the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ferries
RouteAvoidanceOptions.Builder ferries(Boolean ferries)
Avoid ferries while calculating the route.
- Parameters:
ferries- Avoid ferries while calculating the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
seasonalClosure
RouteAvoidanceOptions.Builder seasonalClosure(Boolean seasonalClosure)
Avoid roads that have seasonal closure while calculating the route.
- Parameters:
seasonalClosure- Avoid roads that have seasonal closure while calculating the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tollRoads
RouteAvoidanceOptions.Builder tollRoads(Boolean tollRoads)
Avoids roads where the specified toll transponders are the only mode of payment.
- Parameters:
tollRoads- Avoids roads where the specified toll transponders are the only mode of payment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tollTransponders
RouteAvoidanceOptions.Builder tollTransponders(Boolean tollTransponders)
Avoids roads where the specified toll transponders are the only mode of payment.
- Parameters:
tollTransponders- Avoids roads where the specified toll transponders are the only mode of payment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
truckRoadTypes
RouteAvoidanceOptions.Builder truckRoadTypes(Collection<String> truckRoadTypes)
Truck road type identifiers.
BK1throughBK4apply only to Sweden.A2,A4,B2,B4,C,D,ET2,ET4apply only to Mexico.There are currently no other supported values as of 26th April 2024.
- Parameters:
truckRoadTypes- Truck road type identifiers.BK1throughBK4apply only to Sweden.A2,A4,B2,B4,C,D,ET2,ET4apply only to Mexico.There are currently no other supported values as of 26th April 2024.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
truckRoadTypes
RouteAvoidanceOptions.Builder truckRoadTypes(String... truckRoadTypes)
Truck road type identifiers.
BK1throughBK4apply only to Sweden.A2,A4,B2,B4,C,D,ET2,ET4apply only to Mexico.There are currently no other supported values as of 26th April 2024.
- Parameters:
truckRoadTypes- Truck road type identifiers.BK1throughBK4apply only to Sweden.A2,A4,B2,B4,C,D,ET2,ET4apply only to Mexico.There are currently no other supported values as of 26th April 2024.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tunnels
RouteAvoidanceOptions.Builder tunnels(Boolean tunnels)
Avoid tunnels while calculating the route.
- Parameters:
tunnels- Avoid tunnels while calculating the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
uTurns
RouteAvoidanceOptions.Builder uTurns(Boolean uTurns)
Avoid U-turns for calculation on highways and motorways.
- Parameters:
uTurns- Avoid U-turns for calculation on highways and motorways.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
zoneCategories
RouteAvoidanceOptions.Builder zoneCategories(Collection<RouteAvoidanceZoneCategory> zoneCategories)
Zone categories to be avoided.
- Parameters:
zoneCategories- Zone categories to be avoided.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
zoneCategories
RouteAvoidanceOptions.Builder zoneCategories(RouteAvoidanceZoneCategory... zoneCategories)
Zone categories to be avoided.
- Parameters:
zoneCategories- Zone categories to be avoided.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
zoneCategories
RouteAvoidanceOptions.Builder zoneCategories(Consumer<RouteAvoidanceZoneCategory.Builder>... zoneCategories)
Zone categories to be avoided.
This is a convenience method that creates an instance of theRouteAvoidanceZoneCategory.Builderavoiding the need to create one manually viaRouteAvoidanceZoneCategory.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#zoneCategories(List.) - Parameters:
zoneCategories- a consumer that will call methods onRouteAvoidanceZoneCategory.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#zoneCategories(java.util.Collection)
-
-