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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateSessionRequest.BuilderencryptionKeyArn(String encryptionKeyArn)The Amazon Resource Name (ARN) of the KMS key to use to encrypt the session data.CreateSessionRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateSessionRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateSessionRequest.BuildersessionMetadata(Map<String,String> sessionMetadata)A map of key-value pairs containing attributes to be persisted across the session.CreateSessionRequest.Buildertags(Map<String,String> tags)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 Detail
-
encryptionKeyArn
CreateSessionRequest.Builder encryptionKeyArn(String 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
CreateSessionRequest.Builder sessionMetadata(Map<String,String> 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
CreateSessionRequest.Builder tags(Map<String,String> 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
-
-