Class CosItem


  • public class CosItem
    extends java.lang.Object
    Represents an item found in a COS bucket
    • Constructor Detail

      • CosItem

        public CosItem​(java.lang.String bucketName,
                       java.lang.String itemName,
                       long size,
                       FileType fileType,
                       java.lang.String eTag,
                       java.util.Date lastModified)
        Public constructor
        Parameters:
        bucketName -
        itemName -
        size -
        fileType -
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getBucketName

        public java.lang.String getBucketName()
        Returns:
        the bucketName
      • getItemName

        public java.lang.String getItemName()
        Returns:
        the itemName
      • getSize

        public long getSize()
        Returns:
        the size
      • getFileType

        public FileType getFileType()
        Returns:
        the fileType
      • geteTag

        public java.lang.String geteTag()
        Returns:
        the eTag
      • getLastModified

        public java.util.Date getLastModified()
        Returns:
        the lastModified
      • getResourceBucketId

        public long getResourceBucketId()
        Returns:
        the resourceBucketId
      • setResourceBucketId

        public void setResourceBucketId​(long resourceBucketId)
        Parameters:
        resourceBucketId - the resourceBucketId to set