public abstract class Item extends Object
ListBucketResultV1
, ListBucketResultV2
and ListVersionsResult
.Constructor and Description |
---|
Item() |
Item(String prefix)
Constructs a new Item for prefix i.e.
|
Modifier and Type | Method and Description |
---|---|
String |
etag()
Returns ETag of the object.
|
boolean |
isDeleteMarker()
Returns whether this item is a delete marker or not.
|
boolean |
isDir()
Returns whether this item is a directory or not.
|
boolean |
isLatest()
Returns whether this version ID is latest.
|
ZonedDateTime |
lastModified()
Returns last modified time of the object.
|
String |
objectName()
Returns object name.
|
Owner |
owner()
Returns owner object of given the object.
|
void |
setEncodingType(String encodingType) |
long |
size()
Returns object size.
|
String |
storageClass()
Returns storage class of the object.
|
Map<String,String> |
userMetadata()
Returns user metadata.
|
String |
userTags() |
String |
versionId()
Returns version ID.
|
public Item()
public Item(String prefix)
public void setEncodingType(String encodingType)
public String objectName()
public ZonedDateTime lastModified()
public String etag()
public long size()
public String storageClass()
public Owner owner()
public Map<String,String> userMetadata()
public String userTags()
public boolean isLatest()
public String versionId()
public boolean isDir()
public boolean isDeleteMarker()