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.Builder
using the values currently in this builder.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.copy()
A shallow copy of this object created by building an immutable T and then transforming it back to a builder.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> T
option
(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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation
-
Method Details
-
asOverrideConfigurationBuilder
Create aClientOverrideConfiguration.Builder
using 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
Description copied from interface:CopyableBuilder
A shallow copy of this object created by building an immutable T and then transforming it back to a builder.- Specified by:
copy
in interfaceCopyableBuilder<SdkClientConfiguration.Builder,
SdkClientConfiguration> - Returns:
- a copy of this object
-
build
Description copied from interface:SdkBuilder
An immutable object that is created from the properties that have been set on the builder.- Specified by:
build
in interfaceBuildable
- Specified by:
build
in interfaceSdkBuilder<SdkClientConfiguration.Builder,
SdkClientConfiguration> - Returns:
- an instance of T
-