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 int
compareTo(BucketMetadata o)
boolean
equals(Object obj)
Date
getCreationDate()
String
getName()
To comply with Amazon S3 requirements, bucket names must:CanonicalUser
getOwner()
Every bucket and object in Amazon S3 has an owner, the user that created the bucket or object.int
hashCode()
-
-
-
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:
compareTo
in interfaceComparable<BucketMetadata>
-
-