title: List objects with AWS S3 SDK for Java 2.x
body: <p>I have a bucket (<code>logs</code>) in Amazon S3 (<code>us-east-1</code>) with, unsurprisingly, logs, partitioned by application and date:</p>
  
  <pre><code>logs
  ├── peacekeepers
  │   └── year=2018
  │       ├── month=11
  │       │   ├── day=01
  │       │   ├── day=…
  │       │   └── day=30
  │       └── month=12
  │           ├── day=01
  │           ├── day=…
  │           └── day=19
  │               ├── 00:00 — 01:00.log
  │               ├── …
  │               └── 23:00 — 00:00.log
  ├── rep-hunters
  ├── retro-fans
  └── rubber-duckies
  </code></pre>
  
  <p>I want to list all the objects (logs) for a particular date, month, year…</p>
  
  <p>How do I do that with <a href="https://aws.amazon.com/blogs/developer/aws-sdk-for-java-2-x-released/" rel="nofollow noreferrer">AWS SDK for Java 2.x</a>?</p>