Interface AssumedRole.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AssumedRole.Builder,
,AssumedRole> SdkBuilder<AssumedRole.Builder,
,AssumedRole> SdkPojo
- Enclosing class:
AssumedRole
public static interface AssumedRole.Builder
extends SdkPojo, CopyableBuilder<AssumedRole.Builder,AssumedRole>
-
Method Summary
Modifier and TypeMethodDescriptionaccessKeyId
(String accessKeyId) The Amazon Web Services access key ID that identifies the credentials.The unique identifier for the Amazon Web Services account that owns the entity that was used to get the credentials.The Amazon Resource Name (ARN) of the entity that was used to get the credentials.principalId
(String principalId) The unique identifier for the entity that was used to get the credentials.default AssumedRole.Builder
sessionContext
(Consumer<SessionContext.Builder> sessionContext) The details of the session that was created for the credentials, including the entity that issued the session.sessionContext
(SessionContext sessionContext) The details of the session that was created for the credentials, including the entity that issued the session.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, sdkFields
-
Method Details
-
accessKeyId
The Amazon Web Services access key ID that identifies the credentials.
- Parameters:
accessKeyId
- The Amazon Web Services access key ID that identifies the credentials.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountId
The unique identifier for the Amazon Web Services account that owns the entity that was used to get the credentials.
- Parameters:
accountId
- The unique identifier for the Amazon Web Services account that owns the entity that was used to get the credentials.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
The Amazon Resource Name (ARN) of the entity that was used to get the credentials.
- Parameters:
arn
- The Amazon Resource Name (ARN) of the entity that was used to get the credentials.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principalId
The unique identifier for the entity that was used to get the credentials.
- Parameters:
principalId
- The unique identifier for the entity that was used to get the credentials.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionContext
The details of the session that was created for the credentials, including the entity that issued the session.
- Parameters:
sessionContext
- The details of the session that was created for the credentials, including the entity that issued the session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionContext
The details of the session that was created for the credentials, including the entity that issued the session.
This is a convenience method that creates an instance of theSessionContext.Builder
avoiding the need to create one manually viaSessionContext.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosessionContext(SessionContext)
.- Parameters:
sessionContext
- a consumer that will call methods onSessionContext.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-