|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jets3t.service.model.BaseS3Object
org.jets3t.service.model.S3Bucket
public class S3Bucket
Represents an S3 bucket.
| Field Summary | |
|---|---|
static String |
LOCATION_ASIA_PACIFIC
|
static String |
LOCATION_EUROPE
|
static String |
LOCATION_US
|
static String |
LOCATION_US_STANDARD
|
static String |
LOCATION_US_WEST
|
static String |
METADATA_HEADER_CREATION_DATE
|
static String |
METADATA_HEADER_OWNER
|
| Constructor Summary | |
|---|---|
S3Bucket()
Create a bucket without any name or location specified |
|
S3Bucket(String name)
Create a bucket with a name. |
|
S3Bucket(String name,
String location)
Create a bucket with a name and a location. |
|
| Method Summary | |
|---|---|
AccessControlList |
getAcl()
|
Date |
getCreationDate()
|
String |
getLocation()
|
String |
getName()
|
S3Owner |
getOwner()
|
boolean |
isLocationKnown()
|
boolean |
isRequesterPays()
Return the Requester Pays status of this bucket, if it is known. |
boolean |
isRequesterPaysKnown()
|
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. |
void |
setCreationDate(Date creationDate)
Sets the bucket's creation date in S3 - this should only be used internally by JetS3t methods that retrieve information directly from S3. |
void |
setLocation(String location)
Set's the bucket's location. |
void |
setName(String name)
Set the name of the bucket. |
void |
setOwner(S3Owner owner)
Sets the bucket's owner in S3 - this should only be used internally by JetS3t methods that retrieve information directly from S3. |
void |
setRequesterPays(boolean requesterPays)
Set's the bucket's Requester Pays Configuration setting. |
String |
toString()
|
| Methods inherited from class org.jets3t.service.model.BaseS3Object |
|---|
addAllMetadata, addMetadata, addMetadata, addMetadata, containsMetadata, getMetadata, getMetadataMap, removeMetadata, replaceAllMetadata |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String METADATA_HEADER_CREATION_DATE
public static final String METADATA_HEADER_OWNER
public static final String LOCATION_US
public static final String LOCATION_US_STANDARD
public static final String LOCATION_US_WEST
public static final String LOCATION_EUROPE
public static final String LOCATION_ASIA_PACIFIC
| Constructor Detail |
|---|
public S3Bucket()
public S3Bucket(String name)
name - the name for the bucket
public S3Bucket(String name,
String location)
name - the name for the bucketlocation - A string representing the location. Legal values include
LOCATION_US and null (which are equivalent), or
LOCATION_EUROPE.| Method Detail |
|---|
public String toString()
toString in class Objectpublic S3Owner getOwner()
public void setOwner(S3Owner owner)
owner - public Date getCreationDate()
public void setCreationDate(Date creationDate)
creationDate - public AccessControlList getAcl()
public void setAcl(AccessControlList acl)
acl - public String getName()
public void setName(String name)
name - the name for the bucketpublic void setLocation(String location)
location - A string representing the location. Legal values include
LOCATION_US and null (which are equivalent), or
LOCATION_EUROPE.public boolean isLocationKnown()
public String getLocation()
public void setRequesterPays(boolean requesterPays)
requesterPays - true if the bucket is configured for Requester Pays, false if it is
configured for Owner pays.public boolean isRequesterPaysKnown()
public boolean isRequesterPays()
WARNING:
Before you use this method, always check with the isRequesterPaysKnown
method to ensure that the Requester Pays status has been set, otherwise
the result of this method is meaningless.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||