public class CreateBucketRequest extends AmazonWebServiceRequest implements Serializable, S3AccelerateUnsupported
DeleteBucketRequest
,
CopyObjectRequest
,
Serialized FormNOOP
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 |
---|---|
AccessControlList |
getAccessControlList()
Returns the optional access control list for the new bucket.
|
String |
getBucketName()
Gets the name of the Amazon S3 bucket to create.
|
CannedAccessControlList |
getCannedAcl()
Returns the optional Canned ACL to set for the new bucket.
|
com.ibm.cloud.objectstorage.services.s3.model.EncryptionType |
getEncryptionType()
Gets the encryptionType of the S3 bucket to create.
|
boolean |
getObjectLockEnabledForBucket()
Specifies whether you want S3 Object Lock to be enabled for the new bucket.
|
String |
getRegion()
Deprecated.
|
String |
getServiceInstanceId()
Gets the IBM service instance Id
|
void |
setAccessControlList(AccessControlList accessControlList)
Sets the optional access control list for the new bucket.
|
void |
setBucketName(String bucketName)
Sets the name of the Amazon S3 bucket to create.
|
void |
setCannedAcl(CannedAccessControlList cannedAcl)
Sets the optional Canned ACL to set for the new bucket.
|
void |
setEncryptionType(com.ibm.cloud.objectstorage.services.s3.model.EncryptionType encryptionType)
Sets the encryptionType bucket to create.
|
void |
setObjectLockEnabledForBucket(boolean objectLockEnabled)
Specifies whether you want S3 Object Lock to be enabled for the new bucket.
|
void |
setRegion(String region)
Deprecated.
Use regional client instead to create bucket in that region.
|
void |
setServiceInstanceId(String serviceInstanceId)
Set the IBM service instance Id used on the header for the
CreateBucketRequest
|
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.
|
CreateBucketRequest |
withEncryptionType(com.ibm.cloud.objectstorage.services.s3.model.EncryptionType encryptionType) |
CreateBucketRequest |
withObjectLockEnabledForBucket(boolean objectLockEnabled)
Specifies whether you want S3 Object Lock to be enabled for the new bucket.
|
CreateBucketRequest |
withServiceInstanceId(String serviceInstanceId)
Sets the serviceInstanceId on the Request Object.
|
addHandlerContext, clone, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public CreateBucketRequest(String bucketName)
CreateBucketRequest
,
ready to be executed to create the
specified bucket in the US_Standard
region.bucketName
- The name of the Amazon S3 bucket to create.CreateBucketRequest(String, Region)
,
CreateBucketRequest(String, String)
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 Amazon S3 bucket to create.region
- The region in which to create this bucket. This must match the
region of the endpoint the client is configured against unless
the client is configured against the US Standard endpoint
(s3.amazonaws.com).CreateBucketRequest(String)
,
CreateBucketRequest(String, String)
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 Amazon S3 bucket to create.region
- The region in which to create this bucket. This must match the
region of the endpoint the client is configured against unless
the client is configured against the US Standard endpoint
(s3.amazonaws.com).CreateBucketRequest(String)
,
CreateBucketRequest(String, Region)
public void setBucketName(String bucketName)
bucketName
- The name of the Amazon S3 bucket to create.CreateBucketRequest.getBucketName()
public String getBucketName()
CreateBucketRequest.setBucketName(String)
public com.ibm.cloud.objectstorage.services.s3.model.EncryptionType getEncryptionType()
CreateBucketRequest.setEncryptionType(EncryptionType)
public void setEncryptionType(com.ibm.cloud.objectstorage.services.s3.model.EncryptionType encryptionType)
encryptionType
- The encryptionType of the S3 bucket to create.CreateBucketRequest.getEncryptionType()
public CreateBucketRequest withEncryptionType(com.ibm.cloud.objectstorage.services.s3.model.EncryptionType encryptionType)
@Deprecated public void setRegion(String region)
region
- The region in which to create this bucket. This must match the
region of the endpoint the client is configured against unless
the client is configured against the US Standard endpoint
(s3.amazonaws.com).CreateBucketRequest.getRegion()
@Deprecated public String getRegion()
CreateBucketRequest.setRegion(String)
public String getServiceInstanceId()
public void setServiceInstanceId(String serviceInstanceId)
serviceInstanceId
- IBM service instance Idpublic 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.public boolean getObjectLockEnabledForBucket()
public CreateBucketRequest withObjectLockEnabledForBucket(boolean objectLockEnabled)
public void setObjectLockEnabledForBucket(boolean objectLockEnabled)
public CreateBucketRequest withServiceInstanceId(String serviceInstanceId)
serviceInstanceId
- The IBM Service Instance IdCopyright © 2024. All rights reserved.