public interface ClientBuilderFactory
AwsClientBuilder
using a specific ClientConfiguration
or the globally provided settings in AwsOptions
as fallback.Modifier and Type | Interface and Description |
---|---|
static class |
ClientBuilderFactory.DefaultClientBuilder
Default implementation of
ClientBuilderFactory . |
Modifier and Type | Method and Description |
---|---|
static <BuilderT extends AwsClientBuilder<BuilderT,ClientT>,ClientT> |
buildClient(AwsOptions options,
BuilderT builder,
ClientConfiguration config)
Utility to directly build a client of type
ClientT using builder of BuilderT . |
void |
checkConfiguration(ClientConfiguration config,
AwsOptions defaults)
Check if all necessary configuration is available to create clients.
|
default <BuilderT extends AwsClientBuilder<BuilderT,ClientT>,ClientT> |
create(BuilderT builder,
AwsOptions defaults)
Configure a client builder
BuilderT using the global defaults in AwsOptions . |
<BuilderT extends AwsClientBuilder<BuilderT,ClientT>,ClientT> |
create(BuilderT builder,
ClientConfiguration config,
AwsOptions defaults)
Configure a client builder
BuilderT using the provided ClientConfiguration and
fall back to the global defaults in AwsOptions where necessary. |
static ClientBuilderFactory |
defaultFactory()
The default
ClientBuilderFactory instance. |
static ClientBuilderFactory |
getFactory(AwsOptions options)
Get a
ClientBuilderFactory instance according to AwsOptions.getClientBuilderFactory() . |
static void |
validate(AwsOptions options,
ClientConfiguration config)
Utility to validate if all necessary configuration is available to create clients using the
ClientBuilderFactory configured in AwsOptions . |
default <BuilderT extends AwsClientBuilder<BuilderT,ClientT>,ClientT> BuilderT create(BuilderT builder, @Nullable AwsOptions defaults)
BuilderT
using the global defaults in AwsOptions
.<BuilderT extends AwsClientBuilder<BuilderT,ClientT>,ClientT> BuilderT create(BuilderT builder, ClientConfiguration config, @Nullable AwsOptions defaults)
BuilderT
using the provided ClientConfiguration
and
fall back to the global defaults in AwsOptions
where necessary.void checkConfiguration(ClientConfiguration config, @Nullable AwsOptions defaults)
java.lang.RuntimeException
- if configuration is incomplete.static ClientBuilderFactory defaultFactory()
ClientBuilderFactory
instance.static ClientBuilderFactory getFactory(AwsOptions options)
ClientBuilderFactory
instance according to AwsOptions.getClientBuilderFactory()
.static void validate(AwsOptions options, ClientConfiguration config)
ClientBuilderFactory
configured in AwsOptions
.static <BuilderT extends AwsClientBuilder<BuilderT,ClientT>,ClientT> ClientT buildClient(AwsOptions options, BuilderT builder, ClientConfiguration config)
ClientT
using builder of BuilderT
.
The client is created using the ClientBuilderFactory
configured in AwsOptions
with the provided ClientConfiguration
and global defaults from AwsOptions
.