public class S3ListResult extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
S3ListResult(software.amazon.awssdk.services.s3.model.ListObjectsResponse v1,
software.amazon.awssdk.services.s3.model.ListObjectsV2Response v2) |
| Modifier and Type | Method and Description |
|---|---|
List<software.amazon.awssdk.services.s3.model.CommonPrefix> |
getCommonPrefixes() |
List<software.amazon.awssdk.services.s3.model.S3Object> |
getS3Objects() |
software.amazon.awssdk.services.s3.model.ListObjectsResponse |
getV1() |
software.amazon.awssdk.services.s3.model.ListObjectsV2Response |
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(software.amazon.awssdk.services.s3.model.ListObjectsResponse result)
Restricted constructors to ensure v1 or v2, not both.
|
static S3ListResult |
v2(software.amazon.awssdk.services.s3.model.ListObjectsV2Response result)
Restricted constructors to ensure v1 or v2, not both.
|
protected S3ListResult(software.amazon.awssdk.services.s3.model.ListObjectsResponse v1,
software.amazon.awssdk.services.s3.model.ListObjectsV2Response v2)
public static S3ListResult v1(software.amazon.awssdk.services.s3.model.ListObjectsResponse result)
result - v1 resultpublic static S3ListResult v2(software.amazon.awssdk.services.s3.model.ListObjectsV2Response result)
result - v2 resultpublic boolean isV1()
public software.amazon.awssdk.services.s3.model.ListObjectsResponse getV1()
public software.amazon.awssdk.services.s3.model.ListObjectsV2Response getV2()
public List<software.amazon.awssdk.services.s3.model.S3Object> getS3Objects()
public boolean isTruncated()
public List<software.amazon.awssdk.services.s3.model.CommonPrefix> getCommonPrefixes()
public boolean hasPrefixesOrObjects()
public boolean representsEmptyDirectory(String dirKey)
dirKey - directory keypublic void logAtDebug(org.slf4j.Logger log)
log - log to useCopyright © 2008–2024 Apache Software Foundation. All rights reserved.