Interface CreateBucketRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateBucketRequest.Builder,CreateBucketRequest>,S3ControlRequest.Builder,SdkBuilder<CreateBucketRequest.Builder,CreateBucketRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateBucketRequest
public static interface CreateBucketRequest.Builder extends S3ControlRequest.Builder, SdkPojo, CopyableBuilder<CreateBucketRequest.Builder,CreateBucketRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateBucketRequest.Builderacl(String acl)The canned ACL to apply to the bucket.CreateBucketRequest.Builderacl(BucketCannedACL acl)The canned ACL to apply to the bucket.CreateBucketRequest.Builderbucket(String bucket)The name of the bucket.default CreateBucketRequest.BuildercreateBucketConfiguration(Consumer<CreateBucketConfiguration.Builder> createBucketConfiguration)The configuration information for the bucket.CreateBucketRequest.BuildercreateBucketConfiguration(CreateBucketConfiguration createBucketConfiguration)The configuration information for the bucket.CreateBucketRequest.BuildergrantFullControl(String grantFullControl)Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.CreateBucketRequest.BuildergrantRead(String grantRead)Allows grantee to list the objects in the bucket.CreateBucketRequest.BuildergrantReadACP(String grantReadACP)Allows grantee to read the bucket ACL.CreateBucketRequest.BuildergrantWrite(String grantWrite)Allows grantee to create, overwrite, and delete any object in the bucket.CreateBucketRequest.BuildergrantWriteACP(String grantWriteACP)Allows grantee to write the ACL for the applicable bucket.CreateBucketRequest.BuilderobjectLockEnabledForBucket(Boolean objectLockEnabledForBucket)Specifies whether you want S3 Object Lock to be enabled for the new bucket.CreateBucketRequest.BuilderoutpostId(String outpostId)The ID of the Outposts where the bucket is being created.CreateBucketRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateBucketRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)-
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.s3control.model.S3ControlRequest.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 Detail
-
acl
CreateBucketRequest.Builder acl(String acl)
The canned ACL to apply to the bucket.
This is not supported by Amazon S3 on Outposts buckets.
- Parameters:
acl- The canned ACL to apply to the bucket.This is not supported by Amazon S3 on Outposts buckets.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
BucketCannedACL,BucketCannedACL
-
acl
CreateBucketRequest.Builder acl(BucketCannedACL acl)
The canned ACL to apply to the bucket.
This is not supported by Amazon S3 on Outposts buckets.
- Parameters:
acl- The canned ACL to apply to the bucket.This is not supported by Amazon S3 on Outposts buckets.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
BucketCannedACL,BucketCannedACL
-
bucket
CreateBucketRequest.Builder bucket(String bucket)
The name of the bucket.
- Parameters:
bucket- The name of the bucket.- 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.
This is not supported by Amazon S3 on Outposts buckets.
- Parameters:
createBucketConfiguration- The configuration information for the bucket.This is not supported by Amazon S3 on Outposts buckets.
- 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 theThis is not supported by Amazon S3 on Outposts buckets.
CreateBucketConfiguration.Builderavoiding the need to create one manually viaCreateBucketConfiguration.builder().When the
Consumercompletes,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:
createBucketConfiguration(CreateBucketConfiguration)
-
grantFullControl
CreateBucketRequest.Builder grantFullControl(String grantFullControl)
Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.
This is not supported by Amazon S3 on Outposts buckets.
- Parameters:
grantFullControl- Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.This is not supported by Amazon S3 on Outposts buckets.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grantRead
CreateBucketRequest.Builder grantRead(String grantRead)
Allows grantee to list the objects in the bucket.
This is not supported by Amazon S3 on Outposts buckets.
- Parameters:
grantRead- Allows grantee to list the objects in the bucket.This is not supported by Amazon S3 on Outposts buckets.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grantReadACP
CreateBucketRequest.Builder grantReadACP(String grantReadACP)
Allows grantee to read the bucket ACL.
This is not supported by Amazon S3 on Outposts buckets.
- Parameters:
grantReadACP- Allows grantee to read the bucket ACL.This is not supported by Amazon S3 on Outposts buckets.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grantWrite
CreateBucketRequest.Builder grantWrite(String grantWrite)
Allows grantee to create, overwrite, and delete any object in the bucket.
This is not supported by Amazon S3 on Outposts buckets.
- Parameters:
grantWrite- Allows grantee to create, overwrite, and delete any object in the bucket.This is not supported by Amazon S3 on Outposts buckets.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grantWriteACP
CreateBucketRequest.Builder grantWriteACP(String grantWriteACP)
Allows grantee to write the ACL for the applicable bucket.
This is not supported by Amazon S3 on Outposts buckets.
- Parameters:
grantWriteACP- Allows grantee to write the ACL for the applicable bucket.This is not supported by Amazon S3 on Outposts buckets.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
objectLockEnabledForBucket
CreateBucketRequest.Builder objectLockEnabledForBucket(Boolean objectLockEnabledForBucket)
Specifies whether you want S3 Object Lock to be enabled for the new bucket.
This is not supported by Amazon S3 on Outposts buckets.
- Parameters:
objectLockEnabledForBucket- Specifies whether you want S3 Object Lock to be enabled for the new bucket.This is not supported by Amazon S3 on Outposts buckets.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outpostId
CreateBucketRequest.Builder outpostId(String outpostId)
The ID of the Outposts where the bucket is being created.
This ID is required by Amazon S3 on Outposts buckets.
- Parameters:
outpostId- The ID of the Outposts where the bucket is being created.This ID is required by Amazon S3 on Outposts buckets.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateBucketRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateBucketRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-