public static final class ProfileCredentialsProvider.Builder extends Object
ProfileCredentialsProvider.| Modifier and Type | Method and Description |
|---|---|
ProfileCredentialsProvider |
build()
Create a
ProfileCredentialsProvider using the configuration applied to this builder. |
ProfileCredentialsProvider.Builder |
profileFile(Consumer<ProfileFile.Builder> profileFile)
Similar to
profileFile(ProfileFile), but takes a lambda to configure a new ProfileFile.Builder. |
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.
|
public ProfileCredentialsProvider.Builder profileFile(ProfileFile profileFile)
ProfileFile.defaultProfileFile() is used.public ProfileCredentialsProvider.Builder profileFile(Consumer<ProfileFile.Builder> profileFile)
profileFile(ProfileFile), but takes a lambda to configure a new ProfileFile.Builder. This
removes the need to called ProfileFile.builder() and ProfileFile.Builder#build().public ProfileCredentialsProvider.Builder profileName(String profileName)
SdkSystemSetting.AWS_PROFILE is used.public ProfileCredentialsProvider build()
ProfileCredentialsProvider using the configuration applied to this builder.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.