Interface RouteToll.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RouteToll.Builder,RouteToll>,SdkBuilder<RouteToll.Builder,RouteToll>,SdkPojo
- Enclosing class:
- RouteToll
public static interface RouteToll.Builder extends SdkPojo, CopyableBuilder<RouteToll.Builder,RouteToll>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RouteToll.Buildercountry(String country)The alpha-2 or alpha-3 character code for the country.RouteToll.BuilderpaymentSites(Collection<RouteTollPaymentSite> paymentSites)Locations or sites where the toll fare is collected.RouteToll.BuilderpaymentSites(Consumer<RouteTollPaymentSite.Builder>... paymentSites)Locations or sites where the toll fare is collected.RouteToll.BuilderpaymentSites(RouteTollPaymentSite... paymentSites)Locations or sites where the toll fare is collected.RouteToll.Builderrates(Collection<RouteTollRate> rates)Toll rates that need to be paid to travel this leg of the route.RouteToll.Builderrates(Consumer<RouteTollRate.Builder>... rates)Toll rates that need to be paid to travel this leg of the route.RouteToll.Builderrates(RouteTollRate... rates)Toll rates that need to be paid to travel this leg of the route.RouteToll.Buildersystems(Integer... systems)Toll systems are authorities that collect payments for the toll.RouteToll.Buildersystems(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 Detail
-
country
RouteToll.Builder country(String 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
RouteToll.Builder paymentSites(Collection<RouteTollPaymentSite> 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
RouteToll.Builder paymentSites(RouteTollPaymentSite... 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
RouteToll.Builder paymentSites(Consumer<RouteTollPaymentSite.Builder>... paymentSites)
Locations or sites where the toll fare is collected.
This is a convenience method that creates an instance of theRouteTollPaymentSite.Builderavoiding the need to create one manually viaRouteTollPaymentSite.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#paymentSites(List.) - 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:
#paymentSites(java.util.Collection)
-
rates
RouteToll.Builder rates(Collection<RouteTollRate> 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
RouteToll.Builder rates(RouteTollRate... 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
RouteToll.Builder rates(Consumer<RouteTollRate.Builder>... 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.Builderavoiding the need to create one manually viaRouteTollRate.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#rates(List.) - 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:
#rates(java.util.Collection)
-
systems
RouteToll.Builder systems(Collection<Integer> 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
RouteToll.Builder systems(Integer... 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.
-
-