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.Builder
accessKeyId(String accessKeyId)
The AWS access key, used to identify the user interacting with services.AwsBasicCredentials.Builder
accountId(String accountId)
The AWS account id associated with this credentials identity.AwsBasicCredentials
build()
AwsBasicCredentials.Builder
providerName(String providerName)
The name of the identity provider that created this credential identity.AwsBasicCredentials.Builder
secretAccessKey(String secretAccessKey)
The AWS secret access key, used to authenticate the user interacting with services.AwsBasicCredentials.Builder
validateCredentials(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
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:
build
in interfaceBuildable
- Specified by:
build
in interfaceSdkBuilder<AwsBasicCredentials.Builder,AwsBasicCredentials>
-
-