Class MemoryRecordUpdateInput

java.lang.Object
software.amazon.awssdk.services.bedrockagentcore.model.MemoryRecordUpdateInput
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<MemoryRecordUpdateInput.Builder,MemoryRecordUpdateInput>

@Generated("software.amazon.awssdk:codegen") public final class MemoryRecordUpdateInput extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MemoryRecordUpdateInput.Builder,MemoryRecordUpdateInput>

Input structure to update an existing memory record.

See Also:
  • Method Details

    • memoryRecordId

      public final String memoryRecordId()

      The unique ID of the memory record to be updated.

      Returns:
      The unique ID of the memory record to be updated.
    • timestamp

      public final Instant timestamp()

      Time at which the memory record was updated

      Returns:
      Time at which the memory record was updated
    • content

      public final MemoryContent content()

      The content to be stored within the memory record.

      Returns:
      The content to be stored within the memory 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 the isEmpty() 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

      public final List<String> namespaces()

      The updated list of namespace identifiers for categorizing 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:
      The updated list of namespace identifiers for categorizing the memory record.
    • memoryStrategyId

      public final String memoryStrategyId()

      The updated ID of the memory strategy that defines how this memory record is grouped.

      Returns:
      The updated 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 the isEmpty() 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

      public final Map<String,MemoryRecordMetadataValue> 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

      public MemoryRecordUpdateInput.Builder toBuilder()
      Specified by:
      toBuilder in interface ToCopyableBuilder<MemoryRecordUpdateInput.Builder,MemoryRecordUpdateInput>
    • builder

      public static MemoryRecordUpdateInput.Builder builder()
    • serializableBuilderClass

      public static Class<? extends MemoryRecordUpdateInput.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Specified by:
      equalsBySdkFields in interface SdkPojo
    • toString

      public final String 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo