Example usage for Java com.amazonaws.services.s3.model ObjectMetadata fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addUserMetadata(String key, String value) Adds the key value pair of custom user-metadata for the associated object. |
ObjectMetadata | clone() Returns a clone of this ObjectMetadata . |
String | getCacheControl() Gets the optional Cache-Control HTTP header which allows the user to specify caching behavior along the HTTP request/reply chain. |
String | getContentDisposition() Gets the optional Content-Disposition HTTP header, which specifies presentation information for the object such as the recommended filename for the object to be saved as. |
String | getContentEncoding() Gets 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. |
long | getContentLength() Gets the Content-Length HTTP header indicating the size of the associated object in bytes. |
String | getContentMD5() Gets the base64 encoded 128-bit MD5 digest of the associated object (content - not including headers) according to RFC 1864. |
String | getContentType() Gets the Content-Type HTTP header, which indicates the type of content stored in the associated object. |
String | getETag() The entity tag is a hash of the object. |
Date | getExpirationTime() Returns the time this object will expire and be completely removed from S3. |
String | getExpirationTimeRuleId() Returns the BucketLifecycleConfiguration rule ID for this object's expiration, or null if it doesn't expire. |
Date | getHttpExpiresDate() Returns the date when the object is no longer cacheable. |
long | getInstanceLength() Returns the physical length of the entire object stored in S3. |
Date | getLastModified() Gets the value of the Last-Modified header, indicating the date and time at which Amazon S3 last recorded a modification to the associated object. |
Boolean | getOngoingRestore() Returns the boolean value which indicates whether there is ongoing restore request. |
Map | getRawMetadata() Gets a map of the raw metadata/headers for the associated object. |
Object | getRawMetadataValue(String key) Returns the raw value of the metadata/headers for the specified key. |
String | getReplicationStatus() |
Date | getRestoreExpirationTime() Returns the time at which an object that has been temporarily restored from Amazon Glacier will expire, and will need to be restored again in order to be accessed. |
String | getServerSideEncryption() |
String | getSSEAlgorithm() Returns the server-side encryption algorithm when encrypting the object using AWS-managed keys . |
String | getSSEAwsKmsKeyId() Returns the AWS Key Management System key id used for Server Side Encryption of the Amazon S3 object. |
String | getSSECustomerAlgorithm() |
String | getSSECustomerKeyMd5() |
String | getStorageClass() |
Map | getUserMetadata() Gets the custom user-metadata for the associated object. |
String | getUserMetaDataOf(String key) Returns the value of the specified user meta datum. |
String | getVersionId() Gets the version ID of the associated Amazon S3 object if available. |
void | setCacheControl(String cacheControl) Sets the optional Cache-Control HTTP header which allows the user to specify caching behavior along the HTTP request/reply chain. |
void | setContentDisposition(String disposition) Sets the optional Content-Disposition HTTP header, which specifies presentational information such as the recommended filename for the object to be saved as. |
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 the Content-Length HTTP header indicating the size of the associated object in bytes. |
void | setContentMD5(String md5Base64) Sets the base64 encoded 128-bit MD5 digest of the associated object (content - not including headers) according to RFC 1864. |
void | setContentType(String contentType) Sets the Content-Type HTTP header indicating the type of content stored in the associated object. |
void | setExpirationTime(Date expirationTime) For internal use only. |
void | setExpirationTimeRuleId(String expirationTimeRuleId) For internal use only. |
void | setHeader(String key, Object value) For internal use only. |
void | setHttpExpiresDate(Date httpExpiresDate) Set the date when the object is no longer cacheable. |
void | setLastModified(Date lastModified) For internal use only. |
void | setOngoingRestore(boolean ongoingRestore) For internal use only. |
void | setServerSideEncryption(String algorithm) |
void | setSSEAlgorithm(String algorithm) Sets the server-side encryption algorithm when encrypting the object using AWS-managed keys. |
void | setSSECustomerAlgorithm(String algorithm) For internal use only. |
void | setUserMetadata(Map Sets the custom user-metadata for the associated object. |