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 IAM access key ID.expiration
(Instant expiration) The expiration date and time of the IAM credentials.secretAccessKey
(String secretAccessKey) The IAM secret access key.sessionToken
(String sessionToken) The IAM session tokenMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
accessKeyId
The IAM access key ID.
- Parameters:
accessKeyId
- The IAM access key ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secretAccessKey
The IAM secret access key.
- Parameters:
secretAccessKey
- The IAM secret access key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionToken
The IAM session token
- Parameters:
sessionToken
- The IAM session token- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expiration
The expiration date and time of the IAM credentials.
- Parameters:
expiration
- The expiration date and time of the IAM credentials.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-