Interface RouteTollOptions.Builder

  • Method Details

    • allTransponders

      RouteTollOptions.Builder allTransponders(Boolean allTransponders)

      Specifies if the user has valid transponder with access to all toll systems. This impacts toll calculation, and if true the price with transponders is used.

      Parameters:
      allTransponders - Specifies if the user has valid transponder with access to all toll systems. This impacts toll calculation, and if true the price with transponders is used.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allVignettes

      RouteTollOptions.Builder allVignettes(Boolean allVignettes)

      Specifies if the user has valid vignettes with access for all toll roads. If a user has a vignette for a toll road, then toll cost for that road is omitted since no further payment is necessary.

      Parameters:
      allVignettes - Specifies if the user has valid vignettes with access for all toll roads. If a user has a vignette for a toll road, then toll cost for that road is omitted since no further payment is necessary.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • currency

      RouteTollOptions.Builder currency(String currency)

      Currency code corresponding to the price. This is the same as Currency specified in the request.

      Parameters:
      currency - Currency code corresponding to the price. This is the same as Currency specified in the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • emissionType

      RouteTollOptions.Builder emissionType(RouteEmissionType emissionType)

      Emission type of the vehicle for toll cost calculation.

      Valid values: Euro1, Euro2, Euro3, Euro4, Euro5, Euro6, EuroEev

      Parameters:
      emissionType - Emission type of the vehicle for toll cost calculation.

      Valid values: Euro1, Euro2, Euro3, Euro4, Euro5, Euro6, EuroEev

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • emissionType

      default RouteTollOptions.Builder emissionType(Consumer<RouteEmissionType.Builder> emissionType)

      Emission type of the vehicle for toll cost calculation.

      Valid values: Euro1, Euro2, Euro3, Euro4, Euro5, Euro6, EuroEev

      This is a convenience method that creates an instance of the RouteEmissionType.Builder avoiding the need to create one manually via RouteEmissionType.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to emissionType(RouteEmissionType).

      Parameters:
      emissionType - a consumer that will call methods on RouteEmissionType.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • vehicleCategory

      RouteTollOptions.Builder vehicleCategory(String vehicleCategory)

      Vehicle category for toll cost calculation.

      Parameters:
      vehicleCategory - Vehicle category for toll cost calculation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • vehicleCategory

      RouteTollOptions.Builder vehicleCategory(RouteTollVehicleCategory vehicleCategory)

      Vehicle category for toll cost calculation.

      Parameters:
      vehicleCategory - Vehicle category for toll cost calculation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: