public final class S3BucketObjectPair extends Object
null,
this object identifies an S3 bucket. If both the bucket and the object property is null, the object
refers to the S3 base directory.
This class is thread-safe.
| Modifier and Type | Method and Description |
|---|---|
String |
getBucket()
Returns the name of the S3 bucket this object refers to.
|
String |
getObject()
Returns the name of the S3 object this object refers to.
|
boolean |
hasBucket()
Checks whether this object refers to an S3 bucket.
|
boolean |
hasObject()
Checks whether this object refers to an S3 object.
|
public String getBucket()
null if this object refers to the S3 base
directorypublic String getObject()
null if this object refers to an S3
bucketpublic boolean hasBucket()
true if this object refers to an S3 bucket, false otherwise
directorypublic boolean hasObject()
true if this object refers to an S3 object, false otherwiseCopyright © 2014 The Apache Software Foundation. All rights reserved.