@NotThreadSafe public static interface S3Configuration.Builder extends CopyableBuilder<S3Configuration.Builder,S3Configuration>
| Modifier and Type | Method and Description |
|---|---|
Boolean |
accelerateModeEnabled() |
S3Configuration.Builder |
accelerateModeEnabled(Boolean accelerateModeEnabled)
Option to enable using the accelerate endpoint when accessing S3.
|
Boolean |
checksumValidationEnabled()
Deprecated.
This option has been replaced with
S3BaseClientBuilder.requestChecksumCalculation(RequestChecksumCalculation) and
S3BaseClientBuilder.responseChecksumValidation(ResponseChecksumValidation). If both this and one of those options
are set, an exception will be thrown. |
S3Configuration.Builder |
checksumValidationEnabled(Boolean checksumValidationEnabled)
Deprecated.
This option has been replaced with
S3BaseClientBuilder.requestChecksumCalculation(RequestChecksumCalculation) and
S3BaseClientBuilder.responseChecksumValidation(ResponseChecksumValidation). If both this and one of those options
are set, an exception will be thrown. |
Boolean |
chunkedEncodingEnabled() |
S3Configuration.Builder |
chunkedEncodingEnabled(Boolean chunkedEncodingEnabled)
Option to enable using chunked encoding when signing the request
payload for
PutObjectRequest and UploadPartRequest. |
Boolean |
dualstackEnabled() |
S3Configuration.Builder |
dualstackEnabled(Boolean dualstackEnabled)
Deprecated.
This option has been replaced with
AwsClientBuilder.dualstackEnabled(Boolean) and
S3Presigner.Builder#dualstackEnabled(Boolean). If both this and one of those options are set, an exception
will be thrown. |
Boolean |
multiRegionEnabled() |
S3Configuration.Builder |
multiRegionEnabled(Boolean multiRegionEnabled)
Option to enable or disable the usage of multi-region access point ARNs.
|
Boolean |
pathStyleAccessEnabled() |
S3Configuration.Builder |
pathStyleAccessEnabled(Boolean pathStyleAccessEnabled)
Option to enable using path style access for accessing S3 objects
instead of DNS style access.
|
ProfileFile |
profileFile() |
S3Configuration.Builder |
profileFile(ProfileFile profileFile)
The profile file that should be consulted to determine the default value of
useArnRegionEnabled(Boolean)
or multiRegionEnabled(Boolean). |
S3Configuration.Builder |
profileFile(Supplier<ProfileFile> profileFile)
The supplier of profile file instances that should be consulted to determine the default value of
useArnRegionEnabled(Boolean) or multiRegionEnabled(Boolean). |
Supplier<ProfileFile> |
profileFileSupplier() |
String |
profileName() |
S3Configuration.Builder |
profileName(String profileName)
The profile name that should be consulted to determine the default value of
useArnRegionEnabled(Boolean)
or multiRegionEnabled(Boolean). |
Boolean |
useArnRegionEnabled() |
S3Configuration.Builder |
useArnRegionEnabled(Boolean useArnRegionEnabled)
If an S3 resource ARN is passed in as the target of an S3 operation that has a different region to the one
the client was configured with, this flag must be set to 'true' to permit the client to make a
cross-region call to the region specified in the ARN otherwise an exception will be thrown.
|
copyapplyMutation, buildBoolean dualstackEnabled()
@Deprecated S3Configuration.Builder dualstackEnabled(Boolean dualstackEnabled)
AwsClientBuilder.dualstackEnabled(Boolean) and
S3Presigner.Builder#dualstackEnabled(Boolean). If both this and one of those options are set, an exception
will be thrown.Dualstack endpoints are disabled by default.
Boolean accelerateModeEnabled()
S3Configuration.Builder accelerateModeEnabled(Boolean accelerateModeEnabled)
Accelerate mode is disabled by default.
S3Configuration.accelerateModeEnabled().Boolean pathStyleAccessEnabled()
S3Configuration.Builder pathStyleAccessEnabled(Boolean pathStyleAccessEnabled)
Path style access is disabled by default. Path style may still be used for legacy buckets that are not DNS compatible.
@Deprecated Boolean checksumValidationEnabled()
S3BaseClientBuilder.requestChecksumCalculation(RequestChecksumCalculation) and
S3BaseClientBuilder.responseChecksumValidation(ResponseChecksumValidation). If both this and one of those options
are set, an exception will be thrown.@Deprecated S3Configuration.Builder checksumValidationEnabled(Boolean checksumValidationEnabled)
S3BaseClientBuilder.requestChecksumCalculation(RequestChecksumCalculation) and
S3BaseClientBuilder.responseChecksumValidation(ResponseChecksumValidation). If both this and one of those options
are set, an exception will be thrown.
The recommended approach is to specify a ChecksumAlgorithm on the PutObjectRequest and enable
ChecksumMode on the GetObjectRequest. In that case, validation will be performed for the specified
flexible checksum, and validation will not be performed for MD5 checksum.
For PutObjectRequest, MD5 trailing checksum validation will be performed if:
GetObjectRequest, MD5 trailing checksum validation will be performed if:
ChecksumMode is disabled (default)Boolean chunkedEncodingEnabled()
S3Configuration.Builder chunkedEncodingEnabled(Boolean chunkedEncodingEnabled)
PutObjectRequest and UploadPartRequest.S3Configuration.chunkedEncodingEnabled()Boolean useArnRegionEnabled()
S3Configuration.Builder useArnRegionEnabled(Boolean useArnRegionEnabled)
S3Configuration.useArnRegionEnabled()Boolean multiRegionEnabled()
S3Configuration.Builder multiRegionEnabled(Boolean multiRegionEnabled)
S3Configuration.multiRegionEnabled()ProfileFile profileFile()
S3Configuration.Builder profileFile(ProfileFile profileFile)
useArnRegionEnabled(Boolean)
or multiRegionEnabled(Boolean).
This is not used, if those parameters are configured.
By default, the ProfileFile.defaultProfileFile() is used.
Supplier<ProfileFile> profileFileSupplier()
S3Configuration.Builder profileFile(Supplier<ProfileFile> profileFile)
useArnRegionEnabled(Boolean) or multiRegionEnabled(Boolean).
This is not used, if those parameters are configured on the builder.
By default, the ProfileFile.defaultProfileFile() is used.
String profileName()
S3Configuration.Builder profileName(String profileName)
useArnRegionEnabled(Boolean)
or multiRegionEnabled(Boolean).
This is not used, if those parameters are configured.
By default, the ProfileFileSystemSetting.AWS_PROFILE is used.
Copyright © 2026. All rights reserved.