Class SdkClientConfiguration.Builder
java.lang.Object
software.amazon.awssdk.core.client.config.SdkClientConfiguration.Builder
- All Implemented Interfaces:
Buildable,CopyableBuilder<SdkClientConfiguration.Builder,,SdkClientConfiguration> SdkBuilder<SdkClientConfiguration.Builder,SdkClientConfiguration>
- Enclosing class:
- SdkClientConfiguration
public static final class SdkClientConfiguration.Builder
extends Object
implements CopyableBuilder<SdkClientConfiguration.Builder,SdkClientConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptionCreate aClientOverrideConfiguration.Builderusing the values currently in this builder.build()<T> TcomputeOptionIfAbsent(ClientOption<T> option, Supplier<T> valueSupplier) Add a mapping between the provided key and value, if the current value for the option is null.copy()lazyOption(ClientOption<T> option, AttributeMap.LazyValue<T> lazyValue) Add a mapping between the provided option and value provider.lazyOptionIfAbsent(ClientOption<T> option, AttributeMap.LazyValue<T> lazyValue) Equivalent tolazyOption(ClientOption, AttributeMap.LazyValue), but does not assign the value if there is already a non-null value assigned for the provided option.<T> Toption(ClientOption<T> option) Retrieve the value of a specific option.option(ClientOption<T> option, T value) Configure the value of a specific option.putAll(Map<? extends ClientOption<?>, ?> options) Adds all the options from the map provided.putAll(ClientOverrideConfiguration configuration) Put all of the attributes from the provided override configuration into this one.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation
-
Method Details
-
asOverrideConfigurationBuilder
Create aClientOverrideConfiguration.Builderusing the values currently in this builder. -
option
Configure the value of a specific option. -
lazyOption
public <T> SdkClientConfiguration.Builder lazyOption(ClientOption<T> option, AttributeMap.LazyValue<T> lazyValue) Add a mapping between the provided option and value provider. The lazy value will only be resolved when the value is needed. During resolution, the lazy value is provided with a value reader. The value reader will fail if the reader attempts to read its own value (directly, or indirectly through other lazy values). If a value is updated that a lazy value is depended on, the lazy value will be re-resolved the next time the lazy value is accessed. -
lazyOptionIfAbsent
public <T> SdkClientConfiguration.Builder lazyOptionIfAbsent(ClientOption<T> option, AttributeMap.LazyValue<T> lazyValue) Equivalent tolazyOption(ClientOption, AttributeMap.LazyValue), but does not assign the value if there is already a non-null value assigned for the provided option. -
option
Retrieve the value of a specific option. -
computeOptionIfAbsent
Add a mapping between the provided key and value, if the current value for the option is null. Returns the value. -
putAll
Adds all the options from the map provided. This is not type safe, and will throw an exception during creation if a value in the map is not of the correct type for its option. -
putAll
Put all of the attributes from the provided override configuration into this one. -
copy
- Specified by:
copyin interfaceCopyableBuilder<SdkClientConfiguration.Builder,SdkClientConfiguration>
-
build
- Specified by:
buildin interfaceBuildable- Specified by:
buildin interfaceSdkBuilder<SdkClientConfiguration.Builder,SdkClientConfiguration>
-