Interface CreateSessionRequest.Builder

  • Method Details

    • 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

      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 interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.