类 BosObjectSummary


  • public class BosObjectSummary
    extends Object
    Contains the summary of an object stored in a Baidu Bos bucket. This object doesn't contain contain the object's full metadata or any of its contents.
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      protected String bucketName
      The name of the bucket in which this object is stored.
      protected String eTag
      Hex encoded MD5 hash of this object's contents, as computed by Baidu Bos.
      protected String key
      The key under which this object is stored.
      protected Date lastModified
      The date, according to Baidu Bos, when this object was last modified.
      protected User owner
      The user of this object - can be null if the requester doesn't have permission to view object ownership information.
      protected long size
      The size of this object, in bytes.
      protected String storageClass
      The storage class of object.
    • 字段详细资料

      • bucketName

        protected String bucketName
        The name of the bucket in which this object is stored.
      • key

        protected String key
        The key under which this object is stored.
      • eTag

        protected String eTag
        Hex encoded MD5 hash of this object's contents, as computed by Baidu Bos.
      • size

        protected long size
        The size of this object, in bytes.
      • lastModified

        protected Date lastModified
        The date, according to Baidu Bos, when this object was last modified.
      • owner

        protected User owner
        The user of this object - can be null if the requester doesn't have permission to view object ownership information.
      • storageClass

        protected String storageClass
        The storage class of object.
    • 构造器详细资料

      • BosObjectSummary

        public BosObjectSummary()
    • 方法详细资料

      • getBucketName

        public String getBucketName()
        Gets the name of the Baidu Bos bucket in which this object is stored.
        返回:
        The name of the Baidu Bos bucket in which this object is stored.
      • setBucketName

        public void setBucketName​(String bucketName)
        Sets the name of the Baidu Bos bucket in which this object is stored.
        参数:
        bucketName - The name of the Baidu Bos bucket in which this object is stored.
      • getKey

        public String getKey()
        Gets the key under which this object is stored in Baidu Bos.
        返回:
        The key under which this object is stored in Baidu Bos.
      • setKey

        public void setKey​(String key)
        Sets the key under which this object is stored in Baidu Bos.
        参数:
        key - The key under which this object is stored in Baidu Bos.
      • getETag

        public String getETag()
        Gets the hex encoded 128-bit MD5 hash of this object's contents as computed by Baidu Bos.
        返回:
        The hex encoded 128-bit MD5 hash of this object's contents as computed by Baidu Bos.
      • setETag

        public void setETag​(String eTag)
        Sets the hex encoded 128-bit MD5 hash of this object's contents as computed by Baidu Bos.
        参数:
        eTag - The hex encoded 128-bit MD5 hash of this object's contents as computed by Baidu Bos.
      • getSize

        public long getSize()
        Gets the size of this object in bytes.
        返回:
        The size of this object in bytes.
      • setSize

        public void setSize​(long size)
        Sets the size of this object in bytes.
        参数:
        size - The size of this object in bytes.
      • getLastModified

        public Date getLastModified()
        Gets the date when, according to Baidu Bos, this object was last modified.
        返回:
        The date when, according to Baidu Bos, this object was last modified.
      • setLastModified

        public void setLastModified​(Date lastModified)
        Sets the date, according to Baidu Bos, this object was last modified.
        参数:
        lastModified - The date when, according to Baidu Bos, this object was last modified.
      • getOwner

        public User getOwner()
        Gets the owner of this object.
        返回:
        The owner of this object.
      • setOwner

        public void setOwner​(User owner)
        Sets the owner of this object.
        参数:
        owner - The owner of this object.
      • getStorageClass

        public String getStorageClass()
        Gets the storageClass of this object.
        返回:
        The storageClass of this object.
      • setStorageClass

        public void setStorageClass​(String storageClass)
        Sets the storageClass of this object.
        参数:
        storageClass - The storageClass of this object.