Class SdkClientConfiguration
java.lang.Object
software.amazon.awssdk.core.client.config.SdkClientConfiguration
- All Implemented Interfaces:
AutoCloseable,ToCopyableBuilder<SdkClientConfiguration.Builder,,SdkClientConfiguration> SdkAutoCloseable
public final class SdkClientConfiguration
extends Object
implements ToCopyableBuilder<SdkClientConfiguration.Builder,SdkClientConfiguration>, SdkAutoCloseable
A collection of configuration that is required by an AWS client in order to operate.
Configuration can be set via
SdkClientConfiguration.Builder.option(ClientOption, Object) and checked via
option(ClientOption).
This configuration can be merged with other configuration using merge(software.amazon.awssdk.core.client.config.SdkClientConfiguration).
This configuration object can be close()d to release all closeable resources configured within it.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionCreate aClientOverrideConfigurationusing the values currently in this configuration.builder()Create a builder for aSdkClientConfiguration.voidclose()Close this configuration, which closes all closeable attributes.booleanstatic SdkClientConfigurationfromOverrideConfiguration(ClientOverrideConfiguration configuration) Create aSdkClientConfigurationfrom the providedClientOverrideConfiguration.inthashCode()merge(Consumer<SdkClientConfiguration.Builder> configuration) merge(SdkClientConfiguration configuration) Merge this configuration with another configuration, where this configuration's values take precedence.<T> Toption(ClientOption<T> option) Retrieve the value of a specific option.Take this object and create a builder that contains all of the current property values of this object.toString()Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
builder
Create a builder for aSdkClientConfiguration. -
fromOverrideConfiguration
public static SdkClientConfiguration fromOverrideConfiguration(ClientOverrideConfiguration configuration) Create aSdkClientConfigurationfrom the providedClientOverrideConfiguration. This copies the properties out of the configuration and ensures that _OVERRIDDEN properties are properly set, likeSdkClientOption.SIGNER_OVERRIDDEN. -
option
Retrieve the value of a specific option. -
asOverrideConfiguration
Create aClientOverrideConfigurationusing the values currently in this configuration. -
merge
Merge this configuration with another configuration, where this configuration's values take precedence. -
merge
-
toString
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<SdkClientConfiguration.Builder,SdkClientConfiguration> - Returns:
- a builder for type T
-
close
public void close()Close this configuration, which closes all closeable attributes.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSdkAutoCloseable
-
equals
-
hashCode
-