|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jets3t.service.model.BaseStorageItem
org.jets3t.service.model.StorageBucket
org.jets3t.service.model.S3Bucket
public class S3Bucket
Represents an S3 bucket.
Field Summary | |
---|---|
static String |
LOCATION_ASIA_PACIFIC
Alias of LOCATION_ASIA_PACIFIC_SOUTHEAST |
static String |
LOCATION_ASIA_PACIFIC_NORTHEAST
|
static String |
LOCATION_ASIA_PACIFIC_SINGAPORE
Alias of LOCATION_ASIA_PACIFIC_SOUTHEAST |
static String |
LOCATION_ASIA_PACIFIC_SOUTHEAST
|
static String |
LOCATION_ASIA_PACIFIC_TOKYO
Alias of LOCATION_ASIA_PACIFIC_NORTHEAST |
static String |
LOCATION_EUROPE
|
static String |
LOCATION_US
|
static String |
LOCATION_US_STANDARD
|
static String |
LOCATION_US_WEST
|
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 | |
---|---|
static S3Bucket[] |
cast(StorageBucket[] buckets)
|
String |
getLocation()
|
boolean |
isLocationKnown()
|
boolean |
isRequesterPays()
Return the Requester Pays status of this bucket, if it is known. |
boolean |
isRequesterPaysKnown()
|
void |
setLocation(String location)
Set's the bucket's location. |
void |
setRequesterPays(boolean requesterPays)
Set's the bucket's Requester Pays Configuration setting. |
String |
toString()
|
Methods inherited from class org.jets3t.service.model.StorageBucket |
---|
getAcl, getCreationDate, setAcl, setCreationDate |
Methods inherited from class org.jets3t.service.model.BaseStorageItem |
---|
addAllMetadata, addMetadata, addMetadata, addMetadata, containsMetadata, getMetadata, getMetadataMap, getName, getOwner, removeMetadata, replaceAllMetadata, setName, setOwner |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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_SOUTHEAST
public static final String LOCATION_ASIA_PACIFIC
LOCATION_ASIA_PACIFIC_SOUTHEAST
public static final String LOCATION_ASIA_PACIFIC_SINGAPORE
LOCATION_ASIA_PACIFIC_SOUTHEAST
public static final String LOCATION_ASIA_PACIFIC_NORTHEAST
public static final String LOCATION_ASIA_PACIFIC_TOKYO
LOCATION_ASIA_PACIFIC_NORTHEAST
Constructor Detail |
---|
public S3Bucket()
public S3Bucket(String name)
name
- the name for the bucketpublic 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 StorageBucket
public 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.
public static S3Bucket[] cast(StorageBucket[] buckets)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |