public static final class AwsSessionCredentials.Builder extends Object implements CopyableBuilder<AwsSessionCredentials.Builder,AwsSessionCredentials>
AwsSessionCredentials. This can be created with the static
AwsSessionCredentials.builder() method.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
AwsSessionCredentials.Builder |
accessKeyId(String accessKeyId)
The AWS access key, used to identify the user interacting with services.
|
AwsSessionCredentials.Builder |
accountId(String accountId)
The AWS accountId
|
AwsSessionCredentials |
build()
An immutable object that is created from the
properties that have been set on the builder.
|
AwsSessionCredentials.Builder |
expirationTime(Instant expirationTime)
The time after which this identity will no longer be valid.
|
AwsSessionCredentials.Builder |
providerName(String providerName)
The name of the identity provider that created this credential identity.
|
AwsSessionCredentials.Builder |
secretAccessKey(String secretAccessKey)
The AWS secret access key, used to authenticate the user interacting with services.
|
AwsSessionCredentials.Builder |
sessionToken(String sessionToken)
The AWS session token, retrieved from an AWS token service, used for authenticating that this user has
received temporary permission to access some resource.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopyapplyMutationpublic AwsSessionCredentials.Builder accessKeyId(String accessKeyId)
public AwsSessionCredentials.Builder secretAccessKey(String secretAccessKey)
public AwsSessionCredentials.Builder sessionToken(String sessionToken)
public AwsSessionCredentials.Builder accountId(String accountId)
accountId - public AwsSessionCredentials.Builder expirationTime(Instant expirationTime)
public AwsSessionCredentials.Builder providerName(String providerName)
public AwsSessionCredentials build()
SdkBuilderbuild in interface Buildablebuild in interface SdkBuilder<AwsSessionCredentials.Builder,AwsSessionCredentials>Copyright © 2026. All rights reserved.