public static interface ClientOverrideConfiguration.Builder extends CopyableBuilder<ClientOverrideConfiguration.Builder,ClientOverrideConfiguration>
ClientOverrideConfiguration
.
All implementations of this interface are mutable and not thread safe.
Modifier and Type | Method and Description |
---|---|
ClientOverrideConfiguration.Builder |
addAdditionalHttpHeader(String header,
String... values)
Add a header that should be sent with every HTTP request to AWS.
|
ClientOverrideConfiguration.Builder |
addExecutionInterceptor(ExecutionInterceptor executionInterceptor)
Add an execution interceptor that will have access to read and modify the request and response objects as they are
processed by the SDK.
|
ClientOverrideConfiguration.Builder |
additionalHttpHeaders(Map<String,List<String>> additionalHttpHeaders)
Define a set of headers that should be added to every HTTP request sent to AWS.
|
<T> ClientOverrideConfiguration.Builder |
advancedOption(SdkAdvancedClientOption<T> option,
T value)
Configure an advanced override option.
|
ClientOverrideConfiguration.Builder |
advancedOptions(Map<SdkAdvancedClientOption<?>,?> advancedOptions)
Configure the map of advanced override options.
|
ClientOverrideConfiguration.Builder |
executionInterceptors(List<ExecutionInterceptor> executionInterceptors)
Configure a list of execution interceptors that will have access to read and modify the request and response objcets as
they are processed by the SDK.
|
ClientOverrideConfiguration.Builder |
gzipEnabled(Boolean gzipEnabled)
Configure whether GZIP should be used when communicating with AWS.
|
default ClientOverrideConfiguration.Builder |
retryPolicy(Consumer<RetryPolicy.Builder> retryPolicy)
Configure the retry policy the should be used when handling failure cases.
|
ClientOverrideConfiguration.Builder |
retryPolicy(RetryPolicy retryPolicy)
Configure the retry policy that should be used when handling failure cases.
|
copy
apply, build
ClientOverrideConfiguration.Builder additionalHttpHeaders(Map<String,List<String>> additionalHttpHeaders)
ClientOverrideConfiguration.Builder addAdditionalHttpHeader(String header, String... values)
For example, the following code will result in two different "X-Header" values sent to AWS.
httpConfiguration.addAdditionalHttpHeader("X-Header", "Value1"); httpConfiguration.addAdditionalHttpHeader("X-Header", "Value2");
ClientOverrideConfiguration.Builder gzipEnabled(Boolean gzipEnabled)
ClientOverrideConfiguration.Builder retryPolicy(RetryPolicy retryPolicy)
default ClientOverrideConfiguration.Builder retryPolicy(Consumer<RetryPolicy.Builder> retryPolicy)
ClientOverrideConfiguration.Builder executionInterceptors(List<ExecutionInterceptor> executionInterceptors)
addExecutionInterceptor(ExecutionInterceptor)
.
The provided interceptors are executed in the order they are configured and are always later in the order than the ones
automatically added by the SDK. See ExecutionInterceptor
for a more detailed explanation of interceptor order.
This is currently an INTERNAL api, which means it is subject to change and should not be used.ClientOverrideConfiguration.Builder addExecutionInterceptor(ExecutionInterceptor executionInterceptor)
ExecutionInterceptor
for a more detailed explanation of
interceptor order.
This is currently an INTERNAL api, which means it is subject to change and should not be used.<T> ClientOverrideConfiguration.Builder advancedOption(SdkAdvancedClientOption<T> option, T value)
T
- The type of the option.option
- The option to configure.value
- The value of the option.ClientOverrideConfiguration.Builder advancedOptions(Map<SdkAdvancedClientOption<?>,?> advancedOptions)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.