Interface UrlConnectionHttpClient.Builder
- All Superinterfaces:
- Buildable,- SdkBuilder<UrlConnectionHttpClient.Builder,,- SdkHttpClient> - SdkHttpClient.Builder<UrlConnectionHttpClient.Builder>
- Enclosing class:
- UrlConnectionHttpClient
public static interface UrlConnectionHttpClient.Builder
extends SdkHttpClient.Builder<UrlConnectionHttpClient.Builder>
A builder for an instance of 
SdkHttpClient that uses JDKs build-in URLConnection HTTP
 implementation. A builder can be created via UrlConnectionHttpClient.builder().
 SdkHttpClient httpClient = UrlConnectionHttpClient.builder() .socketTimeout(Duration.ofSeconds(10)) .connectionTimeout(Duration.ofSeconds(1)) .build();
- 
Method SummaryModifier and TypeMethodDescriptionconnectionTimeout(Duration connectionTimeout) The amount of time to wait when initially establishing a connection before giving up and timing out.proxyConfiguration(Consumer<ProxyConfiguration.Builder> proxyConfigurationBuilderConsumer) Sets the http proxy configuration to use for this client.proxyConfiguration(ProxyConfiguration proxyConfiguration) Configuration that defines how to communicate via an HTTP proxy.socketTimeout(Duration socketTimeout) The amount of time to wait for data to be transferred over an established, open connection before the connection is timed out.tlsKeyManagersProvider(TlsKeyManagersProvider tlsKeyManagersProvider) Configure theTlsKeyManagersProviderthat will provide theKeyManagers to use when constructing the SSL context.tlsTrustManagersProvider(TlsTrustManagersProvider tlsTrustManagersProvider) Configure theTlsTrustManagersProviderthat will provide theTrustManagers to use when constructing the SSL context.Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutationMethods inherited from interface software.amazon.awssdk.http.SdkHttpClient.Builderbuild, buildWithDefaults
- 
Method Details- 
socketTimeoutThe amount of time to wait for data to be transferred over an established, open connection before the connection is timed out. A duration of 0 means infinity, and is not recommended.
- 
connectionTimeoutThe amount of time to wait when initially establishing a connection before giving up and timing out. A duration of 0 means infinity, and is not recommended.
- 
tlsKeyManagersProviderUrlConnectionHttpClient.Builder tlsKeyManagersProvider(TlsKeyManagersProvider tlsKeyManagersProvider) Configure theTlsKeyManagersProviderthat will provide theKeyManagers to use when constructing the SSL context.
- 
tlsTrustManagersProviderUrlConnectionHttpClient.Builder tlsTrustManagersProvider(TlsTrustManagersProvider tlsTrustManagersProvider) Configure theTlsTrustManagersProviderthat will provide theTrustManagers to use when constructing the SSL context.
- 
proxyConfigurationConfiguration that defines how to communicate via an HTTP proxy.- Parameters:
- proxyConfiguration- proxy configuration builder object.
- Returns:
- the builder for method chaining.
 
- 
proxyConfigurationUrlConnectionHttpClient.Builder proxyConfiguration(Consumer<ProxyConfiguration.Builder> proxyConfigurationBuilderConsumer) Sets the http proxy configuration to use for this client.- Parameters:
- proxyConfigurationBuilderConsumer- The consumer of the proxy configuration builder object.
- Returns:
- the builder for method chaining.
 
 
-