Interface RouteVehicleSpan.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RouteVehicleSpan.Builder,RouteVehicleSpan>,SdkBuilder<RouteVehicleSpan.Builder,RouteVehicleSpan>,SdkPojo
- Enclosing class:
- RouteVehicleSpan
public static interface RouteVehicleSpan.Builder extends SdkPojo, CopyableBuilder<RouteVehicleSpan.Builder,RouteVehicleSpan>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RouteVehicleSpan.BuilderbestCaseDuration(Long bestCaseDuration)Duration of the computed span without traffic congestion.RouteVehicleSpan.BuildercarAccess(Collection<RouteSpanCarAccessAttribute> carAccess)Access attributes for a car corresponding to the span.RouteVehicleSpan.BuildercarAccess(RouteSpanCarAccessAttribute... carAccess)Access attributes for a car corresponding to the span.RouteVehicleSpan.BuildercarAccessWithStrings(String... carAccess)Access attributes for a car corresponding to the span.RouteVehicleSpan.BuildercarAccessWithStrings(Collection<String> carAccess)Access attributes for a car corresponding to the span.RouteVehicleSpan.Buildercountry(String country)3 letter Country code corresponding to the Span.RouteVehicleSpan.Builderdistance(Long distance)Distance of the computed span.RouteVehicleSpan.Builderduration(Long duration)Duration of the computed span.default RouteVehicleSpan.BuilderdynamicSpeed(Consumer<RouteSpanDynamicSpeedDetails.Builder> dynamicSpeed)Dynamic speed details corresponding to the span.RouteVehicleSpan.BuilderdynamicSpeed(RouteSpanDynamicSpeedDetails dynamicSpeed)Dynamic speed details corresponding to the span.RouteVehicleSpan.BuilderfunctionalClassification(Integer functionalClassification)Functional classification of the road segment corresponding to the span.RouteVehicleSpan.Buildergate(String gate)Attributes corresponding to a gate.RouteVehicleSpan.Buildergate(RouteSpanGateAttribute gate)Attributes corresponding to a gate.RouteVehicleSpan.BuildergeometryOffset(Integer geometryOffset)Offset in the leg geometry corresponding to the start of this span.RouteVehicleSpan.Builderincidents(Integer... incidents)Incidents corresponding to the span.RouteVehicleSpan.Builderincidents(Collection<Integer> incidents)Incidents corresponding to the span.RouteVehicleSpan.Buildernames(Collection<LocalizedString> names)Provides an array of names of the vehicle span in available languages.RouteVehicleSpan.Buildernames(Consumer<LocalizedString.Builder>... names)Provides an array of names of the vehicle span in available languages.RouteVehicleSpan.Buildernames(LocalizedString... names)Provides an array of names of the vehicle span in available languages.RouteVehicleSpan.Buildernotices(Integer... notices)Notices are additional information returned that indicate issues that occurred during route calculation.RouteVehicleSpan.Buildernotices(Collection<Integer> notices)Notices are additional information returned that indicate issues that occurred during route calculation.RouteVehicleSpan.BuilderrailwayCrossing(String railwayCrossing)Attributes corresponding to a railway crossing.RouteVehicleSpan.BuilderrailwayCrossing(RouteSpanRailwayCrossingAttribute railwayCrossing)Attributes corresponding to a railway crossing.RouteVehicleSpan.Builderregion(String region)2-3 letter Region code corresponding to the Span.RouteVehicleSpan.BuilderroadAttributes(Collection<RouteSpanRoadAttribute> roadAttributes)Attributes for the road segment corresponding to the span.RouteVehicleSpan.BuilderroadAttributes(RouteSpanRoadAttribute... roadAttributes)Attributes for the road segment corresponding to the span.RouteVehicleSpan.BuilderroadAttributesWithStrings(String... roadAttributes)Attributes for the road segment corresponding to the span.RouteVehicleSpan.BuilderroadAttributesWithStrings(Collection<String> roadAttributes)Attributes for the road segment corresponding to the span.RouteVehicleSpan.BuilderrouteNumbers(Collection<RouteNumber> routeNumbers)Designated route name or number corresponding to the span.RouteVehicleSpan.BuilderrouteNumbers(Consumer<RouteNumber.Builder>... routeNumbers)Designated route name or number corresponding to the span.RouteVehicleSpan.BuilderrouteNumbers(RouteNumber... routeNumbers)Designated route name or number corresponding to the span.RouteVehicleSpan.BuilderscooterAccess(Collection<RouteSpanScooterAccessAttribute> scooterAccess)Access attributes for a scooter corresponding to the span.RouteVehicleSpan.BuilderscooterAccess(RouteSpanScooterAccessAttribute... scooterAccess)Access attributes for a scooter corresponding to the span.RouteVehicleSpan.BuilderscooterAccessWithStrings(String... scooterAccess)Access attributes for a scooter corresponding to the span.RouteVehicleSpan.BuilderscooterAccessWithStrings(Collection<String> scooterAccess)Access attributes for a scooter corresponding to the span.default RouteVehicleSpan.BuilderspeedLimit(Consumer<RouteSpanSpeedLimitDetails.Builder> speedLimit)Speed limit details corresponding to the span.RouteVehicleSpan.BuilderspeedLimit(RouteSpanSpeedLimitDetails speedLimit)Speed limit details corresponding to the span.RouteVehicleSpan.BuildertollSystems(Integer... tollSystems)Toll systems are authorities that collect payments for the toll.RouteVehicleSpan.BuildertollSystems(Collection<Integer> tollSystems)Toll systems are authorities that collect payments for the toll.RouteVehicleSpan.BuildertruckAccess(Collection<RouteSpanTruckAccessAttribute> truckAccess)Access attributes for a truck corresponding to the span.RouteVehicleSpan.BuildertruckAccess(RouteSpanTruckAccessAttribute... truckAccess)Access attributes for a truck corresponding to the span.RouteVehicleSpan.BuildertruckAccessWithStrings(String... truckAccess)Access attributes for a truck corresponding to the span.RouteVehicleSpan.BuildertruckAccessWithStrings(Collection<String> truckAccess)Access attributes for a truck corresponding to the span.RouteVehicleSpan.BuildertruckRoadTypes(Integer... truckRoadTypes)Truck road type identifiers.RouteVehicleSpan.BuildertruckRoadTypes(Collection<Integer> truckRoadTypes)Truck road type identifiers.RouteVehicleSpan.BuildertypicalDuration(Long typicalDuration)Duration of the computed span under typical traffic congestion.RouteVehicleSpan.Builderzones(Integer... zones)Zones corresponding to this leg of the route.RouteVehicleSpan.Builderzones(Collection<Integer> zones)Zones corresponding to this leg of the route.-
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
-
bestCaseDuration
RouteVehicleSpan.Builder bestCaseDuration(Long bestCaseDuration)
Duration of the computed span without traffic congestion.
Unit:
seconds- Parameters:
bestCaseDuration- Duration of the computed span without traffic congestion.Unit:
seconds- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
carAccessWithStrings
RouteVehicleSpan.Builder carAccessWithStrings(Collection<String> carAccess)
Access attributes for a car corresponding to the span.
- Parameters:
carAccess- Access attributes for a car corresponding to the span.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
carAccessWithStrings
RouteVehicleSpan.Builder carAccessWithStrings(String... carAccess)
Access attributes for a car corresponding to the span.
- Parameters:
carAccess- Access attributes for a car corresponding to the span.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
carAccess
RouteVehicleSpan.Builder carAccess(Collection<RouteSpanCarAccessAttribute> carAccess)
Access attributes for a car corresponding to the span.
- Parameters:
carAccess- Access attributes for a car corresponding to the span.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
carAccess
RouteVehicleSpan.Builder carAccess(RouteSpanCarAccessAttribute... carAccess)
Access attributes for a car corresponding to the span.
- Parameters:
carAccess- Access attributes for a car corresponding to the span.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
country
RouteVehicleSpan.Builder country(String country)
3 letter Country code corresponding to the Span.
- Parameters:
country- 3 letter Country code corresponding to the Span.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
distance
RouteVehicleSpan.Builder distance(Long distance)
Distance of the computed span. This feature doesn't split a span, but is always computed on a span split by other properties.
- Parameters:
distance- Distance of the computed span. This feature doesn't split a span, but is always computed on a span split by other properties.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
duration
RouteVehicleSpan.Builder duration(Long duration)
Duration of the computed span. This feature doesn't split a span, but is always computed on a span split by other properties.
Unit:
seconds- Parameters:
duration- Duration of the computed span. This feature doesn't split a span, but is always computed on a span split by other properties.Unit:
seconds- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dynamicSpeed
RouteVehicleSpan.Builder dynamicSpeed(RouteSpanDynamicSpeedDetails dynamicSpeed)
Dynamic speed details corresponding to the span.
Unit:
KilometersPerHour- Parameters:
dynamicSpeed- Dynamic speed details corresponding to the span.Unit:
KilometersPerHour- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dynamicSpeed
default RouteVehicleSpan.Builder dynamicSpeed(Consumer<RouteSpanDynamicSpeedDetails.Builder> dynamicSpeed)
Dynamic speed details corresponding to the span.
Unit:
This is a convenience method that creates an instance of theKilometersPerHourRouteSpanDynamicSpeedDetails.Builderavoiding the need to create one manually viaRouteSpanDynamicSpeedDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todynamicSpeed(RouteSpanDynamicSpeedDetails).- Parameters:
dynamicSpeed- a consumer that will call methods onRouteSpanDynamicSpeedDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
dynamicSpeed(RouteSpanDynamicSpeedDetails)
-
functionalClassification
RouteVehicleSpan.Builder functionalClassification(Integer functionalClassification)
Functional classification of the road segment corresponding to the span.
- Parameters:
functionalClassification- Functional classification of the road segment corresponding to the span.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gate
RouteVehicleSpan.Builder gate(String gate)
Attributes corresponding to a gate. The gate is present at the end of the returned span.
- Parameters:
gate- Attributes corresponding to a gate. The gate is present at the end of the returned span.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RouteSpanGateAttribute,RouteSpanGateAttribute
-
gate
RouteVehicleSpan.Builder gate(RouteSpanGateAttribute gate)
Attributes corresponding to a gate. The gate is present at the end of the returned span.
- Parameters:
gate- Attributes corresponding to a gate. The gate is present at the end of the returned span.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RouteSpanGateAttribute,RouteSpanGateAttribute
-
geometryOffset
RouteVehicleSpan.Builder geometryOffset(Integer geometryOffset)
Offset in the leg geometry corresponding to the start of this span.
- Parameters:
geometryOffset- Offset in the leg geometry corresponding to the start of this span.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
incidents
RouteVehicleSpan.Builder incidents(Collection<Integer> incidents)
Incidents corresponding to the span. These index into the Incidents in the parent Leg.
- Parameters:
incidents- Incidents corresponding to the span. These index into the Incidents in the parent Leg.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
incidents
RouteVehicleSpan.Builder incidents(Integer... incidents)
Incidents corresponding to the span. These index into the Incidents in the parent Leg.
- Parameters:
incidents- Incidents corresponding to the span. These index into the Incidents in the parent Leg.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
names
RouteVehicleSpan.Builder names(Collection<LocalizedString> names)
Provides an array of names of the vehicle span in available languages.
- Parameters:
names- Provides an array of names of the vehicle span in available languages.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
names
RouteVehicleSpan.Builder names(LocalizedString... names)
Provides an array of names of the vehicle span in available languages.
- Parameters:
names- Provides an array of names of the vehicle span in available languages.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
names
RouteVehicleSpan.Builder names(Consumer<LocalizedString.Builder>... names)
Provides an array of names of the vehicle span in available languages.
This is a convenience method that creates an instance of theLocalizedString.Builderavoiding the need to create one manually viaLocalizedString.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#names(List.) - Parameters:
names- a consumer that will call methods onLocalizedString.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#names(java.util.Collection)
-
notices
RouteVehicleSpan.Builder notices(Collection<Integer> notices)
Notices are additional information returned that indicate issues that occurred during route calculation.
- Parameters:
notices- Notices are additional information returned that indicate issues that occurred during route calculation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notices
RouteVehicleSpan.Builder notices(Integer... notices)
Notices are additional information returned that indicate issues that occurred during route calculation.
- Parameters:
notices- Notices are additional information returned that indicate issues that occurred during route calculation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
railwayCrossing
RouteVehicleSpan.Builder railwayCrossing(String railwayCrossing)
Attributes corresponding to a railway crossing. The gate is present at the end of the returned span.
- Parameters:
railwayCrossing- Attributes corresponding to a railway crossing. The gate is present at the end of the returned span.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RouteSpanRailwayCrossingAttribute,RouteSpanRailwayCrossingAttribute
-
railwayCrossing
RouteVehicleSpan.Builder railwayCrossing(RouteSpanRailwayCrossingAttribute railwayCrossing)
Attributes corresponding to a railway crossing. The gate is present at the end of the returned span.
- Parameters:
railwayCrossing- Attributes corresponding to a railway crossing. The gate is present at the end of the returned span.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RouteSpanRailwayCrossingAttribute,RouteSpanRailwayCrossingAttribute
-
region
RouteVehicleSpan.Builder region(String region)
2-3 letter Region code corresponding to the Span. This is either a province or a state.
- Parameters:
region- 2-3 letter Region code corresponding to the Span. This is either a province or a state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roadAttributesWithStrings
RouteVehicleSpan.Builder roadAttributesWithStrings(Collection<String> roadAttributes)
Attributes for the road segment corresponding to the span.
- Parameters:
roadAttributes- Attributes for the road segment corresponding to the span.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roadAttributesWithStrings
RouteVehicleSpan.Builder roadAttributesWithStrings(String... roadAttributes)
Attributes for the road segment corresponding to the span.
- Parameters:
roadAttributes- Attributes for the road segment corresponding to the span.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roadAttributes
RouteVehicleSpan.Builder roadAttributes(Collection<RouteSpanRoadAttribute> roadAttributes)
Attributes for the road segment corresponding to the span.
- Parameters:
roadAttributes- Attributes for the road segment corresponding to the span.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roadAttributes
RouteVehicleSpan.Builder roadAttributes(RouteSpanRoadAttribute... roadAttributes)
Attributes for the road segment corresponding to the span.
- Parameters:
roadAttributes- Attributes for the road segment corresponding to the span.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routeNumbers
RouteVehicleSpan.Builder routeNumbers(Collection<RouteNumber> routeNumbers)
Designated route name or number corresponding to the span.
- Parameters:
routeNumbers- Designated route name or number corresponding to the span.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routeNumbers
RouteVehicleSpan.Builder routeNumbers(RouteNumber... routeNumbers)
Designated route name or number corresponding to the span.
- Parameters:
routeNumbers- Designated route name or number corresponding to the span.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routeNumbers
RouteVehicleSpan.Builder routeNumbers(Consumer<RouteNumber.Builder>... routeNumbers)
Designated route name or number corresponding to the span.
This is a convenience method that creates an instance of theRouteNumber.Builderavoiding the need to create one manually viaRouteNumber.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#routeNumbers(List.) - Parameters:
routeNumbers- a consumer that will call methods onRouteNumber.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#routeNumbers(java.util.Collection)
-
scooterAccessWithStrings
RouteVehicleSpan.Builder scooterAccessWithStrings(Collection<String> scooterAccess)
Access attributes for a scooter corresponding to the span.
- Parameters:
scooterAccess- Access attributes for a scooter corresponding to the span.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scooterAccessWithStrings
RouteVehicleSpan.Builder scooterAccessWithStrings(String... scooterAccess)
Access attributes for a scooter corresponding to the span.
- Parameters:
scooterAccess- Access attributes for a scooter corresponding to the span.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scooterAccess
RouteVehicleSpan.Builder scooterAccess(Collection<RouteSpanScooterAccessAttribute> scooterAccess)
Access attributes for a scooter corresponding to the span.
- Parameters:
scooterAccess- Access attributes for a scooter corresponding to the span.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scooterAccess
RouteVehicleSpan.Builder scooterAccess(RouteSpanScooterAccessAttribute... scooterAccess)
Access attributes for a scooter corresponding to the span.
- Parameters:
scooterAccess- Access attributes for a scooter corresponding to the span.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
speedLimit
RouteVehicleSpan.Builder speedLimit(RouteSpanSpeedLimitDetails speedLimit)
Speed limit details corresponding to the span.
Unit:
KilometersPerHour- Parameters:
speedLimit- Speed limit details corresponding to the span.Unit:
KilometersPerHour- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
speedLimit
default RouteVehicleSpan.Builder speedLimit(Consumer<RouteSpanSpeedLimitDetails.Builder> speedLimit)
Speed limit details corresponding to the span.
Unit:
This is a convenience method that creates an instance of theKilometersPerHourRouteSpanSpeedLimitDetails.Builderavoiding the need to create one manually viaRouteSpanSpeedLimitDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tospeedLimit(RouteSpanSpeedLimitDetails).- Parameters:
speedLimit- a consumer that will call methods onRouteSpanSpeedLimitDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
speedLimit(RouteSpanSpeedLimitDetails)
-
tollSystems
RouteVehicleSpan.Builder tollSystems(Collection<Integer> tollSystems)
Toll systems are authorities that collect payments for the toll.
- Parameters:
tollSystems- Toll systems are authorities that collect payments for the toll.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tollSystems
RouteVehicleSpan.Builder tollSystems(Integer... tollSystems)
Toll systems are authorities that collect payments for the toll.
- Parameters:
tollSystems- Toll systems are authorities that collect payments for the toll.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
truckAccessWithStrings
RouteVehicleSpan.Builder truckAccessWithStrings(Collection<String> truckAccess)
Access attributes for a truck corresponding to the span.
- Parameters:
truckAccess- Access attributes for a truck corresponding to the span.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
truckAccessWithStrings
RouteVehicleSpan.Builder truckAccessWithStrings(String... truckAccess)
Access attributes for a truck corresponding to the span.
- Parameters:
truckAccess- Access attributes for a truck corresponding to the span.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
truckAccess
RouteVehicleSpan.Builder truckAccess(Collection<RouteSpanTruckAccessAttribute> truckAccess)
Access attributes for a truck corresponding to the span.
- Parameters:
truckAccess- Access attributes for a truck corresponding to the span.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
truckAccess
RouteVehicleSpan.Builder truckAccess(RouteSpanTruckAccessAttribute... truckAccess)
Access attributes for a truck corresponding to the span.
- Parameters:
truckAccess- Access attributes for a truck corresponding to the span.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
truckRoadTypes
RouteVehicleSpan.Builder truckRoadTypes(Collection<Integer> 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
RouteVehicleSpan.Builder truckRoadTypes(Integer... 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.
-
typicalDuration
RouteVehicleSpan.Builder typicalDuration(Long typicalDuration)
Duration of the computed span under typical traffic congestion.
Unit:
seconds- Parameters:
typicalDuration- Duration of the computed span under typical traffic congestion.Unit:
seconds- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
zones
RouteVehicleSpan.Builder zones(Collection<Integer> zones)
Zones corresponding to this leg of the route.
- Parameters:
zones- Zones corresponding to this leg of the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
zones
RouteVehicleSpan.Builder zones(Integer... zones)
Zones corresponding to this leg of the route.
- Parameters:
zones- Zones corresponding to this leg of the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-