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 Summary
Modifier and TypeMethodDescriptionmaxResults(Integer maxResults) The maximum number of results to return in a single call.The identifier of the AgentCore Memory resource for which to list memory records.memoryStrategyId(String memoryStrategyId) The memory strategy identifier to filter memory records by.metadataFilters(Collection<MemoryMetadataFilterExpression> metadataFilters) A list of metadata filter expressions to scope the returned memory records.metadataFilters(Consumer<MemoryMetadataFilterExpression.Builder>... metadataFilters) A list of metadata filter expressions to scope the returned memory records.metadataFilters(MemoryMetadataFilterExpression... metadataFilters) A list of metadata filter expressions to scope the returned memory records.The namespace prefix to filter memory records by.namespacePath(String namespacePath) Use namespacePath for hierarchical retrievals.The token for the next set of results.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.bedrockagentcore.model.BedrockAgentCoreRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
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
namespaceornamespacePathis required.- Parameters:
namespace- The namespace prefix to filter memory records by. Returns all memory records in namespaces that start with the provided prefix. EithernamespaceornamespacePathis required.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
namespacePath
Use namespacePath for hierarchical retrievals. Return all memory records where namespace falls under the same parent hierarchy. Either
namespaceornamespacePathis required.- Parameters:
namespacePath- Use namespacePath for hierarchical retrievals. Return all memory records where namespace falls under the same parent hierarchy. EithernamespaceornamespacePathis required.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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
ListMemoryRecordsRequest.Builder metadataFilters(Collection<MemoryMetadataFilterExpression> 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
ListMemoryRecordsRequest.Builder metadataFilters(Consumer<MemoryMetadataFilterExpression.Builder>... metadataFilters) A list of metadata filter expressions to scope the returned memory records.
This is a convenience method that creates an instance of theMemoryMetadataFilterExpression.Builderavoiding the need to create one manually viaMemoryMetadataFilterExpression.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometadataFilters(List<MemoryMetadataFilterExpression>).- Parameters:
metadataFilters- a consumer that will call methods onMemoryMetadataFilterExpression.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:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
ListMemoryRecordsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) - Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-