code: private ListObjectsV2Result getObjectListingChunk(ListObjectsV2Request request)
        throws IOException {
      ListObjectsV2Result result;
      try {
        // Query S3 for the next batch of objects.
        result = mClient.listObjectsV2(request);
        // Advance the request continuation token to the next set of objects.
        request.setContinuationToken(result.getNextContinuationToken());
      } catch (AmazonClientException e) {
        throw new IOException(e);
      }
      return result;
    }
docs: Get next chunk of listing result.