Class ForecastGeofenceEventsResponse

    • Method Detail

      • hasForecastedEvents

        public final boolean hasForecastedEvents()
        For responses, this returns true if the service returned a value for the ForecastedEvents property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • forecastedEvents

        public final List<ForecastedEvent> forecastedEvents()

        The list of forecasted events.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasForecastedEvents() method.

        Returns:
        The list of forecasted events.
      • nextToken

        public final String nextToken()

        The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page.

        Returns:
        The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page.
      • distanceUnit

        public final DistanceUnit distanceUnit()

        The distance unit for the forecasted events.

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

        Returns:
        The distance unit for the forecasted events.
        See Also:
        DistanceUnit
      • distanceUnitAsString

        public final String distanceUnitAsString()

        The distance unit for the forecasted events.

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

        Returns:
        The distance unit for the forecasted events.
        See Also:
        DistanceUnit
      • speedUnit

        public final SpeedUnit speedUnit()

        The speed unit for the forecasted events.

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

        Returns:
        The speed unit for the forecasted events.
        See Also:
        SpeedUnit
      • speedUnitAsString

        public final String speedUnitAsString()

        The speed unit for the forecasted events.

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

        Returns:
        The speed unit for the forecasted events.
        See Also:
        SpeedUnit
      • 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