Interface MemoryRecordCreateInput.Builder

All Superinterfaces:
Buildable, CopyableBuilder<MemoryRecordCreateInput.Builder,MemoryRecordCreateInput>, SdkBuilder<MemoryRecordCreateInput.Builder,MemoryRecordCreateInput>, SdkPojo
Enclosing class:
MemoryRecordCreateInput

@Mutable @NotThreadSafe public static interface MemoryRecordCreateInput.Builder extends SdkPojo, CopyableBuilder<MemoryRecordCreateInput.Builder,MemoryRecordCreateInput>
  • Method Details

    • requestIdentifier

      MemoryRecordCreateInput.Builder requestIdentifier(String requestIdentifier)

      A client-provided identifier for tracking this specific record creation request.

      Parameters:
      requestIdentifier - A client-provided identifier for tracking this specific record creation request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • namespaces

      A list of namespace identifiers that categorize or group the memory record.

      Parameters:
      namespaces - A list of namespace identifiers that categorize or group the memory record.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • namespaces

      MemoryRecordCreateInput.Builder namespaces(String... namespaces)

      A list of namespace identifiers that categorize or group the memory record.

      Parameters:
      namespaces - A list of namespace identifiers that categorize or group the memory record.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • content

      The content to be stored within the memory record.

      Parameters:
      content - The content to be stored within the memory record.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • content

      The content to be stored within the memory record.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to content(MemoryContent).

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

      Time at which the memory record was created.

      Parameters:
      timestamp - Time at which the memory record was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • memoryStrategyId

      MemoryRecordCreateInput.Builder memoryStrategyId(String memoryStrategyId)

      The ID of the memory strategy that defines how this memory record is grouped.

      Parameters:
      memoryStrategyId - The ID of the memory strategy that defines how this memory record is grouped.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metadata

      Metadata key-value pairs to be stored with the memory record.

      Parameters:
      metadata - Metadata key-value pairs to be stored with the memory record.
      Returns:
      Returns a reference to this object so that method calls can be chained together.