Class BatchGetItemOperation
java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.internal.operations.BatchGetItemOperation
- All Implemented Interfaces:
PaginatedDatabaseOperation<BatchGetItemRequest,
BatchGetItemResponse, BatchGetResultPage>
public class BatchGetItemOperation
extends Object
implements PaginatedDatabaseOperation<BatchGetItemRequest,BatchGetItemResponse,BatchGetResultPage>
-
Method Summary
Modifier and TypeMethodDescriptionasyncServiceCall
(DynamoDbAsyncClient dynamoDbAsyncClient) Provides a function for making the low level non-blocking asynchronous paginated SDK call to DynamoDb.static BatchGetItemOperation
create
(BatchGetItemEnhancedRequest request) generateRequest
(DynamoDbEnhancedClientExtension extension) This method generates the request that needs to be sent to a low levelDynamoDbClient
.The type, or name, of the operation.serviceCall
(DynamoDbClient dynamoDbClient) Provides a function for making the low level synchronous paginated SDK call to DynamoDb.transformResponse
(BatchGetItemResponse response, DynamoDbEnhancedClientExtension extension) Takes the response object returned by the actual DynamoDb call and maps it into a higher level abstracted result object.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.awssdk.enhanced.dynamodb.internal.operations.PaginatedDatabaseOperation
execute, executeAsync
-
Method Details
-
create
-
operationName
Description copied from interface:PaginatedDatabaseOperation
The type, or name, of the operation.- Specified by:
operationName
in interfacePaginatedDatabaseOperation<BatchGetItemRequest,
BatchGetItemResponse, BatchGetResultPage>
-
generateRequest
Description copied from interface:PaginatedDatabaseOperation
This method generates the request that needs to be sent to a low levelDynamoDbClient
.- Specified by:
generateRequest
in interfacePaginatedDatabaseOperation<BatchGetItemRequest,
BatchGetItemResponse, BatchGetResultPage> - Parameters:
extension
- ADynamoDbEnhancedClientExtension
that may modify the request of this operation. A null value here will result in no modifications.- Returns:
- A request that can be used as an argument to a
DynamoDbClient
call to perform the operation.
-
transformResponse
public BatchGetResultPage transformResponse(BatchGetItemResponse response, DynamoDbEnhancedClientExtension extension) Description copied from interface:PaginatedDatabaseOperation
Takes the response object returned by the actual DynamoDb call and maps it into a higher level abstracted result object.- Specified by:
transformResponse
in interfacePaginatedDatabaseOperation<BatchGetItemRequest,
BatchGetItemResponse, BatchGetResultPage> - Parameters:
response
- The response object returned by the DynamoDb call for this operation.extension
- ADynamoDbEnhancedClientExtension
that may modify the result of this operation. A null value here will result in no modifications.- Returns:
- A high level result object as specified by the implementation of this operation.
-
serviceCall
public Function<BatchGetItemRequest,SdkIterable<BatchGetItemResponse>> serviceCall(DynamoDbClient dynamoDbClient) Description copied from interface:PaginatedDatabaseOperation
Provides a function for making the low level synchronous paginated SDK call to DynamoDb.- Specified by:
serviceCall
in interfacePaginatedDatabaseOperation<BatchGetItemRequest,
BatchGetItemResponse, BatchGetResultPage> - Parameters:
dynamoDbClient
- A low levelDynamoDbClient
to make the call against.- Returns:
- A function that calls DynamoDb with a provided request object and returns the response object.
-
asyncServiceCall
public Function<BatchGetItemRequest,SdkPublisher<BatchGetItemResponse>> asyncServiceCall(DynamoDbAsyncClient dynamoDbAsyncClient) Description copied from interface:PaginatedDatabaseOperation
Provides a function for making the low level non-blocking asynchronous paginated SDK call to DynamoDb.- Specified by:
asyncServiceCall
in interfacePaginatedDatabaseOperation<BatchGetItemRequest,
BatchGetItemResponse, BatchGetResultPage> - Parameters:
dynamoDbAsyncClient
- A low levelDynamoDbAsyncClient
to make the call against.- Returns:
- A function that calls DynamoDb with a provided request object and returns the response object.
-