Interface RetrieveMemoryRecordsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentCoreRequest.Builder,Buildable,CopyableBuilder<RetrieveMemoryRecordsRequest.Builder,,RetrieveMemoryRecordsRequest> SdkBuilder<RetrieveMemoryRecordsRequest.Builder,,RetrieveMemoryRecordsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
- RetrieveMemoryRecordsRequest
-
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 from which to retrieve 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) searchCriteria(Consumer<SearchCriteria.Builder> searchCriteria) The search criteria to use for finding relevant memory records.searchCriteria(SearchCriteria searchCriteria) The search criteria to use for finding relevant memory records.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 from which to retrieve memory records.
- Parameters:
memoryId- The identifier of the AgentCore Memory resource from which to retrieve 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. Searches for memory records in namespaces that start with the provided prefix. Either
namespaceornamespacePathis required.- Parameters:
namespace- The namespace prefix to filter memory records by. Searches for 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.
-
searchCriteria
The search criteria to use for finding relevant memory records. This includes the search query, memory strategy ID, and other search parameters.
- Parameters:
searchCriteria- The search criteria to use for finding relevant memory records. This includes the search query, memory strategy ID, and other search parameters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
searchCriteria
default RetrieveMemoryRecordsRequest.Builder searchCriteria(Consumer<SearchCriteria.Builder> searchCriteria) The search criteria to use for finding relevant memory records. This includes the search query, memory strategy ID, and other search parameters.
This is a convenience method that creates an instance of theSearchCriteria.Builderavoiding the need to create one manually viaSearchCriteria.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosearchCriteria(SearchCriteria).- Parameters:
searchCriteria- a consumer that will call methods onSearchCriteria.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-
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.
-
overrideConfiguration
RetrieveMemoryRecordsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) - Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
RetrieveMemoryRecordsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) - Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-