Interface RouteTollPass.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RouteTollPass.Builder,
,RouteTollPass> SdkBuilder<RouteTollPass.Builder,
,RouteTollPass> SdkPojo
- Enclosing class:
RouteTollPass
@Mutable
@NotThreadSafe
public static interface RouteTollPass.Builder
extends SdkPojo, CopyableBuilder<RouteTollPass.Builder,RouteTollPass>
-
Method Summary
Modifier and TypeMethodDescriptionincludesReturnTrip
(Boolean includesReturnTrip) If the pass includes the rate for the return leg of the trip.seniorPass
(Boolean seniorPass) If the pass is only valid for senior persons.transferCount
(Integer transferCount) If the toll pass can be transferred, and how many times.Number of trips the pass is valid for.default RouteTollPass.Builder
validityPeriod
(Consumer<RouteTollPassValidityPeriod.Builder> validityPeriod) Period for which the pass is valid.validityPeriod
(RouteTollPassValidityPeriod validityPeriod) Period for which the pass is valid.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
-
includesReturnTrip
If the pass includes the rate for the return leg of the trip.
- Parameters:
includesReturnTrip
- If the pass includes the rate for the return leg of the trip.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
seniorPass
If the pass is only valid for senior persons.
- Parameters:
seniorPass
- If the pass is only valid for senior persons.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
transferCount
If the toll pass can be transferred, and how many times.
- Parameters:
transferCount
- If the toll pass can be transferred, and how many times.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tripCount
Number of trips the pass is valid for.
- Parameters:
tripCount
- Number of trips the pass is valid for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
validityPeriod
Period for which the pass is valid.
- Parameters:
validityPeriod
- Period for which the pass is valid.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
validityPeriod
default RouteTollPass.Builder validityPeriod(Consumer<RouteTollPassValidityPeriod.Builder> validityPeriod) Period for which the pass is valid.
This is a convenience method that creates an instance of theRouteTollPassValidityPeriod.Builder
avoiding the need to create one manually viaRouteTollPassValidityPeriod.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovalidityPeriod(RouteTollPassValidityPeriod)
.- Parameters:
validityPeriod
- a consumer that will call methods onRouteTollPassValidityPeriod.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-