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

public class GetItemBuilder<T> extends AbstractGetItemBuilder<T, GetItemBuilder<T>>
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.
  • 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 new GetItemBuilder for the given table and key.
      Parameters:
      table - the DynamoDB table
      partitionKey - the partition key value
      sortKey - the sort key value (may be null if the table has no sort key)
      dynamoDbClient - the low-level DynamoDB client (used for projection fallback)
  • Method Details