Interface ProfileTokenProvider.Builder
- Enclosing class:
ProfileTokenProvider
public static interface ProfileTokenProvider.Builder
A builder for creating a custom
ProfileTokenProvider
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create aProfileTokenProvider
using the configuration applied to this builder.profileFile
(Supplier<ProfileFile> profileFile) Define the profile file that should be used by this token provider.profileName
(String profileName) Define the name of the profile that should be used by this token provider.
-
Method Details
-
profileFile
Define the profile file that should be used by this token provider. By default, theProfileFile.defaultProfileFile()
is used. -
profileName
Define the name of the profile that should be used by this token provider. By default, the value inProfileFileSystemSetting.AWS_PROFILE
is used. -
build
ProfileTokenProvider build()Create aProfileTokenProvider
using the configuration applied to this builder.
-