title: DynamoDB QueryRequest with automatic pagination?
body: <p>I have a table <code>FOO</code> which has objects which are of type either <code>Bar</code> or <code>Baz</code>. I'd like to query all records of the table with pagination handled automatically. <code>DynamoDBMapper.query(Class&lt;T&gt; clazz, DynamoDBQueryExpression&lt;T&gt; queryExpression)</code>, handles pagination automatically but requires passing in a specific domain object like <code>Bar</code> or <code>Baz</code>. <code>AmazonDynamoDB.query(QueryRequest queryRequest)</code> returns generic <code>Map&lt;String, AttributeValue&gt;</code> results which can later be marshalled into the correct <code>Bar</code> or <code>Baz</code> type based on a discriminator field, but only a single page is returned and fetching all results requires manually checking and setting <code>lastKeyEvaluated</code>.</p>
  <p>Is there a way to get generic <code>Map&lt;String, AttributeValue&gt;</code> results without having to handle pagination manually?</p>
  <p>Related:</p>
  <ul>
  <li><a href="https://stackoverflow.com/questions/71932685/dynamodbmapper-on-a-table-containing-multiple-java-types">DynamoDBMapper on a table containing multiple Java types</a></li>
  <li><a href="https://stackoverflow.com/questions/32788959/pagination-with-dynamodbmapper-java-aws-sdk">Pagination with DynamoDBMapper Java AWS SDK</a></li>
  </ul>