public class ObsObject extends S3Object
bucketName, GLACIER, metadata, objectContent, objectKey, owner, STANDARD, STANDARD_IA| Constructor and Description |
|---|
ObsObject() |
| Modifier and Type | Method and Description |
|---|---|
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 in class S3Objectpublic void setBucketName(String bucketName)
setBucketName in class S3ObjectbucketName - Name of the bucket to which the object belongspublic String getObjectKey()
getObjectKey in class S3Objectpublic void setObjectKey(String objectKey)
setObjectKey in class S3ObjectobjectKey - Object namepublic ObjectMetadata getMetadata()
getMetadata in class S3Objectpublic void setMetadata(ObjectMetadata metadata)
setMetadata in class S3Objectmetadata - Object propertiespublic InputStream getObjectContent()
getObjectContent in class S3Objectpublic void setObjectContent(InputStream objectContent)
setObjectContent in class S3ObjectobjectContent - Object data streampublic Owner getOwner()
public void setOwner(Owner owner)
Copyright © 2019. All rights reserved.