public class S3StorageObjectMetadata extends Object implements StorageObjectMetadata
| Constructor and Description |
|---|
S3StorageObjectMetadata(com.amazonaws.services.s3.model.ObjectMetadata s3Metadata) |
| Modifier and Type | Method and Description |
|---|---|
void |
addUserMetadata(String key,
String value)
Adds the key value pair of custom user-metadata for the associated object.
|
String |
getContentEncoding() |
long |
getContentLength() |
Map<String,String> |
getUserMetadata() |
void |
setContentEncoding(String encoding)
Sets the optional Content-Encoding HTTP header specifying what content encodings, have been
applied to the object and what decoding mechanisms must be applied, in order to obtain the
media-type referenced by the Content-Type field.
|
void |
setContentLength(long contentLength)
Sets size of the associated object in bytes
|
public S3StorageObjectMetadata(com.amazonaws.services.s3.model.ObjectMetadata s3Metadata)
public Map<String,String> getUserMetadata()
getUserMetadata in interface StorageObjectMetadatapublic long getContentLength()
getContentLength in interface StorageObjectMetadatapublic void setContentLength(long contentLength)
setContentLength in interface StorageObjectMetadatacontentLength - the length of contentpublic void addUserMetadata(String key, String value)
addUserMetadata in interface StorageObjectMetadatakey - the key of user metadatavalue - the value of user metadatapublic void setContentEncoding(String encoding)
setContentEncoding in interface StorageObjectMetadataencoding - the encoding name using in HTTP header Content-Encodingpublic String getContentEncoding()
getContentEncoding in interface StorageObjectMetadataCopyright © 2022. All rights reserved.