@Mutable @NotThreadSafe public static interface CreateBucketRequest.Builder extends S3Request.Builder, SdkPojo, CopyableBuilder<CreateBucketRequest.Builder,CreateBucketRequest>
| Modifier and Type | Method and Description |
|---|---|
CreateBucketRequest.Builder |
acl(BucketCannedACL acl)
The canned ACL to apply to the bucket.
|
CreateBucketRequest.Builder |
acl(String acl)
The canned ACL to apply to the bucket.
|
CreateBucketRequest.Builder |
bucket(String bucket)
The name of the bucket to create.
|
default CreateBucketRequest.Builder |
createBucketConfiguration(Consumer<CreateBucketConfiguration.Builder> createBucketConfiguration)
The configuration information for the bucket.
|
CreateBucketRequest.Builder |
createBucketConfiguration(CreateBucketConfiguration createBucketConfiguration)
The configuration information for the bucket.
|
CreateBucketRequest.Builder |
encryptionType(EncryptionType encryptionType)
Sets the encryptionType bucket to create.
|
CreateBucketRequest.Builder |
grantFullControl(String grantFullControl)
Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.
|
CreateBucketRequest.Builder |
grantRead(String grantRead)
Allows grantee to list the objects in the bucket.
|
CreateBucketRequest.Builder |
grantReadACP(String grantReadACP)
Allows grantee to read the bucket ACL.
|
CreateBucketRequest.Builder |
grantWrite(String grantWrite)
Allows grantee to create new objects in the bucket.
|
CreateBucketRequest.Builder |
grantWriteACP(String grantWriteACP)
Allows grantee to write the ACL for the applicable bucket.
|
CreateBucketRequest.Builder |
objectLockEnabledForBucket(Boolean objectLockEnabledForBucket)
Specifies whether you want S3 Object Lock to be enabled for the new bucket.
|
CreateBucketRequest.Builder |
objectOwnership(ObjectOwnership objectOwnership)
Sets the value of the ObjectOwnership property for this object.
|
CreateBucketRequest.Builder |
objectOwnership(String objectOwnership)
Sets the value of the ObjectOwnership property for this object.
|
CreateBucketRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
CreateBucketRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
CreateBucketRequest.Builder |
serviceInstanceId(String serviceInstanceId)
Sets the value of the IBM service instance Id.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldNameToField, sdkFieldscopyapplyMutation, buildCreateBucketRequest.Builder acl(String acl)
The canned ACL to apply to the bucket.
This functionality is not supported for directory buckets.
acl - The canned ACL to apply to the bucket. This functionality is not supported for directory buckets.
BucketCannedACL,
BucketCannedACLCreateBucketRequest.Builder acl(BucketCannedACL acl)
The canned ACL to apply to the bucket.
This functionality is not supported for directory buckets.
acl - The canned ACL to apply to the bucket. This functionality is not supported for directory buckets.
BucketCannedACL,
BucketCannedACLCreateBucketRequest.Builder bucket(String bucket)
The name of the bucket to create.
General purpose buckets - For information about bucket naming restrictions, see Bucket naming rules in the Amazon S3 User Guide.
Directory buckets - When you use this operation with a directory bucket, you must use path-style
requests in the format
https://s3express-control.region-code.amazonaws.com/bucket-name .
Virtual-hosted-style requests aren't supported. Directory bucket names must be unique in the chosen Zone
(Availability Zone or Local Zone). Bucket names must also follow the format
bucket-base-name--zone-id--x-s3 (for example,
DOC-EXAMPLE-BUCKET--usw2-az1--x-s3). For information about bucket naming
restrictions, see Directory
bucket naming rules in the Amazon S3 User Guide
bucket - The name of the bucket to create.
General purpose buckets - For information about bucket naming restrictions, see Bucket naming rules in the Amazon S3 User Guide.
Directory buckets - When you use this operation with a directory bucket, you must use
path-style requests in the format
https://s3express-control.region-code.amazonaws.com/bucket-name .
Virtual-hosted-style requests aren't supported. Directory bucket names must be unique in the chosen
Zone (Availability Zone or Local Zone). Bucket names must also follow the format
bucket-base-name--zone-id--x-s3 (for example,
DOC-EXAMPLE-BUCKET--usw2-az1--x-s3). For information about bucket naming
restrictions, see Directory bucket naming rules in the Amazon S3 User Guide
CreateBucketRequest.Builder createBucketConfiguration(CreateBucketConfiguration createBucketConfiguration)
The configuration information for the bucket.
createBucketConfiguration - The configuration information for the bucket.default CreateBucketRequest.Builder createBucketConfiguration(Consumer<CreateBucketConfiguration.Builder> createBucketConfiguration)
The configuration information for the bucket.
This is a convenience method that creates an instance of theCreateBucketConfiguration.Builder
avoiding the need to create one manually via CreateBucketConfiguration.builder().
When the Consumer completes, SdkBuilder.build() is called immediately
and its result is passed to createBucketConfiguration(CreateBucketConfiguration).
createBucketConfiguration - a consumer that will call methods on CreateBucketConfiguration.BuildercreateBucketConfiguration(CreateBucketConfiguration)CreateBucketRequest.Builder grantFullControl(String grantFullControl)
Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.
This functionality is not supported for directory buckets.
grantFullControl - Allows grantee the read, write, read ACP, and write ACP permissions on the bucket. This functionality is not supported for directory buckets.
CreateBucketRequest.Builder grantRead(String grantRead)
Allows grantee to list the objects in the bucket.
This functionality is not supported for directory buckets.
grantRead - Allows grantee to list the objects in the bucket. This functionality is not supported for directory buckets.
CreateBucketRequest.Builder grantReadACP(String grantReadACP)
Allows grantee to read the bucket ACL.
This functionality is not supported for directory buckets.
grantReadACP - Allows grantee to read the bucket ACL. This functionality is not supported for directory buckets.
CreateBucketRequest.Builder grantWrite(String grantWrite)
Allows grantee to create new objects in the bucket.
For the bucket and object owners of existing objects, also allows deletions and overwrites of those objects.
This functionality is not supported for directory buckets.
grantWrite - Allows grantee to create new objects in the bucket.
For the bucket and object owners of existing objects, also allows deletions and overwrites of those objects.
This functionality is not supported for directory buckets.
CreateBucketRequest.Builder grantWriteACP(String grantWriteACP)
Allows grantee to write the ACL for the applicable bucket.
This functionality is not supported for directory buckets.
grantWriteACP - Allows grantee to write the ACL for the applicable bucket. This functionality is not supported for directory buckets.
CreateBucketRequest.Builder objectLockEnabledForBucket(Boolean objectLockEnabledForBucket)
Specifies whether you want S3 Object Lock to be enabled for the new bucket.
This functionality is not supported for directory buckets.
objectLockEnabledForBucket - Specifies whether you want S3 Object Lock to be enabled for the new bucket. This functionality is not supported for directory buckets.
CreateBucketRequest.Builder objectOwnership(String objectOwnership)
objectOwnership - The new value for the ObjectOwnership property for this object.ObjectOwnership,
ObjectOwnershipCreateBucketRequest.Builder objectOwnership(ObjectOwnership objectOwnership)
objectOwnership - The new value for the ObjectOwnership property for this object.ObjectOwnership,
ObjectOwnershipCreateBucketRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.BuilderoverrideConfiguration in interface AwsRequest.BuilderoverrideConfiguration - The override configuration.CreateBucketRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.BuilderoverrideConfiguration in interface AwsRequest.BuilderbuilderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be
given.CreateBucketRequest.Builder encryptionType(EncryptionType encryptionType)
encryptionType - The encryptionType of the S3 bucket to create.CreateBucketRequest.encryptionType()CreateBucketRequest.Builder serviceInstanceId(String serviceInstanceId)
serviceInstanceId - The new value for the IBM service instance Id property for this object.Copyright © 2026. All rights reserved.