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
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
-
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.Builderavoiding the need to create one manually viaBatchGetDevicePositionError.builder().When the
Consumercompletes,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:
-
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.Builderavoiding the need to create one manually viaDevicePosition.builder().When the
Consumercompletes,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:
-