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 |
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.
|
AttributeMap |
advancedOptions() |
ClientOverrideConfiguration.Builder |
advancedOptions(Map<SdkAdvancedClientOption<?>,?> advancedOptions)
Configure the map of advanced override options.
|
List<ExecutionInterceptor> |
executionInterceptors() |
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.
|
Map<String,List<String>> |
headers() |
ClientOverrideConfiguration.Builder |
headers(Map<String,List<String>> headers)
Configure headers to be set on the HTTP request.
|
<T> ClientOverrideConfiguration.Builder |
putAdvancedOption(SdkAdvancedClientOption<T> option,
T value)
Configure an advanced override option.
|
ClientOverrideConfiguration.Builder |
putHeader(String name,
List<String> values)
Add a single header with multiple values to be set on the HTTP request.
|
default ClientOverrideConfiguration.Builder |
putHeader(String name,
String value)
Add a single header to be set on the HTTP request.
|
RetryPolicy |
retryPolicy() |
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
applyMutation, build
default ClientOverrideConfiguration.Builder putHeader(String name, String value)
This overrides any values already configured with this header name in the builder.
name
- The name of the header.value
- The value of the header.ClientOverrideConfiguration.Builder putHeader(String name, List<String> values)
This overrides any values already configured with this header name in the builder.
name
- The name of the header.values
- The values of the header.ClientOverrideConfiguration.Builder headers(Map<String,List<String>> headers)
This overrides any values currently configured in the builder.
headers
- The set of additional headers.ClientOverrideConfiguration.Builder retryPolicy(RetryPolicy 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 overrides any values currently configured in the builder.
This is currently an INTERNAL api, which means it is subject to change and should not be used.
ClientOverrideConfiguration.Builder addExecutionInterceptor(ExecutionInterceptor executionInterceptor)
Interceptors added using this method 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.
List<ExecutionInterceptor> executionInterceptors()
<T> ClientOverrideConfiguration.Builder putAdvancedOption(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)
AttributeMap advancedOptions()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.