Interface UpdateMemoryRequest.Builder

  • Method Details

    • spaceId

      The ID of the space that owns the memory, for example sp-02864597b164.

      Parameters:
      spaceId - The ID of the space that owns the memory, for example sp-02864597b164.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • memoryId

      UpdateMemoryRequest.Builder memoryId(String memoryId)

      The ID of the memory to update.

      Parameters:
      memoryId - The ID of the memory to update.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • content

      Replacement memory text. Supplying it re-embeds the memory. Omit to leave the text unchanged.

      Parameters:
      content - Replacement memory text. Supplying it re-embeds the memory. Omit to leave the text unchanged.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metadata

      The metadata tags to apply. By default this map replaces the stored metadata, and any key not present is removed. Set metadataMode to MERGE to keep the keys you don't supply. Limits apply to the resulting metadata, not to the request. Keys that begin with x-amz- and the key documentS3Source are reserved: a request that sets one fails with ValidationException.

      A space can use at most 50 distinct metadata keys across all of its events and memories. A request that would add a key beyond that fails with ValidationException. Reuse an existing key instead.

      Parameters:
      metadata - The metadata tags to apply. By default this map replaces the stored metadata, and any key not present is removed. Set metadataMode to MERGE to keep the keys you don't supply. Limits apply to the resulting metadata, not to the request. Keys that begin with x-amz- and the key documentS3Source are reserved: a request that sets one fails with ValidationException.

      A space can use at most 50 distinct metadata keys across all of its events and memories. A request that would add a key beyond that fails with ValidationException. Reuse an existing key instead.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metadataMode

      UpdateMemoryRequest.Builder metadataMode(String metadataMode)

      How metadata combines with what is stored. The default is REPLACE.

      Parameters:
      metadataMode - How metadata combines with what is stored. The default is REPLACE.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • metadataMode

      UpdateMemoryRequest.Builder metadataMode(MetadataMode metadataMode)

      How metadata combines with what is stored. The default is REPLACE.

      Parameters:
      metadataMode - How metadata combines with what is stored. The default is REPLACE.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • actorId

      The ID of the actor that the memory must belong to. Omit it to skip this check. If it doesn't match the stored memory, the call fails with ResourceNotFoundException, as if the memory did not exist.

      Parameters:
      actorId - The ID of the actor that the memory must belong to. Omit it to skip this check. If it doesn't match the stored memory, the call fails with ResourceNotFoundException, as if the memory did not exist.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • strategyName

      UpdateMemoryRequest.Builder strategyName(String strategyName)

      The name of the strategy that the memory must belong to. Omit it to skip this check. If it doesn't match the stored memory, the call fails with ResourceNotFoundException, as if the memory did not exist.

      Parameters:
      strategyName - The name of the strategy that the memory must belong to. Omit it to skip this check. If it doesn't match the stored memory, the call fails with ResourceNotFoundException, as if the memory did not exist.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      UpdateMemoryRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.