Class IncidentInfo.Builder
-
- All Implemented Interfaces:
public final class IncidentInfo.BuilderUse to create a new instance.
-
-
Constructor Summary
Constructors Constructor Description IncidentInfo.Builder(String id)
-
Method Summary
Modifier and Type Method Description final IncidentInfo.Buildertype(Integer incidentType)One of IncidentType. final IncidentInfo.Builderimpact(String impact)Severity level of incident. final IncidentInfo.Buildercongestion(IncidentCongestion congestion)Quantitative descriptor of congestion. final IncidentInfo.BuilderisClosed(Boolean isClosed)True if road is closed and no possibility to pass through there. final IncidentInfo.BuildercreationTime(Date creationTime)Time the incident was created/updated in ISO8601 format. final IncidentInfo.BuilderstartTime(Date startTime)Start time of the incident in ISO8601 format. final IncidentInfo.BuilderendTime(Date endTime)End time of the incident in ISO8601 format. final IncidentInfo.Builderdescription(String description)Human-readable description of the incident suitable for displaying to the users. final IncidentInfo.BuildersubType(String subType)Sub-type of the incident. final IncidentInfo.BuildersubTypeDescription(String subTypeDescription)Sub-type-specific description. final IncidentInfo.BuilderalertcCodes(List<Integer> alertcCodes)AlertC codes. final IncidentInfobuild()Build the object instance.
-
-
-
Constructor Detail
-
IncidentInfo.Builder
IncidentInfo.Builder(String id)
-
-
Method Detail
-
type
final IncidentInfo.Builder type(Integer incidentType)
One of IncidentType.
-
impact
final IncidentInfo.Builder impact(String impact)
Severity level of incident.
-
congestion
final IncidentInfo.Builder congestion(IncidentCongestion congestion)
Quantitative descriptor of congestion.
-
isClosed
final IncidentInfo.Builder isClosed(Boolean isClosed)
True if road is closed and no possibility to pass through there. False otherwise.
-
creationTime
final IncidentInfo.Builder creationTime(Date creationTime)
Time the incident was created/updated in ISO8601 format. The incident alert can be created/updated at a different time than its occurrence.
-
startTime
final IncidentInfo.Builder startTime(Date startTime)
Start time of the incident in ISO8601 format.
-
endTime
final IncidentInfo.Builder endTime(Date endTime)
End time of the incident in ISO8601 format.
-
description
final IncidentInfo.Builder description(String description)
Human-readable description of the incident suitable for displaying to the users.
-
subType
final IncidentInfo.Builder subType(String subType)
Sub-type of the incident.
-
subTypeDescription
final IncidentInfo.Builder subTypeDescription(String subTypeDescription)
Sub-type-specific description.
-
alertcCodes
final IncidentInfo.Builder alertcCodes(List<Integer> alertcCodes)
AlertC codes.
-
build
final IncidentInfo build()
Build the object instance.
-
-