Interface RouteTollPass.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RouteTollPass.Builder,RouteTollPass>,SdkBuilder<RouteTollPass.Builder,RouteTollPass>,SdkPojo
- Enclosing class:
- RouteTollPass
public static interface RouteTollPass.Builder extends SdkPojo, CopyableBuilder<RouteTollPass.Builder,RouteTollPass>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RouteTollPass.BuilderincludesReturnTrip(Boolean includesReturnTrip)If the pass includes the rate for the return leg of the trip.RouteTollPass.BuilderseniorPass(Boolean seniorPass)If the pass is only valid for senior persons.RouteTollPass.BuildertransferCount(Integer transferCount)If the toll pass can be transferred, and how many times.RouteTollPass.BuildertripCount(Integer tripCount)Number of trips the pass is valid for.default RouteTollPass.BuildervalidityPeriod(Consumer<RouteTollPassValidityPeriod.Builder> validityPeriod)Period for which the pass is valid.RouteTollPass.BuildervalidityPeriod(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 Detail
-
includesReturnTrip
RouteTollPass.Builder includesReturnTrip(Boolean 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
RouteTollPass.Builder seniorPass(Boolean 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
RouteTollPass.Builder transferCount(Integer 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
RouteTollPass.Builder tripCount(Integer 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
RouteTollPass.Builder validityPeriod(RouteTollPassValidityPeriod 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.Builderavoiding the need to create one manually viaRouteTollPassValidityPeriod.builder().When the
Consumercompletes,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:
validityPeriod(RouteTollPassValidityPeriod)
-
-