Class GetItemBuilder<T>
java.lang.Object
dev.hogwai.dynamodb.simplified.builder.base.AbstractGetItemBuilder<T, GetItemBuilder<T>>
dev.hogwai.dynamodb.simplified.builder.GetItemBuilder<T>
- Type Parameters:
T- the type of the item
A fluent builder for retrieving an item from a DynamoDB table by its key,
with optional projection and consistent read settings. Part of the DynamoDB Simplified library.
-
Field Summary
Fields inherited from class AbstractGetItemBuilder
consistentRead, partitionKey, projectionExpression, sortKey -
Constructor Summary
ConstructorsConstructorDescriptionGetItemBuilder(@NonNull software.amazon.awssdk.enhanced.dynamodb.DynamoDbTable<T> table, @NonNull Object partitionKey, @Nullable Object sortKey, @NonNull software.amazon.awssdk.services.dynamodb.DynamoDbClient dynamoDbClient) Constructs a newGetItemBuilderfor the given table and key. -
Method Summary
Methods inherited from class AbstractGetItemBuilder
buildEnhancedRequest, buildKeyMap, buildLowLevelRequest, consistentRead, project, project
-
Constructor Details
-
GetItemBuilder
public GetItemBuilder(@NonNull software.amazon.awssdk.enhanced.dynamodb.DynamoDbTable<T> table, @NonNull Object partitionKey, @Nullable Object sortKey, @NonNull software.amazon.awssdk.services.dynamodb.DynamoDbClient dynamoDbClient) Constructs a newGetItemBuilderfor the given table and key.- Parameters:
table- the DynamoDB tablepartitionKey- the partition key valuesortKey- the sort key value (may benullif the table has no sort key)dynamoDbClient- the low-level DynamoDB client (used for projection fallback)
-
-
Method Details
-
self
Description copied from class:AbstractGetItemBuilderReturnsthistyped asSfor fluent chaining.- Specified by:
selfin classAbstractGetItemBuilder<T, GetItemBuilder<T>>- Returns:
- this builder
-
tableName
Description copied from class:AbstractGetItemBuilderReturns the DynamoDB table name.- Specified by:
tableNamein classAbstractGetItemBuilder<T, GetItemBuilder<T>>- Returns:
- the DynamoDB table name
-
execute
-