final class ObjectMetadata extends AnyRef
- Alphabetic
- By Inheritance
- ObjectMetadata
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- lazy val cacheControl: Option[String]
Gets the optional Cache-Control header
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- 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.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def getCacheControl: Optional[String]
Java Api
Java Api
Gets the optional Cache-Control header
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- 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
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- lazy val headers: List[HttpHeader]
Java Api
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()