Package software.amazon.awssdk.http
Interface SdkHttpClient.Builder<T extends SdkHttpClient.Builder<T>>
-
- All Superinterfaces:
Buildable,SdkBuilder<T,SdkHttpClient>
- 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 anSdkHttpClientwith service specific defaults applied.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default SdkHttpClientbuild()Create aSdkHttpClientwith global defaults applied.SdkHttpClientbuildWithDefaults(AttributeMap serviceDefaults)Create anSdkHttpClientwith service specific defaults and defaults fromDefaultsModeapplied.-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation
-
-
-
-
Method Detail
-
build
default SdkHttpClient build()
Create aSdkHttpClientwith global defaults applied. This is useful for reusing an HTTP client across multiple services.- Specified by:
buildin interfaceBuildable- Specified by:
buildin interfaceSdkBuilder<T extends SdkHttpClient.Builder<T>,SdkHttpClient>
-
buildWithDefaults
SdkHttpClient buildWithDefaults(AttributeMap serviceDefaults)
Create anSdkHttpClientwith service specific defaults and defaults fromDefaultsModeapplied. 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
-
-