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
- Author:
- Adrian Cole
Method Summary |
int |
compareTo(BucketMetadata o)
|
boolean |
equals(Object obj)
|
Date |
getCreationDate()
|
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") |
CanonicalUser |
getOwner()
Every bucket and object in Amazon S3 has an owner, the user that created the bucket or object. |
int |
hashCode()
|
BucketMetadata
public BucketMetadata(String name,
Date creationDate,
CanonicalUser owner)
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 interface Comparable<BucketMetadata>
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 2009-2011 jclouds. All Rights Reserved.