Interface CreateMemoryRequest.Builder

  • Method Details

    • clientToken

      CreateMemoryRequest.Builder clientToken(String clientToken)

      A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request but does not return an error.

      Parameters:
      clientToken - A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request but does not return an error.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the memory. The name must be unique within your account.

      Parameters:
      name - The name of the memory. The name must be unique within your account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      CreateMemoryRequest.Builder description(String description)

      The description of the memory.

      Parameters:
      description - The description of the memory.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • encryptionKeyArn

      CreateMemoryRequest.Builder encryptionKeyArn(String encryptionKeyArn)

      The Amazon Resource Name (ARN) of the KMS key used to encrypt the memory data.

      Parameters:
      encryptionKeyArn - The Amazon Resource Name (ARN) of the KMS key used to encrypt the memory data.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • memoryExecutionRoleArn

      CreateMemoryRequest.Builder memoryExecutionRoleArn(String memoryExecutionRoleArn)

      The Amazon Resource Name (ARN) of the IAM role that provides permissions for the memory to access Amazon Web Services services.

      Parameters:
      memoryExecutionRoleArn - The Amazon Resource Name (ARN) of the IAM role that provides permissions for the memory to access Amazon Web Services services.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • eventExpiryDuration

      CreateMemoryRequest.Builder eventExpiryDuration(Integer eventExpiryDuration)

      The duration after which memory events expire. Specified as an ISO 8601 duration.

      Parameters:
      eventExpiryDuration - The duration after which memory events expire. Specified as an ISO 8601 duration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • memoryStrategies

      CreateMemoryRequest.Builder memoryStrategies(Collection<MemoryStrategyInput> memoryStrategies)

      The memory strategies to use for this memory. Strategies define how information is extracted, processed, and consolidated.

      Parameters:
      memoryStrategies - The memory strategies to use for this memory. Strategies define how information is extracted, processed, and consolidated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • memoryStrategies

      CreateMemoryRequest.Builder memoryStrategies(MemoryStrategyInput... memoryStrategies)

      The memory strategies to use for this memory. Strategies define how information is extracted, processed, and consolidated.

      Parameters:
      memoryStrategies - The memory strategies to use for this memory. Strategies define how information is extracted, processed, and consolidated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • memoryStrategies

      CreateMemoryRequest.Builder memoryStrategies(Consumer<MemoryStrategyInput.Builder>... memoryStrategies)

      The memory strategies to use for this memory. Strategies define how information is extracted, processed, and consolidated.

      This is a convenience method that creates an instance of the MemoryStrategyInput.Builder avoiding the need to create one manually via MemoryStrategyInput.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to memoryStrategies(List<MemoryStrategyInput>).

      Parameters:
      memoryStrategies - a consumer that will call methods on MemoryStrategyInput.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      CreateMemoryRequest.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.