public class S3ListResult extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
S3ListResult(com.amazonaws.services.s3.model.ObjectListing v1,
com.amazonaws.services.s3.model.ListObjectsV2Result v2) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getCommonPrefixes() |
List<com.amazonaws.services.s3.model.S3ObjectSummary> |
getObjectSummaries() |
com.amazonaws.services.s3.model.ObjectListing |
getV1() |
com.amazonaws.services.s3.model.ListObjectsV2Result |
getV2() |
boolean |
hasPrefixesOrObjects()
Does this listing have prefixes or objects?
|
boolean |
isTruncated() |
boolean |
isV1()
Is this a v1 API result or v2?
|
void |
logAtDebug(org.slf4j.Logger log)
Dump the result at debug level.
|
boolean |
representsEmptyDirectory(String dirKey)
Does this listing represent an empty directory?
|
static S3ListResult |
v1(com.amazonaws.services.s3.model.ObjectListing result)
Restricted constructors to ensure v1 or v2, not both.
|
static S3ListResult |
v2(com.amazonaws.services.s3.model.ListObjectsV2Result result)
Restricted constructors to ensure v1 or v2, not both.
|
protected S3ListResult(com.amazonaws.services.s3.model.ObjectListing v1,
com.amazonaws.services.s3.model.ListObjectsV2Result v2)
public static S3ListResult v1(com.amazonaws.services.s3.model.ObjectListing result)
result - v1 resultpublic static S3ListResult v2(com.amazonaws.services.s3.model.ListObjectsV2Result result)
result - v2 resultpublic boolean isV1()
public com.amazonaws.services.s3.model.ObjectListing getV1()
public com.amazonaws.services.s3.model.ListObjectsV2Result getV2()
public List<com.amazonaws.services.s3.model.S3ObjectSummary> getObjectSummaries()
public boolean isTruncated()
public boolean hasPrefixesOrObjects()
public boolean representsEmptyDirectory(String dirKey)
dirKey - directory keypublic void logAtDebug(org.slf4j.Logger log)
log - log to useCopyright © 2008–2023 Apache Software Foundation. All rights reserved.