Interface CreateBucketRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateBucketRequest.Builder,
,CreateBucketRequest> S3Request.Builder
,SdkBuilder<CreateBucketRequest.Builder,
,CreateBucketRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateBucketRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe canned ACL to apply to the bucket.acl
(BucketCannedACL acl) The canned ACL to apply to the bucket.The name of the bucket to create.default CreateBucketRequest.Builder
createBucketConfiguration
(Consumer<CreateBucketConfiguration.Builder> createBucketConfiguration) The configuration information for the bucket.createBucketConfiguration
(CreateBucketConfiguration createBucketConfiguration) The configuration information for the bucket.grantFullControl
(String grantFullControl) Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.Allows grantee to list the objects in the bucket.grantReadACP
(String grantReadACP) Allows grantee to read the bucket ACL.grantWrite
(String grantWrite) Allows grantee to create new objects in the bucket.grantWriteACP
(String grantWriteACP) Allows grantee to write the ACL for the applicable bucket.objectLockEnabledForBucket
(Boolean objectLockEnabledForBucket) Specifies whether you want S3 Object Lock to be enabled for the new bucket.objectOwnership
(String objectOwnership) Sets the value of the ObjectOwnership property for this object.objectOwnership
(ObjectOwnership objectOwnership) Sets the value of the ObjectOwnership property for this object.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.s3.model.S3Request.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
acl
The canned ACL to apply to the bucket.
- Parameters:
acl
- The canned ACL to apply to the bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
acl
The canned ACL to apply to the bucket.
- Parameters:
acl
- The canned ACL to apply to the bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
bucket
The name of the bucket to create.
- Parameters:
bucket
- The name of the bucket to create.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createBucketConfiguration
CreateBucketRequest.Builder createBucketConfiguration(CreateBucketConfiguration createBucketConfiguration) The configuration information for the bucket.
- Parameters:
createBucketConfiguration
- The configuration information for the bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createBucketConfiguration
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 viaCreateBucketConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocreateBucketConfiguration(CreateBucketConfiguration)
.- Parameters:
createBucketConfiguration
- a consumer that will call methods onCreateBucketConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
grantFullControl
Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.
- Parameters:
grantFullControl
- Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grantRead
Allows grantee to list the objects in the bucket.
- Parameters:
grantRead
- Allows grantee to list the objects in the bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grantReadACP
Allows grantee to read the bucket ACL.
- Parameters:
grantReadACP
- Allows grantee to read the bucket ACL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grantWriteACP
Allows grantee to write the ACL for the applicable bucket.
- Parameters:
grantWriteACP
- Allows grantee to write the ACL for the applicable bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
objectLockEnabledForBucket
Specifies whether you want S3 Object Lock to be enabled for the new bucket.
- Parameters:
objectLockEnabledForBucket
- Specifies whether you want S3 Object Lock to be enabled for the new bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
objectOwnership
Sets the value of the ObjectOwnership property for this object.- Parameters:
objectOwnership
- The new value for the ObjectOwnership property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
objectOwnership
Sets the value of the ObjectOwnership property for this object.- Parameters:
objectOwnership
- The new value for the ObjectOwnership property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateBucketRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateBucketRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-