Class StorageBucket

java.lang.Object
org.jets3t.service.model.BaseStorageItem
org.jets3t.service.model.StorageBucket
Direct Known Subclasses:
GSBucket, S3Bucket

public class StorageBucket extends BaseStorageItem
A generic storage bucket.
Author:
James Murty
  • Constructor Details

    • StorageBucket

      public StorageBucket()
      Create a bucket without any name or location specified
    • StorageBucket

      public StorageBucket(String name)
      Create a bucket with a name.
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getCreationDate

      public Date getCreationDate()
      Returns:
      the bucket's creation date, or null if it is unknown.
    • setCreationDate

      public void setCreationDate(Date creationDate)
      Sets the bucket's creation date - this should only be used internally by JetS3t methods that retrieve information directly from a service.
      Parameters:
      creationDate -
    • getAcl

      public AccessControlList getAcl()
      Returns:
      the bucket's Access Control List, or null if it is unknown.
    • setAcl

      public void setAcl(AccessControlList acl)
      Sets the bucket's Access Control List in S3 - this should only be used internally by J3tS3t methods that retrieve information directly from S3.
      Parameters:
      acl -