Interface RouteTollPrice.Builder

    • Method Detail

      • currency

        RouteTollPrice.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.
      • estimate

        RouteTollPrice.Builder estimate​(Boolean estimate)

        If the price is an estimate or an exact value.

        Parameters:
        estimate - If the price is an estimate or an exact value.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • perDuration

        RouteTollPrice.Builder perDuration​(Long perDuration)

        Duration for which the price corresponds to.

        Unit: seconds

        Parameters:
        perDuration - Duration for which the price corresponds to.

        Unit: seconds

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

        RouteTollPrice.Builder range​(Boolean range)

        If the price is a range or an exact value. If any of the toll fares making up the route is a range, the overall price is also a range.

        Parameters:
        range - If the price is a range or an exact value. If any of the toll fares making up the route is a range, the overall price is also a range.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • rangeValue

        RouteTollPrice.Builder rangeValue​(RouteTollPriceValueRange rangeValue)

        Price range with a minimum and maximum value, if a range.

        Parameters:
        rangeValue - Price range with a minimum and maximum value, if a range.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • value

        RouteTollPrice.Builder value​(Double value)

        Exact price, if not a range.

        Parameters:
        value - Exact price, if not a range.
        Returns:
        Returns a reference to this object so that method calls can be chained together.