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) overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) 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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.BedrockAgentRuntimeRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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) - Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateSessionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) - Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-