Class AwsBasicCredentials.Builder
- java.lang.Object
-
- software.amazon.awssdk.auth.credentials.AwsBasicCredentials.Builder
-
- All Implemented Interfaces:
Buildable,CopyableBuilder<AwsBasicCredentials.Builder,AwsBasicCredentials>,SdkBuilder<AwsBasicCredentials.Builder,AwsBasicCredentials>
- Enclosing class:
- AwsBasicCredentials
public static final class AwsBasicCredentials.Builder extends Object implements CopyableBuilder<AwsBasicCredentials.Builder,AwsBasicCredentials>
A builder for creating an instance ofAwsBasicCredentials. This can be created with the staticAwsBasicCredentials.builder()method.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AwsBasicCredentials.BuilderaccessKeyId(String accessKeyId)The AWS access key, used to identify the user interacting with services.AwsBasicCredentials.BuilderaccountId(String accountId)The AWS account id associated with this credentials identity.AwsBasicCredentialsbuild()AwsBasicCredentials.BuilderproviderName(String providerName)The name of the identity provider that created this credential identity.AwsBasicCredentials.BuildersecretAccessKey(String secretAccessKey)The AWS secret access key, used to authenticate the user interacting with services.AwsBasicCredentials.BuildervalidateCredentials(Boolean validateCredentials)Whether this class should verify that accessKeyId and secretAccessKey are not null.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation
-
-
-
-
Method Detail
-
accessKeyId
public AwsBasicCredentials.Builder accessKeyId(String accessKeyId)
The AWS access key, used to identify the user interacting with services.
-
secretAccessKey
public AwsBasicCredentials.Builder secretAccessKey(String secretAccessKey)
The AWS secret access key, used to authenticate the user interacting with services.
-
accountId
public AwsBasicCredentials.Builder accountId(String accountId)
The AWS account id associated with this credentials identity.
-
providerName
public AwsBasicCredentials.Builder providerName(String providerName)
The name of the identity provider that created this credential identity.
-
validateCredentials
@SdkInternalApi public AwsBasicCredentials.Builder validateCredentials(Boolean validateCredentials)
Whether this class should verify that accessKeyId and secretAccessKey are not null. Used internally by the SDK for legacy reasons.
-
build
public AwsBasicCredentials build()
- Specified by:
buildin interfaceBuildable- Specified by:
buildin interfaceSdkBuilder<AwsBasicCredentials.Builder,AwsBasicCredentials>
-
-