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
Modifier and TypeMethodDescriptionaccuracy(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.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.services.location.model.LocationResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
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. Uses ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ.- Parameters:
receivedTime- The timestamp for when the tracker resource received the device position. 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
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.
-