Class MemoryRecordSummary
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MemoryRecordSummary.Builder,MemoryRecordSummary>
Contains summary information about a memory record.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryRecordSummary.Builderbuilder()final MemoryContentcontent()The content of the memory record.final InstantThe timestamp when the memory record was created.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final booleanFor responses, this returns true if the service returned a value for the Metadata property.final booleanFor responses, this returns true if the service returned a value for the Namespaces property.final StringThe unique identifier of the memory record.final StringThe identifier of the memory strategy associated with this record.final Map<String,MemoryRecordMetadataValue> metadata()A map of metadata key-value pairs associated with a memory record.The namespaces associated with this memory record.final Doublescore()The relevance score of the memory record when returned as part of a search result.static Class<? extends MemoryRecordSummary.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
memoryRecordId
The unique identifier of the memory record.
- Returns:
- The unique identifier of the memory record.
-
content
The content of the memory record.
- Returns:
- The content of the memory record.
-
memoryStrategyId
The identifier of the memory strategy associated with this record.
- Returns:
- The identifier of the memory strategy associated with this record.
-
hasNamespaces
public final boolean hasNamespaces()For responses, this returns true if the service returned a value for the Namespaces property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
namespaces
The namespaces associated with this memory record.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasNamespaces()method.- Returns:
- The namespaces associated with this memory record.
-
createdAt
The timestamp when the memory record was created.
- Returns:
- The timestamp when the memory record was created.
-
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:
- The relevance score of the memory record when returned as part of a search result. Higher values indicate greater relevance to the search query.
-
hasMetadata
public final boolean hasMetadata()For responses, this returns true if the service returned a value for the Metadata property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
metadata
A map of metadata key-value pairs associated with a memory record.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasMetadata()method.- Returns:
- A map of metadata key-value pairs associated with a memory record.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<MemoryRecordSummary.Builder,MemoryRecordSummary>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-