Interface SdkAsyncHttpClient.Builder<T extends SdkAsyncHttpClient.Builder<T>>
- All Superinterfaces:
Buildable
,SdkBuilder<T,
SdkAsyncHttpClient>
- All Known Subinterfaces:
AwsCrtAsyncHttpClient.Builder
,NettyNioAsyncHttpClient.Builder
- All Known Implementing Classes:
DefaultSdkAsyncHttpClientBuilder
,S3CrtAsyncHttpClient.Builder
- Enclosing interface:
SdkAsyncHttpClient
- 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 SdkAsyncHttpClient.Builder<T extends SdkAsyncHttpClient.Builder<T>>
extends SdkBuilder<T,SdkAsyncHttpClient>
-
Method Summary
Modifier and TypeMethodDescriptiondefault SdkAsyncHttpClient
build()
Create aSdkAsyncHttpClient
with global defaults applied.buildWithDefaults
(AttributeMap serviceDefaults) Create anSdkAsyncHttpClient
with service specific defaults applied.Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation
-
Method Details
-
build
Create aSdkAsyncHttpClient
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 SdkAsyncHttpClient.Builder<T>,
SdkAsyncHttpClient> - Returns:
- an instance of T
-
buildWithDefaults
Create anSdkAsyncHttpClient
with service specific defaults 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
-