Builder

class Builder(id: String)

Use to create a new instance.

See also

Constructors

Builder
Link copied to clipboard
fun Builder(id: String)

Functions

alertcCodes
Link copied to clipboard
fun alertcCodes(alertcCodes: List<Int>?): IncidentInfo.Builder
AlertC codes.
build
Link copied to clipboard
fun build(): IncidentInfo
Build the object instance.
congestion
Link copied to clipboard
fun congestion(congestion: IncidentCongestion?): IncidentInfo.Builder
Quantitative descriptor of congestion.
creationTime
Link copied to clipboard
fun creationTime(creationTime: Date?): IncidentInfo.Builder
Time the incident was created/updated in ISO8601 format.
description
Link copied to clipboard
fun description(description: String?): IncidentInfo.Builder
Human-readable description of the incident suitable for displaying to the users.
endTime
Link copied to clipboard
fun endTime(endTime: Date?): IncidentInfo.Builder
End time of the incident in ISO8601 format.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
impact
Link copied to clipboard
fun impact(impact: String?): IncidentInfo.Builder
Severity level of incident.
isClosed
Link copied to clipboard
fun isClosed(isClosed: Boolean): IncidentInfo.Builder
True if road is closed and no possibility to pass through there.
startTime
Link copied to clipboard
fun startTime(startTime: Date?): IncidentInfo.Builder
Start time of the incident in ISO8601 format.
subType
Link copied to clipboard
fun subType(subType: String?): IncidentInfo.Builder
Sub-type of the incident.
subTypeDescription
Link copied to clipboard
fun subTypeDescription(subTypeDescription: String?): IncidentInfo.Builder
Sub-type-specific description.
toString
Link copied to clipboard
open fun toString(): String
type
Link copied to clipboard
fun type(incidentType: Int): IncidentInfo.Builder
One of IncidentType.