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 of
AwsBasicCredentials
. This can be created with the static
AwsBasicCredentials.builder()
method.-
Method Summary
Modifier and TypeMethodDescriptionaccessKeyId
(String accessKeyId) The AWS access key, used to identify the user interacting with services.The AWS account id associated with this credentials identity.build()
An immutable object that is created from the properties that have been set on the builder.providerName
(String providerName) The name of the identity provider that created this credential identity.secretAccessKey
(String secretAccessKey) The AWS secret access key, used to authenticate the user interacting with services.validateCredentials
(Boolean validateCredentials) Whether this class should verify that accessKeyId and secretAccessKey are not null.Methods inherited from class java.lang.Object
equals, 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 Details
-
accessKeyId
The AWS access key, used to identify the user interacting with services. -
secretAccessKey
The AWS secret access key, used to authenticate the user interacting with services. -
accountId
The AWS account id associated with this credentials identity. -
providerName
The name of the identity provider that created this credential identity. -
validateCredentials
Whether this class should verify that accessKeyId and secretAccessKey are not null. Used internally by the SDK for legacy reasons. -
build
Description copied from interface:SdkBuilder
An immutable object that is created from the properties that have been set on the builder.- Specified by:
build
in interfaceBuildable
- Specified by:
build
in interfaceSdkBuilder<AwsBasicCredentials.Builder,
AwsBasicCredentials> - Returns:
- an instance of T
-