Interface AwsCredentialsProviderChain.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsCredentialsProviderChain.Builder,
,AwsCredentialsProviderChain> SdkBuilder<AwsCredentialsProviderChain.Builder,
AwsCredentialsProviderChain>
- Enclosing class:
AwsCredentialsProviderChain
public static interface AwsCredentialsProviderChain.Builder
extends CopyableBuilder<AwsCredentialsProviderChain.Builder,AwsCredentialsProviderChain>
A builder for a
AwsCredentialsProviderChain
that allows controlling its behavior.-
Method Summary
Modifier and TypeMethodDescriptionaddCredentialsProvider
(AwsCredentialsProvider credentialsProvider) Add a credential provider to the chain, after the credential providers that have already been configured.addCredentialsProvider
(IdentityProvider<? extends AwsCredentialsIdentity> credentialsProvider) Add a credential provider to the chain, after the credential providers that have already been configured.build()
An immutable object that is created from the properties that have been set on the builder.credentialsIdentityProviders
(Collection<? extends IdentityProvider<? extends AwsCredentialsIdentity>> credentialsProviders) Configure the credentials providers that should be checked for credentials, in the order they should be checked.credentialsProviders
(Collection<? extends AwsCredentialsProvider> credentialsProviders) Configure the credentials providers that should be checked for credentials, in the order they should be checked.credentialsProviders
(AwsCredentialsProvider... credentialsProviders) Configure the credentials providers that should be checked for credentials, in the order they should be checked.credentialsProviders
(IdentityProvider<? extends AwsCredentialsIdentity>... credentialsProviders) Configure the credentials providers that should be checked for credentials, in the order they should be checked.reuseLastProviderEnabled
(Boolean reuseLastProviderEnabled) Controls whether the chain should reuse the last successful credentials provider in the chain.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation
-
Method Details
-
reuseLastProviderEnabled
Controls whether the chain should reuse the last successful credentials provider in the chain. Reusing the last successful credentials provider will typically return credentials faster than searching through the chain.By default, this is enabled
-
credentialsProviders
AwsCredentialsProviderChain.Builder credentialsProviders(Collection<? extends AwsCredentialsProvider> credentialsProviders) Configure the credentials providers that should be checked for credentials, in the order they should be checked. -
credentialsIdentityProviders
AwsCredentialsProviderChain.Builder credentialsIdentityProviders(Collection<? extends IdentityProvider<? extends AwsCredentialsIdentity>> credentialsProviders) Configure the credentials providers that should be checked for credentials, in the order they should be checked. -
credentialsProviders
default AwsCredentialsProviderChain.Builder credentialsProviders(AwsCredentialsProvider... credentialsProviders) Configure the credentials providers that should be checked for credentials, in the order they should be checked. -
credentialsProviders
default AwsCredentialsProviderChain.Builder credentialsProviders(IdentityProvider<? extends AwsCredentialsIdentity>... credentialsProviders) Configure the credentials providers that should be checked for credentials, in the order they should be checked. -
addCredentialsProvider
default AwsCredentialsProviderChain.Builder addCredentialsProvider(AwsCredentialsProvider credentialsProvider) Add a credential provider to the chain, after the credential providers that have already been configured. -
addCredentialsProvider
default AwsCredentialsProviderChain.Builder addCredentialsProvider(IdentityProvider<? extends AwsCredentialsIdentity> credentialsProvider) Add a credential provider to the chain, after the credential providers that have already been configured. -
build
AwsCredentialsProviderChain 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<AwsCredentialsProviderChain.Builder,
AwsCredentialsProviderChain> - Returns:
- an instance of T
-