Class RouteVehicleIncident

    • Method Detail

      • description

        public final String description()

        Brief readable description of the incident.

        Returns:
        Brief readable description of the incident.
      • endTime

        public final String endTime()

        End timestamp of the incident.

        Returns:
        End timestamp of the incident.
      • severity

        public final RouteVehicleIncidentSeverity severity()

        Severity of the incident Critical - The part of the route the incident affects is unusable. Major- Major impact on the leg duration, for example stop and go Minor- Minor impact on the leg duration, for example traffic jam Low - Low on duration, for example slightly increased traffic

        If the service returns an enum value that is not available in the current SDK version, severity will return RouteVehicleIncidentSeverity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from severityAsString().

        Returns:
        Severity of the incident Critical - The part of the route the incident affects is unusable. Major- Major impact on the leg duration, for example stop and go Minor- Minor impact on the leg duration, for example traffic jam Low - Low on duration, for example slightly increased traffic
        See Also:
        RouteVehicleIncidentSeverity
      • severityAsString

        public final String severityAsString()

        Severity of the incident Critical - The part of the route the incident affects is unusable. Major- Major impact on the leg duration, for example stop and go Minor- Minor impact on the leg duration, for example traffic jam Low - Low on duration, for example slightly increased traffic

        If the service returns an enum value that is not available in the current SDK version, severity will return RouteVehicleIncidentSeverity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from severityAsString().

        Returns:
        Severity of the incident Critical - The part of the route the incident affects is unusable. Major- Major impact on the leg duration, for example stop and go Minor- Minor impact on the leg duration, for example traffic jam Low - Low on duration, for example slightly increased traffic
        See Also:
        RouteVehicleIncidentSeverity
      • startTime

        public final String startTime()

        Start time of the incident.

        Returns:
        Start time of the incident.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)