for ( S3VersionSummary summary : S3Versions.forPrefix(s3, "my-bucket", "photos/") ) { System.out.printf("Version '%s' of key '%s'\n", summary.getVersionId(), summary.getKey()); }
The list of {@link S3VersionSummary}s will be fetched lazily, a page at a time, as they are needed. The size of the page can be controlled with the {@link S3Versions#withBatchSize(int)} method.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|