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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description S3Config.BuilderbucketName(String bucketName)The S3 bucket name.S3Config.BuilderbucketPrefix(String bucketPrefix)The S3 bucket prefix.default S3Config.BuilderencryptionConfig(Consumer<EncryptionConfig.Builder> encryptionConfig)The Amazon S3 encryption configuration.S3Config.BuilderencryptionConfig(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 Detail
-
bucketName
S3Config.Builder bucketName(String 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
S3Config.Builder bucketPrefix(String 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
S3Config.Builder encryptionConfig(EncryptionConfig 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
default S3Config.Builder encryptionConfig(Consumer<EncryptionConfig.Builder> encryptionConfig)
The Amazon S3 encryption configuration.
This is a convenience method that creates an instance of theEncryptionConfig.Builderavoiding the need to create one manually viaEncryptionConfig.builder().When the
Consumercompletes,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:
encryptionConfig(EncryptionConfig)
-
-