Interface ProfileCredentialsProvider.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ProfileCredentialsProvider.Builder,
,ProfileCredentialsProvider> SdkBuilder<ProfileCredentialsProvider.Builder,
ProfileCredentialsProvider>
- Enclosing class:
ProfileCredentialsProvider
public static interface ProfileCredentialsProvider.Builder
extends CopyableBuilder<ProfileCredentialsProvider.Builder,ProfileCredentialsProvider>
A builder for creating a custom
ProfileCredentialsProvider
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create aProfileCredentialsProvider
using the configuration applied to this builder.profileFile
(Consumer<ProfileFile.Builder> profileFile) Similar toprofileFile(ProfileFile)
, but takes a lambda to configure a newProfileFile.Builder
.profileFile
(Supplier<ProfileFile> profileFileSupplier) Define the mechanism for loading profile files.profileFile
(ProfileFile profileFile) Define the profile file that should be used by this credentials provider.profileName
(String profileName) Define the name of the profile that should be used by this credentials provider.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation
-
Method Details
-
profileFile
Define the profile file that should be used by this credentials provider. By default, theProfileFile.defaultProfileFile()
is used.- See Also:
-
profileFile
Similar toprofileFile(ProfileFile)
, but takes a lambda to configure a newProfileFile.Builder
. This removes the need to calledProfileFile.builder()
andProfileFile.Builder.build()
. -
profileFile
Define the mechanism for loading profile files.- Parameters:
profileFileSupplier
- Supplier interface for generating a ProfileFile instance.- See Also:
-
profileName
Define the name of the profile that should be used by this credentials provider. By default, the value inProfileFileSystemSetting.AWS_PROFILE
is used. -
build
ProfileCredentialsProvider build()Create aProfileCredentialsProvider
using the configuration applied to this builder.- Specified by:
build
in interfaceBuildable
- Specified by:
build
in interfaceSdkBuilder<ProfileCredentialsProvider.Builder,
ProfileCredentialsProvider> - Returns:
- an instance of T
-