B
- The type of builder that should be returned by the fluent builder methods in this interface.C
- The type of client generated by this builder.public interface ClientBuilder<B extends ClientBuilder<B,C>,C> extends SdkBuilder<B,C>
Implementations of this interface are mutable and not thread-safe.
Modifier and Type | Method and Description |
---|---|
B |
credentialsProvider(AwsCredentialsProvider credentialsProvider)
Configure the credentials that should be used to authenticate with AWS.
|
B |
endpointOverride(URI endpointOverride)
Configure the endpoint with which the SDK should communicate.
|
B |
overrideConfiguration(ClientOverrideConfiguration overrideConfiguration)
Specify overrides to the default SDK configuration that should be used for clients created by this builder.
|
default B |
overrideConfiguration(Consumer<ClientOverrideConfiguration.Builder> overrideConfiguration)
Similar to
overrideConfiguration(ClientOverrideConfiguration) , but takes a lambda to configure a new
ClientOverrideConfiguration.Builder . |
B |
region(Region region)
Configure the region with which the SDK should communicate.
|
apply, build
B overrideConfiguration(ClientOverrideConfiguration overrideConfiguration)
default B overrideConfiguration(Consumer<ClientOverrideConfiguration.Builder> overrideConfiguration)
overrideConfiguration(ClientOverrideConfiguration)
, but takes a lambda to configure a new
ClientOverrideConfiguration.Builder
. This removes the need to called ClientOverrideConfiguration.builder()
and ClientOverrideConfiguration.Builder#build()
.B credentialsProvider(AwsCredentialsProvider credentialsProvider)
The default provider will attempt to identify the credentials automatically using the following checks:
aws.accessKeyId
and aws.secretKey
AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
If the credentials are not found in any of the locations above, an exception will be thrown at SdkBuilder.build()
time.
B endpointOverride(URI endpointOverride)
region(Region)
. Even when this is used, the region(Region)
must still be specified for the purposes of
message signing.B region(Region region)
If this is not specified, the SDK will attempt to identify the endpoint automatically using the following logic:
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.