com.netease.cloud.services.nos.model
public class CreateBucketRequest extends WebServiceRequest
DeleteBucketRequest
,
CopyObjectRequest
logID, logSeq
Constructor and Description |
---|
CreateBucketRequest(String bucketName)
Constructs a new
CreateBucketRequest , ready to be executed to
create the specified bucket in the US_Standard region. |
CreateBucketRequest(String bucketName,
Region region)
Constructs a new
CreateBucketRequest , ready to be executed to
create the specified bucket in the specified region. |
CreateBucketRequest(String bucketName,
String region)
Constructs a new
CreateBucketRequest , ready to be executed and
create the specified bucket in the specified region. |
Modifier and Type | Method and Description |
---|---|
String |
getBucketName()
Gets the name of the bucket to create.
|
CannedAccessControlList |
getCannedAcl()
Returns the optional Canned ACL to set for the new bucket.
|
String |
getRegion()
Gets the name of the region in which this bucket will be created.
|
void |
setBucketName(String bucketName)
Sets the name of the bucket to create.
|
void |
setCannedAcl(CannedAccessControlList cannedAcl)
Sets the optional Canned ACL to set for the new bucket.
|
void |
setCannedAcl(String cannedAcl) |
void |
setRegion(String region)
Sets the name of the region in which this bucket will be created.
|
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.
|
addSpecialHeader, copyPrivateRequestParameters, getAndIncrementLogSeq, getLogID, getLogSeq, getRequestClientOptions, getRequestCredentials, getToken, needSetLogInfo, setLogID, setLogSeq, setRequestCredentials, setToken
public CreateBucketRequest(String bucketName)
CreateBucketRequest
, ready to be executed to
create the specified bucket in the US_Standard
region.bucketName
- The name of the bucket to create.public CreateBucketRequest(String bucketName, Region region)
CreateBucketRequest
, ready to be executed to
create the specified bucket in the specified region.bucketName
- The name of the bucket to create.region
- The region in which to create this bucket.public CreateBucketRequest(String bucketName, String region)
CreateBucketRequest
, ready to be executed and
create the specified bucket in the specified region.bucketName
- The name of the bucket to create.region
- The region in which to create this bucket.public void setBucketName(String bucketName)
bucketName
- The name of the bucket to create.getBucketName()
public String getBucketName()
setBucketName(String)
public void setRegion(String region)
region
- The name of the region in which this bucket will be created.getRegion()
public String getRegion()
setRegion(String)
public CannedAccessControlList getCannedAcl()
public void setCannedAcl(CannedAccessControlList cannedAcl)
cannedAcl
- The optional Canned ACL to set for the new bucket.public void setCannedAcl(String cannedAcl)
public CreateBucketRequest withCannedAcl(CannedAccessControlList cannedAcl)
cannedAcl
- The optional Canned ACL to set for the new bucket.Copyright © 2017. All Rights Reserved.