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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AssumedRole.BuilderaccessKeyId(String accessKeyId)The Amazon Web Services access key ID that identifies the credentials.AssumedRole.BuilderaccountId(String accountId)The unique identifier for the Amazon Web Services account that owns the entity that was used to get the credentials.AssumedRole.Builderarn(String arn)The Amazon Resource Name (ARN) of the entity that was used to get the credentials.AssumedRole.BuilderprincipalId(String principalId)The unique identifier for the entity that was used to get the credentials.default AssumedRole.BuildersessionContext(Consumer<SessionContext.Builder> sessionContext)The details of the session that was created for the credentials, including the entity that issued the session.AssumedRole.BuildersessionContext(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 Detail
-
accessKeyId
AssumedRole.Builder accessKeyId(String 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
AssumedRole.Builder accountId(String 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
AssumedRole.Builder arn(String 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
AssumedRole.Builder principalId(String 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
AssumedRole.Builder sessionContext(SessionContext 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
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.
This is a convenience method that creates an instance of theSessionContext.Builderavoiding the need to create one manually viaSessionContext.builder().When the
Consumercompletes,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:
sessionContext(SessionContext)
-
-