B
- actual class of the builderpublic abstract class ClientBuilderBase<B extends ClientBuilderBase,C> extends Object
Base client builder.
Modifier and Type | Field and Description |
---|---|
protected List<ClientConfigurator> |
additionalClientConfigurators |
protected ClientConfigurator |
clientConfigurator |
protected ClientConfiguration |
configuration |
protected String |
endpoint |
protected RequestSignerFactory |
requestSignerFactory |
Constructor and Description |
---|
ClientBuilderBase(Service service) |
Modifier and Type | Method and Description |
---|---|
B |
additionalClientConfigurator(ClientConfigurator additionalClientConfigurator)
Add an additional client configurator to be run after the primary configurator.
|
B |
additionalClientConfigurators(List<ClientConfigurator> additionalClientConfigurators)
Add additional client configurators to be run after the primary configurator.
|
abstract C |
build(AbstractAuthenticationDetailsProvider authenticationDetailsProvider)
Set the authentication details provider.
|
B |
clientConfigurator(ClientConfigurator clientConfigurator)
Set the client configurator.
|
B |
configuration(ClientConfiguration configuration)
Set the configuration.
|
B |
copyFrom(B fromBuilder)
Set the values in this builder to be the same as in the provided other builder.
|
B |
endpoint(String endpoint)
Set the endpoint for the client to be created.
|
B |
httpProvider(com.oracle.bmc.http.client.HttpProvider httpProvider) |
B |
requestSignerFactory(RequestSignerFactory requestSignerFactory)
Set the request signer factory.
|
B |
signingStrategyRequestSignerFactories(Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories)
Set the request signer factories for each signing strategy.
|
protected ClientConfiguration configuration
protected ClientConfigurator clientConfigurator
protected List<ClientConfigurator> additionalClientConfigurators
protected RequestSignerFactory requestSignerFactory
protected String endpoint
public ClientBuilderBase(Service service)
public B configuration(ClientConfiguration configuration)
Set the configuration. May be null.
configuration
- configuration. May be null.public B clientConfigurator(ClientConfigurator clientConfigurator)
Set the client configurator. May be null.
clientConfigurator
- client configurator. May be null.public B additionalClientConfigurator(@Nonnull ClientConfigurator additionalClientConfigurator)
Add an additional client configurator to be run after the primary configurator.
additionalClientConfigurator
- the additional client configuratorpublic B additionalClientConfigurators(@Nonnull List<ClientConfigurator> additionalClientConfigurators)
Add additional client configurators to be run after the primary configurator.
additionalClientConfigurators
- the additional client configuratorspublic B requestSignerFactory(RequestSignerFactory requestSignerFactory)
Set the request signer factory. May be null.
requestSignerFactory
- request signer factory. May be null.public B endpoint(String endpoint)
Set the endpoint for the client to be created.
endpoint
- endpointpublic B signingStrategyRequestSignerFactories(Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories)
Set the request signer factories for each signing strategy.
signingStrategyRequestSignerFactories
- request signer factories for each signing
strategypublic final B httpProvider(com.oracle.bmc.http.client.HttpProvider httpProvider)
public abstract C build(@Nonnull AbstractAuthenticationDetailsProvider authenticationDetailsProvider)
Set the authentication details provider. Once this is called, the builder can build the client.
authenticationDetailsProvider
- authentication details providerCopyright © 2016–2024. All rights reserved.