Interface Memory.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Memory.Builder,,Memory> SdkBuilder<Memory.Builder,,Memory> SdkPojo
- Enclosing class:
Memory
-
Method Summary
Modifier and TypeMethodDescriptionThe memory text.The memory's ID, assigned by the service.memoryType(String memoryType) The memory type.memoryType(MemoryType memoryType) The memory type.The memory's metadata tags.strategyName(String strategyName) The name of the strategy the memory belongs to, for exampleuser-facts.default Memory.BuildersystemMetadata(Consumer<SystemMetadata.Builder> systemMetadata) Provenance for the memory: the owning actor and session, and when it was created and last updated.systemMetadata(SystemMetadata systemMetadata) Provenance for the memory: the owning actor and session, and when it was created and last updated.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
-
memoryId
The memory's ID, assigned by the service.
- Parameters:
memoryId- The memory's ID, assigned by the service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryType
The memory type.
- Parameters:
memoryType- The memory type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
memoryType
The memory type.
- Parameters:
memoryType- The memory type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
strategyName
The name of the strategy the memory belongs to, for example
user-facts. A space can hold several strategies of the same type, so this tells them apart. Absent when the memory's strategy is no longer declared on the space, for example right after the strategy is deleted.- Parameters:
strategyName- The name of the strategy the memory belongs to, for exampleuser-facts. A space can hold several strategies of the same type, so this tells them apart. Absent when the memory's strategy is no longer declared on the space, for example right after the strategy is deleted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The memory text.
- Parameters:
content- The memory text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
systemMetadata
Provenance for the memory: the owning actor and session, and when it was created and last updated. Always present.
updatedAtequalscreatedAtfor a memory that has never been updated.- Parameters:
systemMetadata- Provenance for the memory: the owning actor and session, and when it was created and last updated. Always present.updatedAtequalscreatedAtfor a memory that has never been updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
systemMetadata
Provenance for the memory: the owning actor and session, and when it was created and last updated. Always present.
This is a convenience method that creates an instance of theupdatedAtequalscreatedAtfor a memory that has never been updated.SystemMetadata.Builderavoiding the need to create one manually viaSystemMetadata.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosystemMetadata(SystemMetadata).- Parameters:
systemMetadata- a consumer that will call methods onSystemMetadata.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metadata
The memory's metadata tags. All values are strings. May be empty.
- Parameters:
metadata- The memory's metadata tags. All values are strings. May be empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-