Class DeleteTableOperation<T>
java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.internal.operations.DeleteTableOperation<T>
- All Implemented Interfaces:
CommonOperation<T,
,DeleteTableRequest, DeleteTableResponse, Void> TableOperation<T,
DeleteTableRequest, DeleteTableResponse, Void>
public class DeleteTableOperation<T>
extends Object
implements TableOperation<T,DeleteTableRequest,DeleteTableResponse,Void>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasyncServiceCall
(DynamoDbAsyncClient dynamoDbAsyncClient) Provides a function for making the low level non-blocking asynchronous SDK call to DynamoDb.static <T> DeleteTableOperation
<T> create()
generateRequest
(TableSchema<T> tableSchema, OperationContext operationContext, 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 SDK call to DynamoDb.transformResponse
(DeleteTableResponse response, TableSchema<T> tableSchema, OperationContext operationContext, 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.CommonOperation
execute, executeAsync
Methods inherited from interface software.amazon.awssdk.enhanced.dynamodb.internal.operations.TableOperation
executeOnPrimaryIndex, executeOnPrimaryIndexAsync
-
Constructor Details
-
DeleteTableOperation
public DeleteTableOperation()
-
-
Method Details
-
create
-
operationName
Description copied from interface:CommonOperation
The type, or name, of the operation.- Specified by:
operationName
in interfaceCommonOperation<T,
DeleteTableRequest, DeleteTableResponse, Void>
-
generateRequest
public DeleteTableRequest generateRequest(TableSchema<T> tableSchema, OperationContext operationContext, DynamoDbEnhancedClientExtension extension) Description copied from interface:CommonOperation
This method generates the request that needs to be sent to a low levelDynamoDbClient
.- Specified by:
generateRequest
in interfaceCommonOperation<T,
DeleteTableRequest, DeleteTableResponse, Void> - Parameters:
tableSchema
- ATableSchema
that maps the table to a modelled object.operationContext
- An object containing the context, or target, of the command execution.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.
-
serviceCall
Description copied from interface:CommonOperation
Provides a function for making the low level synchronous SDK call to DynamoDb.- Specified by:
serviceCall
in interfaceCommonOperation<T,
DeleteTableRequest, DeleteTableResponse, Void> - 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<DeleteTableRequest,CompletableFuture<DeleteTableResponse>> asyncServiceCall(DynamoDbAsyncClient dynamoDbAsyncClient) Description copied from interface:CommonOperation
Provides a function for making the low level non-blocking asynchronous SDK call to DynamoDb.- Specified by:
asyncServiceCall
in interfaceCommonOperation<T,
DeleteTableRequest, DeleteTableResponse, Void> - 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.
-
transformResponse
public Void transformResponse(DeleteTableResponse response, TableSchema<T> tableSchema, OperationContext operationContext, DynamoDbEnhancedClientExtension extension) Description copied from interface:CommonOperation
Takes the response object returned by the actual DynamoDb call and maps it into a higher level abstracted result object.- Specified by:
transformResponse
in interfaceCommonOperation<T,
DeleteTableRequest, DeleteTableResponse, Void> - Parameters:
response
- The response object returned by the DynamoDb call for this operation.tableSchema
- ATableSchema
that maps the table to a modelled object.operationContext
- An object containing the context, or target, of the command execution.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.
-