Package software.amazon.awssdk.http
Interface SdkHttpClient.Builder<T extends SdkHttpClient.Builder<T>>
- All Superinterfaces:
Buildable
,SdkBuilder<T,
SdkHttpClient>
- All Known Subinterfaces:
ApacheHttpClient.Builder
,AwsCrtHttpClient.Builder
,UrlConnectionHttpClient.Builder
- All Known Implementing Classes:
DefaultSdkHttpClientBuilder
- Enclosing interface:
SdkHttpClient
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface SdkHttpClient.Builder<T extends SdkHttpClient.Builder<T>>
extends SdkBuilder<T,SdkHttpClient>
Interface for creating an
SdkHttpClient
with service specific defaults applied.-
Method Summary
Modifier and TypeMethodDescriptiondefault SdkHttpClient
build()
Create aSdkHttpClient
with global defaults applied.buildWithDefaults
(AttributeMap serviceDefaults) Create anSdkHttpClient
with service specific defaults and defaults fromDefaultsMode
applied.Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation
-
Method Details
-
build
Create aSdkHttpClient
with global defaults applied. This is useful for reusing an HTTP client across multiple services.- Specified by:
build
in interfaceBuildable
- Specified by:
build
in interfaceSdkBuilder<T extends SdkHttpClient.Builder<T>,
SdkHttpClient> - Returns:
- an instance of T
-
buildWithDefaults
Create anSdkHttpClient
with service specific defaults and defaults fromDefaultsMode
applied. Applying service defaults is optional and some options may not be supported by a particular implementation.- Parameters:
serviceDefaults
- Service specific defaults. Keys will be one of the constants defined inSdkHttpConfigurationOption
.- Returns:
- Created client
-