public class CreateBucketRequest extends CosServiceRequest implements Serializable
| 构造器和说明 |
|---|
CreateBucketRequest(String bucketName)
Constructs a new
CreateBucketRequest, ready to be executed and create the specified
bucket in the specified region. |
| 限定符和类型 | 方法和说明 |
|---|---|
AccessControlList |
getAccessControlList()
Returns the optional access control list for the new bucket.
|
String |
getBucketName()
Gets the name of the Qcloud COS bucket to create.
|
CannedAccessControlList |
getCannedAcl()
Returns the optional Canned ACL to set for the new bucket.
|
void |
setAccessControlList(AccessControlList accessControlList)
Sets the optional access control list for the new bucket.
|
void |
setBucketName(String bucketName)
Sets the name of the Qcloud COS bucket to create.
|
void |
setCannedAcl(CannedAccessControlList cannedAcl)
Sets the optional Canned ACL to set for the new bucket.
|
CreateBucketRequest |
withAccessControlList(AccessControlList accessControlList)
Sets the optional access control list for the new bucket.
|
CreateBucketRequest |
withCannedAcl(CannedAccessControlList cannedAcl)
Sets the optional Canned ACL to set for the new bucket, and returns this updated object so
that additional method calls can be chained together.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getFixedEndpointAddr, getGeneralProgressListener, getReadLimit, getRequestClientOptions, putCustomQueryParameter, putCustomRequestHeader, setFixedEndpointAddr, setGeneralProgressListener, withGeneralProgressListenerpublic CreateBucketRequest(String bucketName)
CreateBucketRequest, ready to be executed and create the specified
bucket in the specified region.bucketName - The name of the Qcloud COS bucket to create.CreateBucketRequest(String)public void setBucketName(String bucketName)
bucketName - The name of the Qcloud COS bucket to create.getBucketName()public String getBucketName()
setBucketName(String)public CannedAccessControlList getCannedAcl()
public void setCannedAcl(CannedAccessControlList cannedAcl)
cannedAcl - The optional Canned ACL to set for the new bucket.public CreateBucketRequest withCannedAcl(CannedAccessControlList cannedAcl)
cannedAcl - The optional Canned ACL to set for the new bucket.public AccessControlList getAccessControlList()
public void setAccessControlList(AccessControlList accessControlList)
accessControlList - The access control list for the new bucket.public CreateBucketRequest withAccessControlList(AccessControlList accessControlList)
CreateBucketRequest, enabling additional method calls to be
chained together.accessControlList - The access control list for the new bucket.Copyright © 2020. All rights reserved.