Interface DevicePositionUpdate.Builder

    • Method Detail

      • accuracy

        DevicePositionUpdate.Builder accuracy​(PositionalAccuracy accuracy)

        The accuracy of the device position.

        Parameters:
        accuracy - The accuracy of the device position.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • deviceId

        DevicePositionUpdate.Builder deviceId​(String deviceId)

        The device associated to the position update.

        Parameters:
        deviceId - The device associated to the position update.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • position

        DevicePositionUpdate.Builder position​(Collection<Double> position)

        The latest device position defined in WGS 84 format: [X or longitude, Y or latitude].

        Parameters:
        position - The latest device position defined in WGS 84 format: [X or longitude, Y or latitude].
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • position

        DevicePositionUpdate.Builder position​(Double... position)

        The latest device position defined in WGS 84 format: [X or longitude, Y or latitude].

        Parameters:
        position - The latest device position defined in WGS 84 format: [X or longitude, Y or latitude].
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • positionProperties

        DevicePositionUpdate.Builder positionProperties​(Map<String,​String> positionProperties)

        Associates one of more properties with the position update. A property is a key-value pair stored with the position update and added to any geofence event the update may trigger.

        Format: "key" : "value"

        Parameters:
        positionProperties - Associates one of more properties with the position update. A property is a key-value pair stored with the position update and added to any geofence event the update may trigger.

        Format: "key" : "value"

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sampleTime

        DevicePositionUpdate.Builder sampleTime​(Instant sampleTime)

        The timestamp at which the device's position was determined. Uses ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ

        Parameters:
        sampleTime - The timestamp at which the device's position was determined. Uses ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ
        Returns:
        Returns a reference to this object so that method calls can be chained together.