Interface GetDevicePositionResponse.Builder

    • Method Detail

      • deviceId

        GetDevicePositionResponse.Builder deviceId​(String deviceId)

        The device whose position you retrieved.

        Parameters:
        deviceId - The device whose position you retrieved.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sampleTime

        GetDevicePositionResponse.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.
      • receivedTime

        GetDevicePositionResponse.Builder receivedTime​(Instant receivedTime)

        The timestamp for when the tracker resource received the device position. Uses ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

        Parameters:
        receivedTime - The timestamp for when the tracker resource received the device position. 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.
      • position

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

        The last known device position.

        Parameters:
        position - The last known device position.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • position

        GetDevicePositionResponse.Builder position​(Double... position)

        The last known device position.

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

        GetDevicePositionResponse.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.
      • positionProperties

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

        The properties associated with the position.

        Parameters:
        positionProperties - The properties associated with the position.
        Returns:
        Returns a reference to this object so that method calls can be chained together.