类 Incident.Builder
java.lang.Object
ai.nextbillion.kits.directions.models.Incident.Builder
- 封闭类:
- Incident
This builder can be used to set the values describing the
Incident.-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明abstract Incident.BuilderalertcCodes(List<Integer> alertcCodes) AlertC codes.abstract Incidentbuild()Build a new instance ofIncident.abstract Incident.BuilderTrue if road is closed and no possibility to pass through there.abstract Incident.Buildercongestion(Congestion congestion) Quantitative descriptor of congestion.abstract Incident.BuildercreationTime(String creationTime) Time the incident was created/updated in ISO8601 format.abstract Incident.Builderdescription(String description) Human-readable description of the incident suitable for displaying to the users.abstract Incident.BuilderEnd time in ISO8601 format.abstract Incident.BuildergeometryIndexEnd(Integer geometryIndexEnd) Incident's geometry index end point.abstract Incident.BuildergeometryIndexStart(Integer geometryIndexStart) Incident's geometry index start point.abstract Incident.BuilderUnique identifier for incident.abstract Incident.BuilderSeverity level of incident.abstract Incident.BuilderlongDescription(String longDescription) Human-readable long description of the incident suitable for displaying to the users.abstract Incident.BuilderStart time in ISO8601 format.abstract Incident.BuilderSub-type of the incident.abstract Incident.BuildersubTypeDescription(String subTypeDescription) Sub-type-specific description.abstract Incident.BuilderOne of incident types.
-
构造器详细资料
-
Builder
public Builder()
-
-
方法详细资料
-
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
One of incident types.- 参数:
type- incident type- 另请参阅:
-
closed
True if road is closed and no possibility to pass through there. False otherwise.- 参数:
closed- is way closed
-
congestion
Quantitative descriptor of congestion.- 参数:
congestion- congestion
-
description
Human-readable description of the incident suitable for displaying to the users.- 参数:
description- incident description
-
longDescription
Human-readable long description of the incident suitable for displaying to the users.- 参数:
longDescription- incident long description
-
impact
Severity level of incident.- 参数:
impact- impact type- 另请参阅:
-
subType
Sub-type of the incident.- 参数:
subType- syp-type
-
subTypeDescription
Sub-type-specific description.- 参数:
subTypeDescription- sub-type description
-
alertcCodes
AlertC codes.- 参数:
alertcCodes- list of alert codes- 另请参阅:
-
geometryIndexStart
Incident's geometry index start point.- 参数:
geometryIndexStart- start index
-
geometryIndexEnd
Incident's geometry index end point.- 参数:
geometryIndexEnd- end index
-
creationTime
Time the incident was created/updated in ISO8601 format.- 参数:
creationTime- ISO8601 format
-
startTime
Start time in ISO8601 format.- 参数:
startTime- ISO8601 format
-
endTime
End time in ISO8601 format.- 参数:
endTime- ISO8601 format
-
build
Build a new instance ofIncident.- 返回:
- a new instance of
Incident.
-