Interface MemoryRecord.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<MemoryRecord.Builder,,MemoryRecord> SdkBuilder<MemoryRecord.Builder,,MemoryRecord> SdkPojo
- Enclosing class:
- MemoryRecord
@Mutable
@NotThreadSafe
public static interface MemoryRecord.Builder
extends SdkPojo, CopyableBuilder<MemoryRecord.Builder,MemoryRecord>
-
Method Summary
Modifier and TypeMethodDescriptiondefault MemoryRecord.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.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. Namespaces help organize and categorize memory records.
- Parameters:
namespaces- The namespaces associated with this memory record. Namespaces help organize and categorize memory records.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
namespaces
The namespaces associated with this memory record. Namespaces help organize and categorize memory records.
- Parameters:
namespaces- The namespaces associated with this memory record. Namespaces help organize and categorize memory records.- 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.
-
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.
-