Class AsyncDeleteBuilder<T>
java.lang.Object
dev.hogwai.dynamodb.simplified.builder.base.AbstractDeleteBuilder<T, AsyncDeleteBuilder<T>>
dev.hogwai.dynamodb.simplified.async.AsyncDeleteBuilder<T>
- Type Parameters:
T- the type of the item
Async fluent builder for deleting an item from a DynamoDB table by its key,
with an optional condition expression. Part of the DynamoDB Simplified library.
-
Field Summary
Fields inherited from class AbstractDeleteBuilder
conditionExpression, LOG, partitionKey, returnValues, sortKey -
Method Summary
Modifier and TypeMethodDescription@NonNull CompletableFuture<Optional<T>> execute()Executes the delete operation and returns the deleted item.protected AsyncDeleteBuilder<T> self()Returnsthistyped asSfor fluent chaining.protected @NonNull StringReturns the DynamoDB table name.Methods inherited from class AbstractDeleteBuilder
buildEnhancedRequest, buildKeyMap, buildLowLevelRequest, condition, condition, onlyIfExists, returnValues
-
Method Details
-
self
Description copied from class:AbstractDeleteBuilderReturnsthistyped asSfor fluent chaining.- Specified by:
selfin classAbstractDeleteBuilder<T, AsyncDeleteBuilder<T>>- Returns:
- this builder
-
tableName
Description copied from class:AbstractDeleteBuilderReturns the DynamoDB table name.- Specified by:
tableNamein classAbstractDeleteBuilder<T, AsyncDeleteBuilder<T>>- Returns:
- the DynamoDB table name
-
execute
Executes the delete operation and returns the deleted item.- Returns:
- a
CompletableFuturecontaining the deleted item, or empty
-