public static interface DevicePositionUpdate.Builder extends SdkPojo, CopyableBuilder<DevicePositionUpdate.Builder,DevicePositionUpdate>
| Modifier and Type | Method and Description |
|---|---|
default DevicePositionUpdate.Builder |
accuracy(Consumer<PositionalAccuracy.Builder> accuracy)
The accuracy of the device position.
|
DevicePositionUpdate.Builder |
accuracy(PositionalAccuracy accuracy)
The accuracy of the device position.
|
DevicePositionUpdate.Builder |
deviceId(String deviceId)
The device associated to the position update.
|
DevicePositionUpdate.Builder |
position(Collection<Double> position)
The latest device position defined in WGS 84
format:
[X or longitude, Y or latitude]. |
DevicePositionUpdate.Builder |
position(Double... position)
The latest device position defined in WGS 84
format:
[X or longitude, Y or latitude]. |
DevicePositionUpdate.Builder |
positionProperties(Map<String,String> positionProperties)
Associates one of more properties with the position update.
|
DevicePositionUpdate.Builder |
sampleTime(Instant sampleTime)
The timestamp at which the device's position was determined.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildDevicePositionUpdate.Builder accuracy(PositionalAccuracy accuracy)
The accuracy of the device position.
accuracy - The accuracy of the device position.default DevicePositionUpdate.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)DevicePositionUpdate.Builder deviceId(String deviceId)
The device associated to the position update.
deviceId - The device associated to the position update.DevicePositionUpdate.Builder position(Collection<Double> position)
The latest device position defined in WGS 84
format: [X or longitude, Y or latitude].
position - The latest device position defined in WGS
84 format: [X or longitude, Y or latitude].DevicePositionUpdate.Builder position(Double... position)
The latest device position defined in WGS 84
format: [X or longitude, Y or latitude].
position - The latest device position defined in WGS
84 format: [X or longitude, Y or latitude].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"
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"
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
sampleTime - The timestamp at which the device's position was determined. Uses ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZCopyright © 2022. All rights reserved.