Class TransactWriteItemsOperation
- java.lang.Object
-
- software.amazon.awssdk.enhanced.dynamodb.internal.operations.TransactWriteItemsOperation
-
- All Implemented Interfaces:
DatabaseOperation<TransactWriteItemsRequest,TransactWriteItemsResponse,TransactWriteItemsEnhancedResponse>
public class TransactWriteItemsOperation extends Object implements DatabaseOperation<TransactWriteItemsRequest,TransactWriteItemsResponse,TransactWriteItemsEnhancedResponse>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Function<TransactWriteItemsRequest,CompletableFuture<TransactWriteItemsResponse>>asyncServiceCall(DynamoDbAsyncClient dynamoDbAsyncClient)Provides a function for making the low level non-blocking asynchronous SDK call to DynamoDb.static TransactWriteItemsOperationcreate(TransactWriteItemsEnhancedRequest request)TransactWriteItemsRequestgenerateRequest(DynamoDbEnhancedClientExtension extension)This method generates the request that needs to be sent to a low levelDynamoDbClient.OperationNameoperationName()The type, or name, of the operation.Function<TransactWriteItemsRequest,TransactWriteItemsResponse>serviceCall(DynamoDbClient dynamoDbClient)Provides a function for making the low level synchronous SDK call to DynamoDb.TransactWriteItemsEnhancedResponsetransformResponse(TransactWriteItemsResponse 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.enhanced.dynamodb.internal.operations.DatabaseOperation
execute, executeAsync
-
-
-
-
Method Detail
-
create
public static TransactWriteItemsOperation create(TransactWriteItemsEnhancedRequest request)
-
operationName
public OperationName operationName()
Description copied from interface:DatabaseOperationThe type, or name, of the operation.- Specified by:
operationNamein interfaceDatabaseOperation<TransactWriteItemsRequest,TransactWriteItemsResponse,TransactWriteItemsEnhancedResponse>
-
generateRequest
public TransactWriteItemsRequest generateRequest(DynamoDbEnhancedClientExtension extension)
Description copied from interface:DatabaseOperationThis method generates the request that needs to be sent to a low levelDynamoDbClient.- Specified by:
generateRequestin interfaceDatabaseOperation<TransactWriteItemsRequest,TransactWriteItemsResponse,TransactWriteItemsEnhancedResponse>- Parameters:
extension- ADynamoDbEnhancedClientExtensionthat 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
DynamoDbClientcall to perform the operation.
-
transformResponse
public TransactWriteItemsEnhancedResponse transformResponse(TransactWriteItemsResponse response, DynamoDbEnhancedClientExtension extension)
Description copied from interface:DatabaseOperationTakes the response object returned by the actual DynamoDb call and maps it into a higher level abstracted result object.- Specified by:
transformResponsein interfaceDatabaseOperation<TransactWriteItemsRequest,TransactWriteItemsResponse,TransactWriteItemsEnhancedResponse>- Parameters:
response- The response object returned by the DynamoDb call for this operation.extension- ADynamoDbEnhancedClientExtensionthat 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<TransactWriteItemsRequest,TransactWriteItemsResponse> serviceCall(DynamoDbClient dynamoDbClient)
Description copied from interface:DatabaseOperationProvides a function for making the low level synchronous SDK call to DynamoDb.- Specified by:
serviceCallin interfaceDatabaseOperation<TransactWriteItemsRequest,TransactWriteItemsResponse,TransactWriteItemsEnhancedResponse>- Parameters:
dynamoDbClient- A low levelDynamoDbClientto make the call against.- Returns:
- A function that calls DynamoDb with a provided request object and returns the response object.
-
asyncServiceCall
public Function<TransactWriteItemsRequest,CompletableFuture<TransactWriteItemsResponse>> asyncServiceCall(DynamoDbAsyncClient dynamoDbAsyncClient)
Description copied from interface:DatabaseOperationProvides a function for making the low level non-blocking asynchronous SDK call to DynamoDb.- Specified by:
asyncServiceCallin interfaceDatabaseOperation<TransactWriteItemsRequest,TransactWriteItemsResponse,TransactWriteItemsEnhancedResponse>- Parameters:
dynamoDbAsyncClient- A low levelDynamoDbAsyncClientto make the call against.- Returns:
- A function that calls DynamoDb with a provided request object and returns a
CompletableFuturefor the response object.
-
-