public class CreateBucketRequest extends OSSRequest
OSSRequest.CRC64Config
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
TAB_LOCATIONCONSTRAINT |
static java.lang.String |
TAB_STORAGECLASS |
构造器和说明 |
---|
CreateBucketRequest(java.lang.String bucketName)
The constructor of CreateBucketRequest
|
限定符和类型 | 方法和说明 |
---|---|
CannedAccessControlList |
getBucketACL()
Gets bucket ACL
|
java.lang.String |
getBucketName()
Gets the bucket name
|
StorageClass |
getBucketStorageClass()
Get bucket storage class
|
java.lang.String |
getLocationConstraint()
已过时。
|
void |
setBucketACL(CannedAccessControlList bucketACL)
Sets bucket ACL
For now there're three permissions of Bucket: private、public-read、public-read-write
|
void |
setBucketName(java.lang.String bucketName)
Sets the bucket name
bucketName is globally unique cross all OSS users in all regions.
|
void |
setBucketStorageClass(StorageClass storageClass)
Set bucket storage class
|
void |
setLocationConstraint(java.lang.String locationConstraint)
已过时。
|
getCRC64, isAuthorizationRequired, setCRC64, setIsAuthorizationRequired
public static final java.lang.String TAB_LOCATIONCONSTRAINT
public static final java.lang.String TAB_STORAGECLASS
public CreateBucketRequest(java.lang.String bucketName)
bucketName
- public java.lang.String getBucketName()
public void setBucketName(java.lang.String bucketName)
bucketName
- @Deprecated public java.lang.String getLocationConstraint()
@Deprecated public void setLocationConstraint(java.lang.String locationConstraint)
locationConstraint
- public CannedAccessControlList getBucketACL()
public void setBucketACL(CannedAccessControlList bucketACL)
bucketACL
- public StorageClass getBucketStorageClass()
public void setBucketStorageClass(StorageClass storageClass)
storageClass
-