Interface BatchGetDevicePositionResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<BatchGetDevicePositionResponse.Builder,BatchGetDevicePositionResponse>,LocationResponse.Builder,SdkBuilder<BatchGetDevicePositionResponse.Builder,BatchGetDevicePositionResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- BatchGetDevicePositionResponse
public static interface BatchGetDevicePositionResponse.Builder extends LocationResponse.Builder, SdkPojo, CopyableBuilder<BatchGetDevicePositionResponse.Builder,BatchGetDevicePositionResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BatchGetDevicePositionResponse.BuilderdevicePositions(Collection<DevicePosition> devicePositions)Contains device position details such as the device ID, position, and timestamps for when the position was received and sampled.BatchGetDevicePositionResponse.BuilderdevicePositions(Consumer<DevicePosition.Builder>... devicePositions)Contains device position details such as the device ID, position, and timestamps for when the position was received and sampled.BatchGetDevicePositionResponse.BuilderdevicePositions(DevicePosition... devicePositions)Contains device position details such as the device ID, position, and timestamps for when the position was received and sampled.BatchGetDevicePositionResponse.Buildererrors(Collection<BatchGetDevicePositionError> errors)Contains error details for each device that failed to send its position to the tracker resource.BatchGetDevicePositionResponse.Buildererrors(Consumer<BatchGetDevicePositionError.Builder>... errors)Contains error details for each device that failed to send its position to the tracker resource.BatchGetDevicePositionResponse.Buildererrors(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 Detail
-
errors
BatchGetDevicePositionResponse.Builder errors(Collection<BatchGetDevicePositionError> 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(BatchGetDevicePositionError... 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 to#errors(List.) - 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:
#errors(java.util.Collection)
-
devicePositions
BatchGetDevicePositionResponse.Builder devicePositions(Collection<DevicePosition> 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(DevicePosition... 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 to#devicePositions(List.) - 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:
#devicePositions(java.util.Collection)
-
-