Interface GetDevicePositionResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetDevicePositionResponse.Builder,GetDevicePositionResponse>,LocationResponse.Builder,SdkBuilder<GetDevicePositionResponse.Builder,GetDevicePositionResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetDevicePositionResponse
public static interface GetDevicePositionResponse.Builder extends LocationResponse.Builder, SdkPojo, CopyableBuilder<GetDevicePositionResponse.Builder,GetDevicePositionResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GetDevicePositionResponse.Builderaccuracy(Consumer<PositionalAccuracy.Builder> accuracy)The accuracy of the device position.GetDevicePositionResponse.Builderaccuracy(PositionalAccuracy accuracy)The accuracy of the device position.GetDevicePositionResponse.BuilderdeviceId(String deviceId)The device whose position you retrieved.GetDevicePositionResponse.Builderposition(Double... position)The last known device position.GetDevicePositionResponse.Builderposition(Collection<Double> position)The last known device position.GetDevicePositionResponse.BuilderpositionProperties(Map<String,String> positionProperties)The properties associated with the position.GetDevicePositionResponse.BuilderreceivedTime(Instant receivedTime)The timestamp for when the tracker resource received the device position in ISO 8601 format:YYYY-MM-DDThh:mm:ss.sssZ.GetDevicePositionResponse.BuildersampleTime(Instant sampleTime)The timestamp at which the device's position was determined.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.location.model.LocationResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
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.
-
accuracy
default GetDevicePositionResponse.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)
-
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.
-
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.
-
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.
-
receivedTime
GetDevicePositionResponse.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.- 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.
-
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.
-
-