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 anSdkHttpClient
with service specific defaults applied.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default SdkHttpClient
build()
Create aSdkHttpClient
with global defaults applied.SdkHttpClient
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 Detail
-
build
default SdkHttpClient 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>
-
buildWithDefaults
SdkHttpClient buildWithDefaults(AttributeMap serviceDefaults)
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
-
-