Interface MemoryRecordSummary.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<MemoryRecordSummary.Builder,,MemoryRecordSummary> SdkBuilder<MemoryRecordSummary.Builder,,MemoryRecordSummary> SdkPojo
- Enclosing class:
- MemoryRecordSummary
@Mutable
@NotThreadSafe
public static interface MemoryRecordSummary.Builder
extends SdkPojo, CopyableBuilder<MemoryRecordSummary.Builder,MemoryRecordSummary>
-
Method Summary
Modifier and TypeMethodDescriptiondefault MemoryRecordSummary.Buildercontent(Consumer<MemoryContent.Builder> content) The content of the memory record.content(MemoryContent content) The content of the memory record.The timestamp when the memory record was created.memoryRecordId(String memoryRecordId) The unique identifier of the memory record.memoryStrategyId(String memoryStrategyId) The identifier of the memory strategy associated with this record.metadata(Map<String, MemoryRecordMetadataValue> metadata) A map of metadata key-value pairs associated with a memory record.namespaces(String... namespaces) The namespaces associated with this memory record.namespaces(Collection<String> namespaces) The namespaces associated with this memory record.The relevance score of the memory record when returned as part of a search result.Methods 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
-
memoryRecordId
The unique identifier of the memory record.
- Parameters:
memoryRecordId- The unique identifier of the memory record.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The content of the memory record.
- Parameters:
content- The content of the memory record.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The content of the memory record.
This is a convenience method that creates an instance of theMemoryContent.Builderavoiding the need to create one manually viaMemoryContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontent(MemoryContent).- Parameters:
content- a consumer that will call methods onMemoryContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
memoryStrategyId
The identifier of the memory strategy associated with this record.
- Parameters:
memoryStrategyId- The identifier of the memory strategy associated with this record.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
namespaces
The namespaces associated with this memory record.
- Parameters:
namespaces- The namespaces associated with this memory record.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
namespaces
The namespaces associated with this memory record.
- Parameters:
namespaces- The namespaces associated with this memory record.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The timestamp when the memory record was created.
- Parameters:
createdAt- The timestamp when the memory record was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
score
The relevance score of the memory record when returned as part of a search result. Higher values indicate greater relevance to the search query.
- Parameters:
score- The relevance score of the memory record when returned as part of a search result. Higher values indicate greater relevance to the search query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadata
A map of metadata key-value pairs associated with a memory record.
- Parameters:
metadata- A map of metadata key-value pairs associated with a memory record.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-