Interface SessionCredentials.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<SessionCredentials.Builder,SessionCredentials>
,SdkBuilder<SessionCredentials.Builder,SessionCredentials>
,SdkPojo
- Enclosing class:
- SessionCredentials
public static interface SessionCredentials.Builder extends SdkPojo, CopyableBuilder<SessionCredentials.Builder,SessionCredentials>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SessionCredentials.Builder
accessKeyId(String accessKeyId)
A unique identifier that's associated with a secret access key.SessionCredentials.Builder
expiration(Instant expiration)
Temporary security credentials expire after a specified interval.SessionCredentials.Builder
secretAccessKey(String secretAccessKey)
A key that's used with the access key ID to cryptographically sign programmatic Amazon Web Services requests.SessionCredentials.Builder
sessionToken(String sessionToken)
A part of the temporary security credentials.-
Methods 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 Detail
-
accessKeyId
SessionCredentials.Builder accessKeyId(String accessKeyId)
A unique identifier that's associated with a secret access key. The access key ID and the secret access key are used together to sign programmatic Amazon Web Services requests cryptographically.
- Parameters:
accessKeyId
- A unique identifier that's associated with a secret access key. The access key ID and the secret access key are used together to sign programmatic Amazon Web Services requests cryptographically.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secretAccessKey
SessionCredentials.Builder secretAccessKey(String secretAccessKey)
A key that's used with the access key ID to cryptographically sign programmatic Amazon Web Services requests. Signing a request identifies the sender and prevents the request from being altered.
- Parameters:
secretAccessKey
- A key that's used with the access key ID to cryptographically sign programmatic Amazon Web Services requests. Signing a request identifies the sender and prevents the request from being altered.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionToken
SessionCredentials.Builder sessionToken(String sessionToken)
A part of the temporary security credentials. The session token is used to validate the temporary security credentials.
- Parameters:
sessionToken
- A part of the temporary security credentials. The session token is used to validate the temporary security credentials.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expiration
SessionCredentials.Builder expiration(Instant expiration)
Temporary security credentials expire after a specified interval. After temporary credentials expire, any calls that you make with those credentials will fail. So you must generate a new set of temporary credentials. Temporary credentials cannot be extended or refreshed beyond the original specified interval.
- Parameters:
expiration
- Temporary security credentials expire after a specified interval. After temporary credentials expire, any calls that you make with those credentials will fail. So you must generate a new set of temporary credentials. Temporary credentials cannot be extended or refreshed beyond the original specified interval.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-