public abstract static class DefaultSdkPresigner.Builder<B extends DefaultSdkPresigner.Builder<B>> extends Object implements SdkPresigner.Builder
SdkPresigner.Builder interface.| Modifier | Constructor and Description |
|---|---|
protected |
Builder() |
| Modifier and Type | Method and Description |
|---|---|
B |
credentialsProvider(AwsCredentialsProvider credentialsProvider)
Configure the credentials that should be used for request signing.
|
B |
credentialsProvider(IdentityProvider<? extends AwsCredentialsIdentity> credentialsProvider)
Configure the credentials that should be used to authenticate with AWS.
|
B |
dualstackEnabled(Boolean dualstackEnabled)
Configure whether the SDK should use the AWS dualstack endpoint.
|
B |
endpointOverride(URI endpointOverride)
Configure an endpoint that should be used in the pre-signed requests.
|
B |
fipsEnabled(Boolean fipsEnabled)
Configure whether the SDK should use the AWS fips endpoint.
|
B |
region(Region region)
Configure the region for which the requests should be signed.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildpublic B region(Region region)
SdkPresigner.BuilderIf this is not specified, the SDK will attempt to identify the endpoint automatically using the following logic:
If the region is not found in any of the locations above, an exception will be thrown at SdkPresigner.Builder.build()
time.
region in interface SdkPresigner.Builderpublic B credentialsProvider(AwsCredentialsProvider credentialsProvider)
SdkPresigner.BuilderThe default provider will attempt to identify the credentials automatically using the following checks:
aws.accessKeyId and aws.secretAccessKeyAWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEYIf the credentials are not found in any of the locations above, an exception will be thrown at SdkPresigner.Builder.build()
time.
The last of SdkPresigner.Builder.credentialsProvider(AwsCredentialsProvider) or SdkPresigner.Builder.credentialsProvider(IdentityProvider)
wins.
credentialsProvider in interface SdkPresigner.Builderpublic B credentialsProvider(IdentityProvider<? extends AwsCredentialsIdentity> credentialsProvider)
SdkPresigner.BuilderThe default provider will attempt to identify the credentials automatically using the following checks:
aws.accessKeyId and aws.secretAccessKeyAWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEYIf the credentials are not found in any of the locations above, an exception will be thrown at SdkPresigner.Builder.build()
time.
The last of SdkPresigner.Builder.credentialsProvider(AwsCredentialsProvider) or SdkPresigner.Builder.credentialsProvider(IdentityProvider)
wins.
credentialsProvider in interface SdkPresigner.Builderpublic B dualstackEnabled(Boolean dualstackEnabled)
SdkPresigner.BuilderIf this is not specified, the SDK will attempt to determine whether the dualstack endpoint should be used automatically using the following logic:
If the setting is not found in any of the locations above, 'false' will be used.
dualstackEnabled in interface SdkPresigner.Builderpublic B fipsEnabled(Boolean fipsEnabled)
SdkPresigner.BuilderIf this is not specified, the SDK will attempt to determine whether the fips endpoint should be used automatically using the following logic:
If the setting is not found in any of the locations above, 'false' will be used.
fipsEnabled in interface SdkPresigner.Builderpublic B endpointOverride(URI endpointOverride)
SdkPresigner.BuilderSdkPresigner.Builder.region(Region) and SdkPresigner.Builder.dualstackEnabled(Boolean) settings.endpointOverride in interface SdkPresigner.BuilderCopyright © 2026. All rights reserved.