Interface AwsCredentials.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AwsCredentials.Builder,,AwsCredentials> SdkBuilder<AwsCredentials.Builder,,AwsCredentials> SdkPojo
- Enclosing class:
AwsCredentials
@Mutable
@NotThreadSafe
public static interface AwsCredentials.Builder
extends SdkPojo, CopyableBuilder<AwsCredentials.Builder,AwsCredentials>
-
Method Summary
Modifier and TypeMethodDescriptionaccessKeyId(String accessKeyId) The AWS access key ID.expiration(Instant expiration) The timestamp when the credentials expire.secretAccessKey(String secretAccessKey) The AWS secret access key.sessionToken(String sessionToken) The AWS session token.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
accessKeyId
The AWS access key ID.
- Parameters:
accessKeyId- The AWS access key ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secretAccessKey
The AWS secret access key.
- Parameters:
secretAccessKey- The AWS secret access key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionToken
The AWS session token.
- Parameters:
sessionToken- The AWS session token.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expiration
The timestamp when the credentials expire.
- Parameters:
expiration- The timestamp when the credentials expire.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-