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 Summary
Modifier and TypeMethodDescriptiondefault MemoryRecordCreateInput.Buildercontent(Consumer<MemoryContent.Builder> content) The content to be stored within the memory record.content(MemoryContent content) The content to be stored within the memory record.memoryStrategyId(String memoryStrategyId) The ID of the memory strategy that defines how this memory record is grouped.metadata(Map<String, MemoryRecordMetadataValue> metadata) Metadata key-value pairs to be stored with the memory record.namespaces(String... namespaces) A list of namespace identifiers that categorize or group the memory record.namespaces(Collection<String> namespaces) A list of namespace identifiers that categorize or group the memory record.requestIdentifier(String requestIdentifier) A client-provided identifier for tracking this specific record creation request.Time at which the memory record was created.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
-
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
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 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:
-
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
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.
-