public class S3Bucket extends StorageBucket
METADATA_HEADER_CONTENT_DISPOSITION, METADATA_HEADER_CONTENT_ENCODING, METADATA_HEADER_CONTENT_LANGUAGE, METADATA_HEADER_CONTENT_LENGTH, METADATA_HEADER_CONTENT_MD5, METADATA_HEADER_CONTENT_TYPE, METADATA_HEADER_CREATION_DATE, METADATA_HEADER_DATE, METADATA_HEADER_ETAG, METADATA_HEADER_LAST_MODIFIED_DATE
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
getAcl, getCreationDate, getLocation, isLocationKnown, setAcl, setCreationDate, setLocation
addAllMetadata, addMetadata, addMetadata, addMetadata, addMetadata, containsMetadata, getCompleteMetadataMap, getHttpMetadata, getHttpMetadataMap, getMetadata, getMetadataCaseInsensitiveFromMap, getMetadataMap, getName, getOwner, getServiceMetadata, getServiceMetadataMap, getUserMetadata, getUserMetadataMap, isMatchingMetadataName, lookupMetadataSubsetMap, removeMetadata, replaceAllMetadata, setName, setOwner
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_EU_IRELAND
public static final java.lang.String LOCATION_EU_FRANKFURT
public static final java.lang.String LOCATION_ASIA_PACIFIC_SOUTHEAST
public static final java.lang.String LOCATION_ASIA_PACIFIC_SYDNEY
public static final java.lang.String LOCATION_ASIA_PACIFIC_NORTHEAST
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_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
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
.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)