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 SyncClientBuilder<B extends SyncClientBuilder<B,C>,C> extends ClientBuilder<B,C>
Implementations of this interface are mutable and not thread-safe.
Modifier and Type | Method and Description |
---|---|
B |
httpConfiguration(ClientHttpConfiguration httpConfiguration)
Configures the HTTP client used by the service client.
|
default B |
httpConfiguration(Consumer<ClientHttpConfiguration.Builder> httpConfiguration)
Similar to
httpConfiguration(ClientHttpConfiguration) , but takes a lambda to configure a new
ClientHttpConfiguration.Builder . |
credentialsProvider, endpointOverride, overrideConfiguration, overrideConfiguration, region
apply, build
B httpConfiguration(ClientHttpConfiguration httpConfiguration)
SdkHttpClient
. Note that if an SdkHttpClient
is provided then it is up to the caller to close it when they are finished with
it, the SDK will only close HTTP clients that it creates.default B httpConfiguration(Consumer<ClientHttpConfiguration.Builder> httpConfiguration)
httpConfiguration(ClientHttpConfiguration)
, but takes a lambda to configure a new
ClientHttpConfiguration.Builder
. This removes the need to called ClientHttpConfiguration.builder()
and
SdkBuilder.build()
.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.