Interface S3Config.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<S3Config.Builder,
,S3Config> SdkBuilder<S3Config.Builder,
,S3Config> SdkPojo
- Enclosing class:
S3Config
public static interface S3Config.Builder
extends SdkPojo, CopyableBuilder<S3Config.Builder,S3Config>
-
Method Summary
Modifier and TypeMethodDescriptionbucketName
(String bucketName) The S3 bucket name.bucketPrefix
(String bucketPrefix) The S3 bucket prefix.default S3Config.Builder
encryptionConfig
(Consumer<EncryptionConfig.Builder> encryptionConfig) The Amazon S3 encryption configuration.encryptionConfig
(EncryptionConfig encryptionConfig) The Amazon S3 encryption configuration.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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
-
bucketName
The S3 bucket name.
- Parameters:
bucketName
- The S3 bucket name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bucketPrefix
The S3 bucket prefix.
- Parameters:
bucketPrefix
- The S3 bucket prefix.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
encryptionConfig
The Amazon S3 encryption configuration.
- Parameters:
encryptionConfig
- The Amazon S3 encryption configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
encryptionConfig
The Amazon S3 encryption configuration.
This is a convenience method that creates an instance of theEncryptionConfig.Builder
avoiding the need to create one manually viaEncryptionConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toencryptionConfig(EncryptionConfig)
.- Parameters:
encryptionConfig
- a consumer that will call methods onEncryptionConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-