Package org.jclouds.s3.domain
Class BucketMetadata
- java.lang.Object
-
- org.jclouds.s3.domain.BucketMetadata
-
- All Implemented Interfaces:
Comparable<BucketMetadata>
public class BucketMetadata extends Object implements Comparable<BucketMetadata>
System metadata of the S3Bucket
-
-
Constructor Summary
Constructors Constructor Description BucketMetadata(String name, Date creationDate, CanonicalUser owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(BucketMetadata o)booleanequals(Object obj)DategetCreationDate()StringgetName()To comply with Amazon S3 requirements, bucket names must:CanonicalUsergetOwner()Every bucket and object in Amazon S3 has an owner, the user that created the bucket or object.inthashCode()
-
-
-
Constructor Detail
-
BucketMetadata
public BucketMetadata(String name, Date creationDate, CanonicalUser owner)
-
-
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")
-
compareTo
public int compareTo(BucketMetadata o)
- Specified by:
compareToin interfaceComparable<BucketMetadata>
-
-