final class ObjectMetadata extends AnyRef
- Alphabetic
- By Inheritance
- ObjectMetadata
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- lazy val cacheControl: Option[String]
Gets the optional Cache-Control header
- lazy val contentLength: Long
Gets the Content-Length HTTP header indicating the size of the associated object in bytes.
Gets the Content-Length HTTP header indicating the size of the associated object in bytes.
This field is required when uploading objects to S3, but the AWS S3 Java client will automatically set it when working directly with files. When uploading directly from a stream, set this field if possible. Otherwise the client must buffer the entire stream in order to calculate the content length before sending the data to Amazon S3.
For more information on the Content-Length HTTP header, see https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.13
- returns
The Content-Length HTTP header indicating the size of the associated object in bytes.
- See also
ObjectMetadata#setContentLength(long)
- lazy val contentType: Option[String]
Gets the Content-Type HTTP header, which indicates the type of content stored in the associated object.
Gets the Content-Type HTTP header, which indicates the type of content stored in the associated object. The value of this header is a standard MIME type.
When uploading files, the AWS S3 Java client will attempt to determine the correct content type if one hasn't been set yet. Users are responsible for ensuring a suitable content type is set when uploading streams. If no content type is provided and cannot be determined by the filename, the default content type, "application/octet-stream", will be used.
For more information on the Content-Type header, see https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17
- returns
The HTTP Content-Type header, indicating the type of content stored in the associated S3 object.
- See also
ObjectMetadata#setContentType(String)
- lazy val eTag: Option[String]
Gets the hex encoded 128-bit MD5 digest of the associated object according to RFC 1864.
Gets the hex encoded 128-bit MD5 digest of the associated object according to RFC 1864. This data is used as an integrity check to verify that the data received by the caller is the same data that was sent by Amazon S3.
This field represents the hex encoded 128-bit MD5 digest of an object's content as calculated by Amazon S3. The ContentMD5 field represents the base64 encoded 128-bit MD5 digest as calculated on the caller's side.
- returns
The hex encoded MD5 hash of the content for the associated object as calculated by Amazon S3.
- def getCacheControl: Optional[String]
Java Api
Java Api
Gets the optional Cache-Control header
- def getContentLength: Long
Java Api
Java Api
Gets the Content-Length HTTP header indicating the size of the associated object in bytes.
This field is required when uploading objects to S3, but the AWS S3 Java client will automatically set it when working directly with files. When uploading directly from a stream, set this field if possible. Otherwise the client must buffer the entire stream in order to calculate the content length before sending the data to Amazon S3.
For more information on the Content-Length HTTP header, see https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.13
- returns
The Content-Length HTTP header indicating the size of the associated object in bytes.
- See also
ObjectMetadata#setContentLength(long)
- def getContentType: Optional[String]
Java Api
Java Api
Gets the Content-Type HTTP header, which indicates the type of content stored in the associated object. The value of this header is a standard MIME type.
When uploading files, the AWS S3 Java client will attempt to determine the correct content type if one hasn't been set yet. Users are responsible for ensuring a suitable content type is set when uploading streams. If no content type is provided and cannot be determined by the filename, the default content type, "application/octet-stream", will be used.
For more information on the Content-Type header, see https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17
- returns
The HTTP Content-Type header, indicating the type of content stored in the associated S3 object.
- See also
ObjectMetadata#setContentType(String)
- lazy val getETag: Optional[String]
Java Api
Java Api
Gets the hex encoded 128-bit MD5 digest of the associated object according to RFC 1864. This data is used as an integrity check to verify that the data received by the caller is the same data that was sent by Amazon S3.
This field represents the hex encoded 128-bit MD5 digest of an object's content as calculated by Amazon S3. The ContentMD5 field represents the base64 encoded 128-bit MD5 digest as calculated on the caller's side.
- returns
The hex encoded MD5 hash of the content for the associated object as calculated by Amazon S3.
- def getLastModified: DateTime
Java Api
Java Api
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.
- returns
The date and time at which Amazon S3 last recorded a modification to the associated object.
- def getVersionId: Optional[String]
Java Api
Java Api
Gets the value of the version id header. The version id will only be available if the versioning is enabled in the bucket
- returns
optional version id of the object
- lazy val headers: List[HttpHeader]
Java Api
- lazy val lastModified: DateTime
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.
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.
- returns
The date and time at which Amazon S3 last recorded a modification to the associated object.
- val metadata: Seq[HttpHeader]
- lazy val versionId: Option[String]
Gets the value of the version id header.
Gets the value of the version id header. The version id will only be available if the versioning is enabled in the bucket
- returns
optional version id of the object