Java com.amazonaws.services.s3.model ObjectMetadata fields, constructors, methods, implement or subclass

Example usage for Java com.amazonaws.services.s3.model ObjectMetadata fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.amazonaws.services.s3.model ObjectMetadata.

The text is from its open source code.

Field

Constructor

Method

voidaddUserMetadata(String key, String value)

Adds the key value pair of custom user-metadata for the associated object.

ObjectMetadataclone()
Returns a clone of this ObjectMetadata.
StringgetCacheControl()

Gets the optional Cache-Control HTTP header which allows the user to specify caching behavior along the HTTP request/reply chain.

StringgetContentDisposition()

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.

StringgetContentEncoding()

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.

longgetContentLength()

Gets the Content-Length HTTP header indicating the size of the associated object in bytes.

StringgetContentMD5()

Gets the base64 encoded 128-bit MD5 digest of the associated object (content - not including headers) according to RFC 1864.

StringgetContentType()

Gets the Content-Type HTTP header, which indicates the type of content stored in the associated object.

StringgetETag()
The entity tag is a hash of the object.
DategetExpirationTime()
Returns the time this object will expire and be completely removed from S3.
StringgetExpirationTimeRuleId()
Returns the BucketLifecycleConfiguration rule ID for this object's expiration, or null if it doesn't expire.
DategetHttpExpiresDate()
Returns the date when the object is no longer cacheable.
longgetInstanceLength()
Returns the physical length of the entire object stored in S3.
DategetLastModified()
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.
BooleangetOngoingRestore()
Returns the boolean value which indicates whether there is ongoing restore request.
MapgetRawMetadata()
Gets a map of the raw metadata/headers for the associated object.
ObjectgetRawMetadataValue(String key)
Returns the raw value of the metadata/headers for the specified key.
StringgetReplicationStatus()
DategetRestoreExpirationTime()
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.
StringgetServerSideEncryption()
StringgetSSEAlgorithm()
Returns the server-side encryption algorithm when encrypting the object using AWS-managed keys .
StringgetSSEAwsKmsKeyId()
Returns the AWS Key Management System key id used for Server Side Encryption of the Amazon S3 object.
StringgetSSECustomerAlgorithm()
StringgetSSECustomerKeyMd5()
StringgetStorageClass()
MapgetUserMetadata()

Gets the custom user-metadata for the associated object.

StringgetUserMetaDataOf(String key)
Returns the value of the specified user meta datum.
StringgetVersionId()
Gets the version ID of the associated Amazon S3 object if available.
voidsetCacheControl(String cacheControl)

Sets the optional Cache-Control HTTP header which allows the user to specify caching behavior along the HTTP request/reply chain.

voidsetContentDisposition(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.

voidsetContentEncoding(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.

voidsetContentLength(long contentLength)

Sets the Content-Length HTTP header indicating the size of the associated object in bytes.

voidsetContentMD5(String md5Base64)

Sets the base64 encoded 128-bit MD5 digest of the associated object (content - not including headers) according to RFC 1864.

voidsetContentType(String contentType)

Sets the Content-Type HTTP header indicating the type of content stored in the associated object.

voidsetExpirationTime(Date expirationTime)
For internal use only.
voidsetExpirationTimeRuleId(String expirationTimeRuleId)
For internal use only.
voidsetHeader(String key, Object value)
For internal use only.
voidsetHttpExpiresDate(Date httpExpiresDate)
Set the date when the object is no longer cacheable.
voidsetLastModified(Date lastModified)
For internal use only.
voidsetOngoingRestore(boolean ongoingRestore)
For internal use only.
voidsetServerSideEncryption(String algorithm)
voidsetSSEAlgorithm(String algorithm)
Sets the server-side encryption algorithm when encrypting the object using AWS-managed keys.
voidsetSSECustomerAlgorithm(String algorithm)
For internal use only.
voidsetUserMetadata(Map userMetadata)

Sets the custom user-metadata for the associated object.