|
|||||||||
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 java.lang.String |
LOCATION_ASIA_PACIFIC
Alias of LOCATION_ASIA_PACIFIC_SOUTHEAST |
static java.lang.String |
LOCATION_ASIA_PACIFIC_NORTHEAST
|
static java.lang.String |
LOCATION_ASIA_PACIFIC_SINGAPORE
Alias of LOCATION_ASIA_PACIFIC_SOUTHEAST |
static java.lang.String |
LOCATION_ASIA_PACIFIC_SOUTHEAST
|
static java.lang.String |
LOCATION_ASIA_PACIFIC_TOKYO
Alias of LOCATION_ASIA_PACIFIC_NORTHEAST |
static java.lang.String |
LOCATION_EUROPE
|
static java.lang.String |
LOCATION_GOVCLOUD_FIPS_US_WEST
|
static java.lang.String |
LOCATION_GOVCLOUD_US_WEST
|
static java.lang.String |
LOCATION_SOUTH_AMERICA_EAST
Alias of LOCATION_SOUTH_AMERICA_SAO_PAULO |
static java.lang.String |
LOCATION_SOUTH_AMERICA_SAO_PAULO
|
static java.lang.String |
LOCATION_US
|
static java.lang.String |
LOCATION_US_STANDARD
|
static java.lang.String |
LOCATION_US_WEST
|
static java.lang.String |
LOCATION_US_WEST_NORTHERN_CALIFORNIA
|
static java.lang.String |
LOCATION_US_WEST_OREGON
|
Constructor Summary | |
---|---|
S3Bucket()
Create a bucket without any name or location specified |
|
S3Bucket(java.lang.String name)
Create a bucket with a name. |
|
S3Bucket(java.lang.String name,
java.lang.String location)
Create a bucket with a name and a location. |
Method Summary | |
---|---|
static S3Bucket[] |
cast(StorageBucket[] buckets)
|
boolean |
isRequesterPays()
Return the Requester Pays status of this bucket, if it is known. |
boolean |
isRequesterPaysKnown()
|
void |
setRequesterPays(boolean requesterPays)
Set's the bucket's Requester Pays Configuration setting. |
java.lang.String |
toString()
|
Methods inherited from class org.jets3t.service.model.StorageBucket |
---|
getAcl, getCreationDate, getLocation, isLocationKnown, setAcl, setCreationDate, setLocation |
Methods inherited from class org.jets3t.service.model.BaseStorageItem |
---|
addAllMetadata, addMetadata, addMetadata, addMetadata, addMetadata, containsMetadata, getMetadata, getMetadataMap, getName, getOwner, isMatchingMetadataName, removeMetadata, replaceAllMetadata, setName, setOwner |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String LOCATION_US
public static final java.lang.String LOCATION_US_STANDARD
public static final java.lang.String LOCATION_US_WEST
public static final java.lang.String LOCATION_US_WEST_NORTHERN_CALIFORNIA
public static final java.lang.String LOCATION_US_WEST_OREGON
public static final java.lang.String LOCATION_EUROPE
public static final java.lang.String LOCATION_ASIA_PACIFIC_SOUTHEAST
public static final java.lang.String LOCATION_ASIA_PACIFIC
LOCATION_ASIA_PACIFIC_SOUTHEAST
public static final java.lang.String LOCATION_ASIA_PACIFIC_SINGAPORE
LOCATION_ASIA_PACIFIC_SOUTHEAST
public static final java.lang.String LOCATION_ASIA_PACIFIC_NORTHEAST
public static final java.lang.String LOCATION_ASIA_PACIFIC_TOKYO
LOCATION_ASIA_PACIFIC_NORTHEAST
public static final java.lang.String LOCATION_SOUTH_AMERICA_SAO_PAULO
public static final java.lang.String LOCATION_SOUTH_AMERICA_EAST
LOCATION_SOUTH_AMERICA_SAO_PAULO
public static final java.lang.String LOCATION_GOVCLOUD_US_WEST
public static final java.lang.String LOCATION_GOVCLOUD_FIPS_US_WEST
Constructor Detail |
---|
public S3Bucket()
public S3Bucket(java.lang.String name)
name
- the name for the bucketpublic S3Bucket(java.lang.String name, java.lang.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 java.lang.String toString()
toString
in class StorageBucket
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 |