限定符和类型 | 字段和说明 |
---|---|
protected String |
bucketName
The name of the bucket in which this object is stored
|
protected String |
contentType
文件的mime type
|
protected String |
eTag
Hex encoded MD5 hash of this object's contents, as computed by Amazon S3
|
protected Date |
expiration
文件过期时间
|
protected String |
key
The key under which this object is stored
|
protected Date |
lastModified
The date, according to Amazon S3, when this object was last modified
|
protected Owner |
owner
The owner of this object - can be null if the requester doesn't have
permission to view object ownership information
|
protected String |
sha1
文件内容的sha1值
|
protected long |
size
The size of this object, in bytes
|
构造器和说明 |
---|
S3ObjectSummary(Map<String,Object> jsonMap)
Create S3ObjectSummary from json map
{
"SHA1": "4a09518d3c402d0a444e2f6c964a1b5xxxxxx",
"Name": "/aaa/file.txt",
"Expiration-Time": null,
"Last-Modified": "Mon, 31 Mar 2014 08:53:41 UTC",
"Owner": "SINA000000100xxxxxx",
"MD5": "49c60d1ef444d46939xxxxxxxxxx",
"Content-Type": "text/plain",
"Size": 48
},
|
限定符和类型 | 方法和说明 |
---|---|
String |
getBucketName()
Gets the name of the Amazon S3 bucket in which this object is stored.
|
String |
getContentType() |
String |
getETag()
Gets the hex encoded 128-bit MD5 hash of this object's contents as
computed by Amazon S3.
|
Date |
getExpiration() |
String |
getKey()
Gets the key under which this object is stored in Amazon S3.
|
Date |
getLastModified()
Gets the date when, according to Amazon S3, this object
was last modified.
|
Owner |
getOwner()
Gets the owner of this object.
|
String |
getSha1() |
long |
getSize()
Gets the size of this object in bytes.
|
void |
setBucketName(String bucketName)
Sets the name of the Amazon S3 bucket in which this object is stored.
|
void |
setContentType(String contentType) |
void |
setETag(String eTag)
Sets the hex encoded 128-bit MD5 hash of this object's contents as
computed by Amazon S3.
|
void |
setExpiration(Date expiration) |
void |
setKey(String key)
Sets the key under which this object is stored in Amazon S3.
|
void |
setLastModified(Date lastModified)
Sets the date, according to Amazon S3, this object
was last modified.
|
void |
setOwner(Owner owner)
Sets the owner of this object.
|
void |
setSha1(String sha1) |
void |
setSize(long size)
Sets the size of this object in bytes.
|
String |
toString() |
protected String sha1
protected Date expiration
protected String contentType
protected String bucketName
protected String key
protected String eTag
protected long size
protected Date lastModified
protected Owner owner
public S3ObjectSummary(Map<String,Object> jsonMap)
jsonMap
- public String getSha1()
public void setSha1(String sha1)
public Date getExpiration()
public void setExpiration(Date expiration)
public String getContentType()
public void setContentType(String contentType)
public String getBucketName()
setBucketName(String)
public void setBucketName(String bucketName)
bucketName
- The name of the Amazon S3 bucket in which this object is
stored.getBucketName()
public String getKey()
setKey(String)
public void setKey(String key)
key
- The key under which this object is stored in Amazon S3.getKey()
public String getETag()
setETag(String)
public void setETag(String eTag)
eTag
- The hex encoded 128-bit MD5 hash of this object's contents as
computed by Amazon S3.getETag()
public long getSize()
3ObjectSummary#setSize(long)
public void setSize(long size)
size
- The size of this object in bytes.getSize()
public Date getLastModified()
setLastModified(Date)
public void setLastModified(Date lastModified)
lastModified
- The date when, according to Amazon S3, this object
was last modified.getLastModified()
public Owner getOwner()
null
if the requester doesn't have
Permission.ReadAcp
permission for this object or owns the bucket
in which it resides.null
if the requester doesn't have
permission to see object ownership.setOwner(Owner)
public void setOwner(Owner owner)
owner
- The owner of this object.getOwner()
Copyright © 2016. All rights reserved.