Class MemoryRecordCreateInput
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MemoryRecordCreateInput.Builder,MemoryRecordCreateInput>
Input structure to create a new memory record.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final MemoryContentcontent()The content to be stored within the memory record.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 ID of the memory strategy that defines how this memory record is grouped.final Map<String,MemoryRecordMetadataValue> metadata()Metadata key-value pairs to be stored with the memory record.A list of namespace identifiers that categorize or group the memory record.final StringA client-provided identifier for tracking this specific record creation request.static Class<? extends MemoryRecordCreateInput.Builder>final InstantTime at which the memory record was created.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
-
requestIdentifier
A client-provided identifier for tracking this specific record creation request.
- Returns:
- A client-provided identifier for tracking this specific record creation request.
-
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
A list of namespace identifiers that categorize or group the 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:
- A list of namespace identifiers that categorize or group the memory record.
-
content
The content to be stored within the memory record.
- Returns:
- The content to be stored within the memory record.
-
timestamp
Time at which the memory record was created.
- Returns:
- Time at which the memory record was created.
-
memoryStrategyId
The ID of the memory strategy that defines how this memory record is grouped.
- Returns:
- The ID of the memory strategy that defines how this memory record is grouped.
-
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
Metadata key-value pairs to be stored with the 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:
- Metadata key-value pairs to be stored with the memory record.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<MemoryRecordCreateInput.Builder,MemoryRecordCreateInput>
-
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
-