Interface ListDevicePositionsResponseEntry.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ListDevicePositionsResponseEntry.Builder,ListDevicePositionsResponseEntry>,SdkBuilder<ListDevicePositionsResponseEntry.Builder,ListDevicePositionsResponseEntry>,SdkPojo
- Enclosing class:
- ListDevicePositionsResponseEntry
public static interface ListDevicePositionsResponseEntry.Builder extends SdkPojo, CopyableBuilder<ListDevicePositionsResponseEntry.Builder,ListDevicePositionsResponseEntry>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ListDevicePositionsResponseEntry.Builderaccuracy(Consumer<PositionalAccuracy.Builder> accuracy)The accuracy of the device position.ListDevicePositionsResponseEntry.Builderaccuracy(PositionalAccuracy accuracy)The accuracy of the device position.ListDevicePositionsResponseEntry.BuilderdeviceId(String deviceId)The ID of the device for this position.ListDevicePositionsResponseEntry.Builderposition(Double... position)The last known device position.ListDevicePositionsResponseEntry.Builderposition(Collection<Double> position)The last known device position.ListDevicePositionsResponseEntry.BuilderpositionProperties(Map<String,String> positionProperties)The properties associated with the position.ListDevicePositionsResponseEntry.BuildersampleTime(Instant sampleTime)The timestamp at which the device position was determined.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
deviceId
ListDevicePositionsResponseEntry.Builder deviceId(String deviceId)
The ID of the device for this position.
- Parameters:
deviceId- The ID of the device for this position.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sampleTime
ListDevicePositionsResponseEntry.Builder sampleTime(Instant sampleTime)
The timestamp at which the device position was determined. Uses ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ.- Parameters:
sampleTime- The timestamp at which the device 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.
-
position
ListDevicePositionsResponseEntry.Builder position(Collection<Double> position)
The last known device position. Empty if no positions currently stored.
- Parameters:
position- The last known device position. Empty if no positions currently stored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
position
ListDevicePositionsResponseEntry.Builder position(Double... position)
The last known device position. Empty if no positions currently stored.
- Parameters:
position- The last known device position. Empty if no positions currently stored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accuracy
ListDevicePositionsResponseEntry.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.
-
accuracy
default ListDevicePositionsResponseEntry.Builder accuracy(Consumer<PositionalAccuracy.Builder> 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:
accuracy(PositionalAccuracy)
-
positionProperties
ListDevicePositionsResponseEntry.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.
-
-