类 TollCollection.Builder

java.lang.Object
ai.nextbillion.kits.directions.models.TollCollection.Builder
封闭类:
TollCollection

public abstract static class TollCollection.Builder extends Object
This builder can be used to set the values describing the TollCollection.
  • 构造器详细资料

    • Builder

      public Builder()
  • 方法详细资料

    • type

      public abstract TollCollection.Builder type(@Nullable String type)
      The type of toll collection point, either `toll_booth` or `toll_gantry`. Note that adding new possible types is not considered a breaking change.
      参数:
      type - toll collection type
    • build

      public abstract TollCollection build()
      Build a new TollCollection object.
      返回:
      a new TollCollection using the provided values in this builder