Class GetBucketObjectResult


  • public final class GetBucketObjectResult
    extends java.lang.Object
    • Method Detail

      • bucket

        public java.util.Optional<java.lang.String> bucket()
      • cacheControl

        public java.lang.String cacheControl()
        Returns:
        (Computed) [Cache-Control](https://tools.ietf.org/html/rfc7234#section-5.2) directive to specify caching behavior of object data. If omitted and object is accessible to all anonymous users, the default will be public, max-age=3600
      • content

        public java.lang.String content()
      • contentDisposition

        public java.lang.String contentDisposition()
        Returns:
        (Computed) [Content-Disposition](https://tools.ietf.org/html/rfc6266) of the object data.
      • contentEncoding

        public java.lang.String contentEncoding()
        Returns:
        (Computed) [Content-Encoding](https://tools.ietf.org/html/rfc7231#section-3.1.2.2) of the object data.
      • contentLanguage

        public java.lang.String contentLanguage()
        Returns:
        (Computed) [Content-Language](https://tools.ietf.org/html/rfc7231#section-3.1.3.2) of the object data.
      • contentType

        public java.lang.String contentType()
        Returns:
        (Computed) [Content-Type](https://tools.ietf.org/html/rfc7231#section-3.1.1.5) of the object data. Defaults to "application/octet-stream" or "text/plain; charset=utf-8".
      • crc32c

        public java.lang.String crc32c()
        Returns:
        (Computed) Base 64 CRC32 hash of the uploaded data.
      • detectMd5hash

        public java.lang.String detectMd5hash()
      • eventBasedHold

        public java.lang.Boolean eventBasedHold()
        Returns:
        (Computed) Whether an object is under [event-based hold](https://cloud.google.com/storage/docs/object-holds#hold-types). Event-based hold is a way to retain objects until an event occurs, which is signified by the hold's release (i.e. this value is set to false). After being released (set to false), such objects will be subject to bucket-level retention (if any).
      • id

        public java.lang.String id()
        Returns:
        The provider-assigned unique ID for this managed resource.
      • kmsKeyName

        public java.lang.String kmsKeyName()
      • md5hash

        public java.lang.String md5hash()
        Returns:
        (Computed) Base 64 MD5 hash of the uploaded data.
      • mediaLink

        public java.lang.String mediaLink()
        Returns:
        (Computed) A url reference to download this object.
      • metadata

        public java.util.Map<java.lang.String,​java.lang.String> metadata()
      • name

        public java.util.Optional<java.lang.String> name()
      • outputName

        public java.lang.String outputName()
      • selfLink

        public java.lang.String selfLink()
        Returns:
        (Computed) A url reference to this object.
      • source

        public java.lang.String source()
      • storageClass

        public java.lang.String storageClass()
        Returns:
        (Computed) The [StorageClass](https://cloud.google.com/storage/docs/storage-classes) of the new bucket object. Supported values include: `MULTI_REGIONAL`, `REGIONAL`, `NEARLINE`, `COLDLINE`, `ARCHIVE`. If not provided, this defaults to the bucket's default storage class or to a [standard](https://cloud.google.com/storage/docs/storage-classes#standard) class.
      • temporaryHold

        public java.lang.Boolean temporaryHold()
        Returns:
        (Computed) Whether an object is under [temporary hold](https://cloud.google.com/storage/docs/object-holds#hold-types). While this flag is set to true, the object is protected against deletion and overwrites.