类 Incident.Builder

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

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

    • Builder

      public Builder()
  • 方法详细资料

    • id

      public abstract Incident.Builder id(@NonNull String id)
      Unique identifier for incident. It might be the only one non-null filed which meant that incident started on previous leg and one has an incident with the same id.
      参数:
      id - String
    • type

      public abstract Incident.Builder type(@Nullable String type)
      One of incident types.
      参数:
      type - incident type
      另请参阅:
    • closed

      public abstract Incident.Builder closed(@Nullable Boolean closed)
      True if road is closed and no possibility to pass through there. False otherwise.
      参数:
      closed - is way closed
    • congestion

      public abstract Incident.Builder congestion(@Nullable Congestion congestion)
      Quantitative descriptor of congestion.
      参数:
      congestion - congestion
    • description

      public abstract Incident.Builder description(@Nullable String description)
      Human-readable description of the incident suitable for displaying to the users.
      参数:
      description - incident description
    • longDescription

      public abstract Incident.Builder longDescription(@Nullable String longDescription)
      Human-readable long description of the incident suitable for displaying to the users.
      参数:
      longDescription - incident long description
    • impact

      public abstract Incident.Builder impact(@Nullable String impact)
      Severity level of incident.
      参数:
      impact - impact type
      另请参阅:
    • subType

      public abstract Incident.Builder subType(@Nullable String subType)
      Sub-type of the incident.
      参数:
      subType - syp-type
    • subTypeDescription

      public abstract Incident.Builder subTypeDescription(@Nullable String subTypeDescription)
      Sub-type-specific description.
      参数:
      subTypeDescription - sub-type description
    • alertcCodes

      public abstract Incident.Builder alertcCodes(@Nullable List<Integer> alertcCodes)
      AlertC codes.
      参数:
      alertcCodes - list of alert codes
      另请参阅:
    • geometryIndexStart

      public abstract Incident.Builder geometryIndexStart(@Nullable Integer geometryIndexStart)
      Incident's geometry index start point.
      参数:
      geometryIndexStart - start index
    • geometryIndexEnd

      public abstract Incident.Builder geometryIndexEnd(@Nullable Integer geometryIndexEnd)
      Incident's geometry index end point.
      参数:
      geometryIndexEnd - end index
    • creationTime

      public abstract Incident.Builder creationTime(@Nullable String creationTime)
      Time the incident was created/updated in ISO8601 format.
      参数:
      creationTime - ISO8601 format
    • startTime

      public abstract Incident.Builder startTime(@Nullable String startTime)
      Start time in ISO8601 format.
      参数:
      startTime - ISO8601 format
    • endTime

      public abstract Incident.Builder endTime(@Nullable String endTime)
      End time in ISO8601 format.
      参数:
      endTime - ISO8601 format
    • build

      public abstract Incident build()
      Build a new instance of Incident.
      返回:
      a new instance of Incident.