public class ObsObject extends S3Object
bucketName, GLACIER, metadata, objectContent, objectKey, owner, STANDARD, STANDARD_IA| 构造器和说明 |
|---|
ObsObject() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getBucketName()
Obtain the name of the bucket to which the object belongs.
|
ObjectMetadata |
getMetadata()
Obtain the object properties, including "content-type", "content-length",
and customized metadata.
|
InputStream |
getObjectContent()
Obtain the data stream of the object.
|
String |
getObjectKey()
Obtain the object name.
|
Owner |
getOwner()
Obtain the owner of the object.
|
void |
setBucketName(String bucketName)
Set the bucket to which the object belongs.
|
void |
setMetadata(ObjectMetadata metadata)
Set the object properties, including "content-type", "content-length",
and customized metadata.
|
void |
setObjectContent(InputStream objectContent)
Set the data stream of the object.
|
void |
setObjectKey(String objectKey)
Set the object name.
|
void |
setOwner(Owner owner)
Set the owner of the object.
|
String |
toString() |
public String getBucketName()
getBucketName 在类中 S3Objectpublic void setBucketName(String bucketName)
setBucketName 在类中 S3ObjectbucketName - Name of the bucket to which the object belongspublic String getObjectKey()
getObjectKey 在类中 S3Objectpublic void setObjectKey(String objectKey)
setObjectKey 在类中 S3ObjectobjectKey - Object namepublic ObjectMetadata getMetadata()
getMetadata 在类中 S3Objectpublic void setMetadata(ObjectMetadata metadata)
setMetadata 在类中 S3Objectmetadata - Object propertiespublic InputStream getObjectContent()
getObjectContent 在类中 S3Objectpublic void setObjectContent(InputStream objectContent)
setObjectContent 在类中 S3ObjectobjectContent - Object data streampublic Owner getOwner()
public void setOwner(Owner owner)
Copyright © 2021. All rights reserved.