public static interface DevicePosition.Builder extends SdkPojo, CopyableBuilder<DevicePosition.Builder,DevicePosition>
| Modifier and Type | Method and Description |
|---|---|
default DevicePosition.Builder |
accuracy(Consumer<PositionalAccuracy.Builder> accuracy)
The accuracy of the device position.
|
DevicePosition.Builder |
accuracy(PositionalAccuracy accuracy)
The accuracy of the device position.
|
DevicePosition.Builder |
deviceId(String deviceId)
The device whose position you retrieved.
|
DevicePosition.Builder |
position(Collection<Double> position)
The last known device position.
|
DevicePosition.Builder |
position(Double... position)
The last known device position.
|
DevicePosition.Builder |
positionProperties(Map<String,String> positionProperties)
The properties associated with the position.
|
DevicePosition.Builder |
receivedTime(Instant receivedTime)
The timestamp for when the tracker resource received the device position in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ. |
DevicePosition.Builder |
sampleTime(Instant sampleTime)
The timestamp at which the device's position was determined.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildDevicePosition.Builder accuracy(PositionalAccuracy accuracy)
The accuracy of the device position.
accuracy - The accuracy of the device position.default DevicePosition.Builder accuracy(Consumer<PositionalAccuracy.Builder> accuracy)
The accuracy of the device position.
This is a convenience that creates an instance of thePositionalAccuracy.Builder avoiding the need to
create one manually via PositionalAccuracy.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to accuracy(PositionalAccuracy).accuracy - a consumer that will call methods on PositionalAccuracy.Builderaccuracy(PositionalAccuracy)DevicePosition.Builder deviceId(String deviceId)
The device whose position you retrieved.
deviceId - The device whose position you retrieved.DevicePosition.Builder position(Collection<Double> position)
The last known device position.
position - The last known device position.DevicePosition.Builder position(Double... position)
The last known device position.
position - The last known device position.DevicePosition.Builder positionProperties(Map<String,String> positionProperties)
The properties associated with the position.
positionProperties - The properties associated with the position.DevicePosition.Builder receivedTime(Instant receivedTime)
The timestamp for when the tracker resource received the device position in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ.
receivedTime - The timestamp for when the tracker resource received the device position in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ.DevicePosition.Builder sampleTime(Instant sampleTime)
The timestamp at which the device's position was determined. Uses ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ.
sampleTime - The timestamp at which the device's position was determined. Uses ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ.Copyright © 2022. All rights reserved.