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 aAwsCredentialsProviderChain
that allows controlling its behavior.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default AwsCredentialsProviderChain.Builder
addCredentialsProvider(AwsCredentialsProvider credentialsProvider)
Add a credential provider to the chain, after the credential providers that have already been configured.default AwsCredentialsProviderChain.Builder
addCredentialsProvider(IdentityProvider<? extends AwsCredentialsIdentity> credentialsProvider)
Add a credential provider to the chain, after the credential providers that have already been configured.AwsCredentialsProviderChain
build()
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.AwsCredentialsProviderChain.Builder
credentialsProviders(Collection<? extends AwsCredentialsProvider> credentialsProviders)
Configure the credentials providers that should be checked for credentials, in the order they should be checked.default AwsCredentialsProviderChain.Builder
credentialsProviders(AwsCredentialsProvider... credentialsProviders)
Configure the credentials providers that should be checked for credentials, in the order they should be checked.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.AwsCredentialsProviderChain.Builder
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 Detail
-
reuseLastProviderEnabled
AwsCredentialsProviderChain.Builder reuseLastProviderEnabled(Boolean 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()
- Specified by:
build
in interfaceBuildable
- Specified by:
build
in interfaceSdkBuilder<AwsCredentialsProviderChain.Builder,AwsCredentialsProviderChain>
-
-