public class ObsBucket extends S3Bucket
acl, bucketName, creationDate, GLACIER, location, metadata, owner, STANDARD, STANDARD_IA, storageClass
Constructor and Description |
---|
ObsBucket() |
ObsBucket(String bucketName,
String location)
Constructor
|
Modifier and Type | Method and Description |
---|---|
AccessControlList |
getAcl()
Obtain the bucket ACL.
|
String |
getBucketName()
Obtain the bucket name.
|
StorageClassEnum |
getBucketStorageClass()
Obtain the bucket storage class.
|
Date |
getCreationDate()
Obtain the creation time of the bucket.
|
String |
getLocation()
Obtain the bucket location.
|
Map<String,Object> |
getMetadata()
Deprecated.
|
Owner |
getOwner()
Obtain the owner of the bucket.
|
String |
getStorageClass()
Deprecated.
|
void |
setAcl(AccessControlList acl)
Set the bucket ACL.
|
void |
setBucketName(String bucketName)
Set the bucket name.
|
void |
setBucketStorageClass(StorageClassEnum storageClass)
Set the bucket storage class.
|
void |
setCreationDate(Date bucketCreationDate)
Set the creation time of the bucket.
|
void |
setLocation(String location)
Set the bucket location.
|
void |
setMetadata(Map<String,Object> metadata)
Deprecated.
|
void |
setOwner(Owner bucketOwner)
Set the owner of the bucket.
|
void |
setStorageClass(String storageClass)
Deprecated.
|
String |
toString() |
getRequestId, getResponseHeaders, getStatusCode
public String getBucketName()
getBucketName
in class S3Bucket
public void setBucketName(String bucketName)
setBucketName
in class S3Bucket
bucketName
- Bucket namepublic Owner getOwner()
public void setOwner(Owner bucketOwner)
public Date getCreationDate()
getCreationDate
in class S3Bucket
public void setCreationDate(Date bucketCreationDate)
setCreationDate
in class S3Bucket
bucketCreationDate
- Creation time of the bucket@Deprecated public Map<String,Object> getMetadata()
getMetadata
in class S3Bucket
@Deprecated public void setMetadata(Map<String,Object> metadata)
setMetadata
in class S3Bucket
metadata
- Bucket propertiespublic String getLocation()
getLocation
in class S3Bucket
public void setLocation(String location)
setLocation
in class S3Bucket
location
- Bucket location. This parameter is mandatory unless the endpoint belongs to the default region.public AccessControlList getAcl()
public void setAcl(AccessControlList acl)
@Deprecated public String getStorageClass()
getStorageClass
in class S3Bucket
@Deprecated public void setStorageClass(String storageClass)
setStorageClass
in class S3Bucket
storageClass
- Bucket storage classpublic StorageClassEnum getBucketStorageClass()
getBucketStorageClass
in class S3Bucket
public void setBucketStorageClass(StorageClassEnum storageClass)
setBucketStorageClass
in class S3Bucket
storageClass
- Bucket storage classCopyright © 2019. All rights reserved.