public static final class SdkClientConfiguration.Builder extends Object implements CopyableBuilder<SdkClientConfiguration.Builder,SdkClientConfiguration>
| Modifier and Type | Method and Description |
|---|---|
ClientOverrideConfiguration.Builder |
asOverrideConfigurationBuilder()
Create a
ClientOverrideConfiguration.Builder using the values currently in this builder. |
SdkClientConfiguration |
build()
An immutable object that is created from the
properties that have been set on the builder.
|
<T> T |
computeOptionIfAbsent(ClientOption<T> option,
Supplier<T> valueSupplier)
Add a mapping between the provided key and value, if the current value for the option is null.
|
SdkClientConfiguration.Builder |
copy()
A shallow copy of this object created by building an immutable T and then transforming it back to a builder.
|
<T> SdkClientConfiguration.Builder |
lazyOption(ClientOption<T> option,
AttributeMap.LazyValue<T> lazyValue)
Add a mapping between the provided option and value provider.
|
<T> SdkClientConfiguration.Builder |
lazyOptionIfAbsent(ClientOption<T> option,
AttributeMap.LazyValue<T> lazyValue)
Equivalent to
lazyOption(ClientOption, AttributeMap.LazyValue), but does not assign the value if there is
already a non-null value assigned for the provided option. |
<T> T |
option(ClientOption<T> option)
Retrieve the value of a specific option.
|
<T> SdkClientConfiguration.Builder |
option(ClientOption<T> option,
T value)
Configure the value of a specific option.
|
SdkClientConfiguration.Builder |
putAll(ClientOverrideConfiguration configuration)
Put all of the attributes from the provided override configuration into this one.
|
SdkClientConfiguration.Builder |
putAll(Map<? extends ClientOption<?>,?> options)
Adds all the options from the map provided.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyMutationpublic ClientOverrideConfiguration.Builder asOverrideConfigurationBuilder()
ClientOverrideConfiguration.Builder using the values currently in this builder.public <T> SdkClientConfiguration.Builder option(ClientOption<T> option, T value)
public <T> SdkClientConfiguration.Builder lazyOption(ClientOption<T> option, AttributeMap.LazyValue<T> lazyValue)
public <T> SdkClientConfiguration.Builder lazyOptionIfAbsent(ClientOption<T> option, AttributeMap.LazyValue<T> lazyValue)
lazyOption(ClientOption, AttributeMap.LazyValue), but does not assign the value if there is
already a non-null value assigned for the provided option.public <T> T option(ClientOption<T> option)
public <T> T computeOptionIfAbsent(ClientOption<T> option, Supplier<T> valueSupplier)
public SdkClientConfiguration.Builder putAll(Map<? extends ClientOption<?>,?> options)
public SdkClientConfiguration.Builder putAll(ClientOverrideConfiguration configuration)
public SdkClientConfiguration.Builder copy()
CopyableBuildercopy in interface CopyableBuilder<SdkClientConfiguration.Builder,SdkClientConfiguration>public SdkClientConfiguration build()
SdkBuilderbuild in interface Buildablebuild in interface SdkBuilder<SdkClientConfiguration.Builder,SdkClientConfiguration>Copyright © 2026. All rights reserved.