-
- All Implemented Interfaces:
-
org.veupathdb.lib.s3.s34k.S3Response,org.veupathdb.lib.s3.s34k.objects.ObjectResponse
public interface S3Object implements ObjectResponse
S3 Object
Represents a single object in an S3 store and provides methods and properties for operating on the object and its tags.
-
-
Method Summary
Modifier and Type Method Description abstract Booleanexists()Tests whether this object still exists. abstract Booleanexists(Function1<ObjectExistsParams, Unit> action)Tests whether this object still exists. abstract Booleanexists(ObjectExistsParams params)Tests whether this object still exists. abstract Unitdelete()Deletes the current object. abstract Unitdelete(Function1<DeleteParams, Unit> action)Deletes the current object. abstract Unitdelete(DeleteParams params)Deletes the current object. abstract ObjectMetastat()Fetches metadata for this object. abstract ObjectMetastat(Function1<ObjectStatParams, Unit> action)Fetches metadata for this object. abstract ObjectMetastat(ObjectStatParams params)Fetches metadata for this object. abstract OffsetDateTimegetLastModified()Object last modified/created timestamp. abstract StringgetETag()Object ETag value. abstract ObjectTagContainergetTags()Object tag management container. abstract StringgetBaseName()Returns the base name of this object, or in other words, the last segment of the path. abstract StringgetDirName()Returns the 'directory' parent of this object. -
Methods inherited from class org.veupathdb.lib.s3.s34k.objects.ObjectResponse
getPath -
Methods inherited from class org.veupathdb.lib.s3.s34k.S3Response
getBucket, getHeaders, getRegion -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
exists
abstract Boolean exists(Function1<ObjectExistsParams, Unit> action)
Tests whether this object still exists.
-
exists
abstract Boolean exists(ObjectExistsParams params)
Tests whether this object still exists.
-
delete
abstract Unit delete(Function1<DeleteParams, Unit> action)
Deletes the current object.
- Parameters:
action- Action used to configure the backing S3 operation.
-
delete
abstract Unit delete(DeleteParams params)
Deletes the current object.
- Parameters:
params- Parameters for the backing S3 operation.
-
stat
abstract ObjectMeta stat()
Fetches metadata for this object.
If this object no longer exists,
nullwill be returned.
-
stat
abstract ObjectMeta stat(Function1<ObjectStatParams, Unit> action)
Fetches metadata for this object.
If this object no longer exists,
nullwill be returned.- Parameters:
action- Action used to configure the backing S3 operation.
-
stat
abstract ObjectMeta stat(ObjectStatParams params)
Fetches metadata for this object.
If this object no longer exists,
nullwill be returned.- Parameters:
params- Parameters for the backing S3 operation.
-
getLastModified
abstract OffsetDateTime getLastModified()
Object last modified/created timestamp.
This value will not be present on responses from object puts.
-
getTags
abstract ObjectTagContainer getTags()
Object tag management container.
-
getBaseName
abstract String getBaseName()
Returns the base name of this object, or in other words, the last segment of the path.
Examples:
Given the object path
foo/bar/fizz/buzzthe base name would be"buzz"Given the object path
foothe base name would be"foo"
-
getDirName
abstract String getDirName()
Returns the 'directory' parent of this object.
If this path is a root level object, the returned dirName will be blank.
Examples:
Given the object path
foo/bar/fizz/buzzthe dir name would be"foo/bar/fizz".Given the object path
foo, the dir name would be"".
-
-
-
-