Interface BatchGetDevicePositionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<BatchGetDevicePositionResponse.Builder,
,BatchGetDevicePositionResponse> LocationResponse.Builder
,SdkBuilder<BatchGetDevicePositionResponse.Builder,
,BatchGetDevicePositionResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
BatchGetDevicePositionResponse
-
Method Summary
Modifier and TypeMethodDescriptiondevicePositions
(Collection<DevicePosition> devicePositions) Contains device position details such as the device ID, position, and timestamps for when the position was received and sampled.devicePositions
(Consumer<DevicePosition.Builder>... devicePositions) Contains device position details such as the device ID, position, and timestamps for when the position was received and sampled.devicePositions
(DevicePosition... devicePositions) Contains device position details such as the device ID, position, and timestamps for when the position was received and sampled.errors
(Collection<BatchGetDevicePositionError> errors) Contains error details for each device that failed to send its position to the tracker resource.errors
(Consumer<BatchGetDevicePositionError.Builder>... errors) Contains error details for each device that failed to send its position to the tracker resource.errors
(BatchGetDevicePositionError... errors) Contains error details for each device that failed to send its position to the tracker resource.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 Details
-
devicePositions
Contains device position details such as the device ID, position, and timestamps for when the position was received and sampled.
- Parameters:
devicePositions
- Contains device position details such as the device ID, position, and timestamps for when the position was received and sampled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
devicePositions
Contains device position details such as the device ID, position, and timestamps for when the position was received and sampled.
- Parameters:
devicePositions
- Contains device position details such as the device ID, position, and timestamps for when the position was received and sampled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
devicePositions
BatchGetDevicePositionResponse.Builder devicePositions(Consumer<DevicePosition.Builder>... devicePositions) Contains device position details such as the device ID, position, and timestamps for when the position was received and sampled.
This is a convenience method that creates an instance of theDevicePosition.Builder
avoiding the need to create one manually viaDevicePosition.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todevicePositions(List<DevicePosition>)
.- Parameters:
devicePositions
- a consumer that will call methods onDevicePosition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
errors
Contains error details for each device that failed to send its position to the tracker resource.
- Parameters:
errors
- Contains error details for each device that failed to send its position to the tracker resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
Contains error details for each device that failed to send its position to the tracker resource.
- Parameters:
errors
- Contains error details for each device that failed to send its position to the tracker resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
BatchGetDevicePositionResponse.Builder errors(Consumer<BatchGetDevicePositionError.Builder>... errors) Contains error details for each device that failed to send its position to the tracker resource.
This is a convenience method that creates an instance of theBatchGetDevicePositionError.Builder
avoiding the need to create one manually viaBatchGetDevicePositionError.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toerrors(List<BatchGetDevicePositionError>)
.- Parameters:
errors
- a consumer that will call methods onBatchGetDevicePositionError.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-