Class BucketMetadata

    • Method Detail

      • getOwner

        public CanonicalUser getOwner()
        Every bucket and object in Amazon S3 has an owner, the user that created the bucket or object. The owner of a bucket or object cannot be changed. However, if the object is overwritten by another user (deleted and rewritten), the new object will have a new owner.
      • getCreationDate

        public Date getCreationDate()
      • getName

        public String getName()
        To comply with Amazon S3 requirements, bucket names must:

        Contain lowercase letters, numbers, periods (.), underscores (_), and dashes (-)

        Start with a number or letter

        Be between 3 and 255 characters long

        Not be in an IP address style (e.g., "192.168.5.4")

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object