Interface DevicePosition.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<DevicePosition.Builder,,DevicePosition> SdkBuilder<DevicePosition.Builder,,DevicePosition> SdkPojo
- Enclosing class:
DevicePosition
public static interface DevicePosition.Builder
extends SdkPojo, CopyableBuilder<DevicePosition.Builder,DevicePosition>
-
Method Summary
Modifier and TypeMethodDescriptiondefault DevicePosition.Builderaccuracy(Consumer<PositionalAccuracy.Builder> accuracy) The accuracy of the device position.accuracy(PositionalAccuracy accuracy) The accuracy of the device position.The device whose position you retrieved.The last known device position.position(Collection<Double> position) The last known device position.positionProperties(Map<String, String> positionProperties) The properties associated with the position.receivedTime(Instant receivedTime) The timestamp for when the tracker resource received the device position in ISO 8601 format:YYYY-MM-DDThh:mm:ss.sssZ.sampleTime(Instant sampleTime) The timestamp at which the device's position was determined.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
The timestamp for when the tracker resource received the device position in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ.- Parameters:
receivedTime- The timestamp for when the tracker resource received the device position in 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
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
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
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.
-
accuracy
The accuracy of the device position.
This is a convenience method that creates an instance of thePositionalAccuracy.Builderavoiding the need to create one manually viaPositionalAccuracy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaccuracy(PositionalAccuracy).- Parameters:
accuracy- a consumer that will call methods onPositionalAccuracy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-