Interface CreateSessionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,BedrockAgentRuntimeRequest.Builder
,Buildable
,CopyableBuilder<CreateSessionRequest.Builder,
,CreateSessionRequest> SdkBuilder<CreateSessionRequest.Builder,
,CreateSessionRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateSessionRequest
@Mutable
@NotThreadSafe
public static interface CreateSessionRequest.Builder
extends BedrockAgentRuntimeRequest.Builder, SdkPojo, CopyableBuilder<CreateSessionRequest.Builder,CreateSessionRequest>
-
Method Summary
Modifier and TypeMethodDescriptionencryptionKeyArn
(String encryptionKeyArn) The Amazon Resource Name (ARN) of the KMS key to use to encrypt the session data.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.sessionMetadata
(Map<String, String> sessionMetadata) A map of key-value pairs containing attributes to be persisted across the session.Specify the key-value pairs for the tags that you want to attach to the session.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.BedrockAgentRuntimeRequest.Builder
build
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 Details
-
encryptionKeyArn
The Amazon Resource Name (ARN) of the KMS key to use to encrypt the session data. The user or role creating the session must have permission to use the key. For more information, see Amazon Bedrock session encryption.
- Parameters:
encryptionKeyArn
- The Amazon Resource Name (ARN) of the KMS key to use to encrypt the session data. The user or role creating the session must have permission to use the key. For more information, see Amazon Bedrock session encryption.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionMetadata
A map of key-value pairs containing attributes to be persisted across the session. For example, the user's ID, their language preference, and the type of device they are using.
- Parameters:
sessionMetadata
- A map of key-value pairs containing attributes to be persisted across the session. For example, the user's ID, their language preference, and the type of device they are using.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Specify the key-value pairs for the tags that you want to attach to the session.
- Parameters:
tags
- Specify the key-value pairs for the tags that you want to attach to the session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateSessionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateSessionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-