Interface RouteToll.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RouteToll.Builder,
,RouteToll> SdkBuilder<RouteToll.Builder,
,RouteToll> SdkPojo
- Enclosing class:
RouteToll
-
Method Summary
Modifier and TypeMethodDescriptionThe alpha-2 or alpha-3 character code for the country.paymentSites
(Collection<RouteTollPaymentSite> paymentSites) Locations or sites where the toll fare is collected.paymentSites
(Consumer<RouteTollPaymentSite.Builder>... paymentSites) Locations or sites where the toll fare is collected.paymentSites
(RouteTollPaymentSite... paymentSites) Locations or sites where the toll fare is collected.rates
(Collection<RouteTollRate> rates) Toll rates that need to be paid to travel this leg of the route.rates
(Consumer<RouteTollRate.Builder>... rates) Toll rates that need to be paid to travel this leg of the route.rates
(RouteTollRate... rates) Toll rates that need to be paid to travel this leg of the route.Toll systems are authorities that collect payments for the toll.systems
(Collection<Integer> systems) Toll systems are authorities that collect payments for the toll.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 Details
-
country
The alpha-2 or alpha-3 character code for the country.
- Parameters:
country
- The alpha-2 or alpha-3 character code for the country.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
paymentSites
Locations or sites where the toll fare is collected.
- Parameters:
paymentSites
- Locations or sites where the toll fare is collected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
paymentSites
Locations or sites where the toll fare is collected.
- Parameters:
paymentSites
- Locations or sites where the toll fare is collected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
paymentSites
Locations or sites where the toll fare is collected.
This is a convenience method that creates an instance of theRouteTollPaymentSite.Builder
avoiding the need to create one manually viaRouteTollPaymentSite.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topaymentSites(List<RouteTollPaymentSite>)
.- Parameters:
paymentSites
- a consumer that will call methods onRouteTollPaymentSite.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
rates
Toll rates that need to be paid to travel this leg of the route.
- Parameters:
rates
- Toll rates that need to be paid to travel this leg of the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rates
Toll rates that need to be paid to travel this leg of the route.
- Parameters:
rates
- Toll rates that need to be paid to travel this leg of the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rates
Toll rates that need to be paid to travel this leg of the route.
This is a convenience method that creates an instance of theRouteTollRate.Builder
avoiding the need to create one manually viaRouteTollRate.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torates(List<RouteTollRate>)
.- Parameters:
rates
- a consumer that will call methods onRouteTollRate.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
systems
Toll systems are authorities that collect payments for the toll.
- Parameters:
systems
- 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.
-
systems
Toll systems are authorities that collect payments for the toll.
- Parameters:
systems
- 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.
-