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 customProfileCredentialsProvider
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProfileCredentialsProvider
build()
Create aProfileCredentialsProvider
using the configuration applied to this builder.ProfileCredentialsProvider.Builder
profileFile(Consumer<ProfileFile.Builder> profileFile)
Similar toprofileFile(ProfileFile)
, but takes a lambda to configure a newProfileFile.Builder
.ProfileCredentialsProvider.Builder
profileFile(Supplier<ProfileFile> profileFileSupplier)
Define the mechanism for loading profile files.ProfileCredentialsProvider.Builder
profileFile(ProfileFile profileFile)
Define the profile file that should be used by this credentials provider.ProfileCredentialsProvider.Builder
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 Detail
-
profileFile
ProfileCredentialsProvider.Builder profileFile(ProfileFile profileFile)
Define the profile file that should be used by this credentials provider. By default, theProfileFile.defaultProfileFile()
is used.- See Also:
profileFile(Supplier)
-
profileFile
ProfileCredentialsProvider.Builder profileFile(Consumer<ProfileFile.Builder> profileFile)
Similar toprofileFile(ProfileFile)
, but takes a lambda to configure a newProfileFile.Builder
. This removes the need to calledProfileFile.builder()
andProfileFile.Builder.build()
.
-
profileFile
ProfileCredentialsProvider.Builder profileFile(Supplier<ProfileFile> profileFileSupplier)
Define the mechanism for loading profile files.- Parameters:
profileFileSupplier
- Supplier interface for generating a ProfileFile instance.- See Also:
profileFile(ProfileFile)
-
profileName
ProfileCredentialsProvider.Builder profileName(String 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>
-
-