Interface ListMemoryRecordsRequest.Builder

All Superinterfaces:
AwsRequest.Builder, BedrockAgentCoreRequest.Builder, Buildable, CopyableBuilder<ListMemoryRecordsRequest.Builder,ListMemoryRecordsRequest>, SdkBuilder<ListMemoryRecordsRequest.Builder,ListMemoryRecordsRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
ListMemoryRecordsRequest

  • Method Details

    • memoryId

      The identifier of the AgentCore Memory resource for which to list memory records.

      Parameters:
      memoryId - The identifier of the AgentCore Memory resource for which to list memory records.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • namespace

      The namespace prefix to filter memory records by. Returns all memory records in namespaces that start with the provided prefix. Either namespace or namespacePath is required.

      Parameters:
      namespace - The namespace prefix to filter memory records by. Returns all memory records in namespaces that start with the provided prefix. Either namespace or namespacePath is required.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • namespacePath

      ListMemoryRecordsRequest.Builder namespacePath(String namespacePath)

      Use namespacePath for hierarchical retrievals. Return all memory records where namespace falls under the same parent hierarchy. Either namespace or namespacePath is required.

      Parameters:
      namespacePath - Use namespacePath for hierarchical retrievals. Return all memory records where namespace falls under the same parent hierarchy. Either namespace or namespacePath is required.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • memoryStrategyId

      ListMemoryRecordsRequest.Builder memoryStrategyId(String memoryStrategyId)

      The memory strategy identifier to filter memory records by. If specified, only memory records with this strategy ID are returned.

      Parameters:
      memoryStrategyId - The memory strategy identifier to filter memory records by. If specified, only memory records with this strategy ID are returned.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxResults

      ListMemoryRecordsRequest.Builder maxResults(Integer maxResults)

      The maximum number of results to return in a single call. The default value is 20.

      Parameters:
      maxResults - The maximum number of results to return in a single call. The default value is 20.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nextToken

      The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

      Parameters:
      nextToken - The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metadataFilters

      A list of metadata filter expressions to scope the returned memory records.

      Parameters:
      metadataFilters - A list of metadata filter expressions to scope the returned memory records.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metadataFilters

      A list of metadata filter expressions to scope the returned memory records.

      Parameters:
      metadataFilters - A list of metadata filter expressions to scope the returned memory records.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metadataFilters

      A list of metadata filter expressions to scope the returned memory records.

      This is a convenience method that creates an instance of the MemoryMetadataFilterExpression.Builder avoiding the need to create one manually via MemoryMetadataFilterExpression.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to metadataFilters(List<MemoryMetadataFilterExpression>).

      Parameters:
      metadataFilters - a consumer that will call methods on MemoryMetadataFilterExpression.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      ListMemoryRecordsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
    • overrideConfiguration

      Specified by:
      overrideConfiguration in interface AwsRequest.Builder