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 TypeMethodDescriptionbuilder()
Create a builder for aSdkClientConfiguration
.void
close()
Close this configuration, which closes all closeable attributes.boolean
int
hashCode()
merge
(Consumer<SdkClientConfiguration.Builder> configuration) merge
(SdkClientConfiguration configuration) Merge this configuration with another configuration, where this configuration's values take precedence.<T> T
option
(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.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
builder
Create a builder for aSdkClientConfiguration
. -
option
Retrieve the value of a specific option. -
merge
Merge this configuration with another configuration, where this configuration's values take precedence. -
merge
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<SdkClientConfiguration.Builder,
SdkClientConfiguration> - Returns:
- a builder for type T
-
close
public void close()Close this configuration, which closes all closeable attributes.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceSdkAutoCloseable
-
equals
-
hashCode
public int hashCode()
-