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 ProfileCredentialsProviderbuild()Create aProfileCredentialsProviderusing the configuration applied to this builder.ProfileCredentialsProvider.BuilderprofileFile(Consumer<ProfileFile.Builder> profileFile)Similar toprofileFile(ProfileFile), but takes a lambda to configure a newProfileFile.Builder.ProfileCredentialsProvider.BuilderprofileFile(Supplier<ProfileFile> profileFileSupplier)Define the mechanism for loading profile files.ProfileCredentialsProvider.BuilderprofileFile(ProfileFile profileFile)Define the profile file that should be used by this credentials provider.ProfileCredentialsProvider.BuilderprofileName(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_PROFILEis used.
-
build
ProfileCredentialsProvider build()
Create aProfileCredentialsProviderusing the configuration applied to this builder.- Specified by:
buildin interfaceBuildable- Specified by:
buildin interfaceSdkBuilder<ProfileCredentialsProvider.Builder,ProfileCredentialsProvider>
-
-