Interface UpdateMemoryRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentCoreControlRequest.Builder,Buildable,CopyableBuilder<UpdateMemoryRequest.Builder,,UpdateMemoryRequest> SdkBuilder<UpdateMemoryRequest.Builder,,UpdateMemoryRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateMemoryRequest
-
Method Summary
Modifier and TypeMethodDescriptionaddIndexedKeys(Collection<IndexedKey> addIndexedKeys) Additional metadata keys to index.addIndexedKeys(Consumer<IndexedKey.Builder>... addIndexedKeys) Additional metadata keys to index.addIndexedKeys(IndexedKey... addIndexedKeys) Additional metadata keys to index.clientToken(String clientToken) A client token is used for keeping track of idempotent requests.description(String description) The updated description of the AgentCore Memory resource.eventExpiryDuration(Integer eventExpiryDuration) The number of days after which memory events expire, between 7 and 3650 days.memoryExecutionRoleArn(String memoryExecutionRoleArn) The ARN of the IAM role that provides permissions for the AgentCore Memory resource.The unique identifier of the memory to update.default UpdateMemoryRequest.BuildermemoryStrategies(Consumer<ModifyMemoryStrategies.Builder> memoryStrategies) The memory strategies to add, modify, or delete.memoryStrategies(ModifyMemoryStrategies memoryStrategies) The memory strategies to add, modify, or delete.namespaceKeys(Collection<NamespaceKeyEntry> namespaceKeys) The namespace variable key definitions with validation rules for this memory.namespaceKeys(Consumer<NamespaceKeyEntry.Builder>... namespaceKeys) The namespace variable key definitions with validation rules for this memory.namespaceKeys(NamespaceKeyEntry... namespaceKeys) The namespace variable key definitions with validation rules for this memory.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default UpdateMemoryRequest.BuilderstreamDeliveryResources(Consumer<StreamDeliveryResources.Builder> streamDeliveryResources) Configuration for streaming memory record data to external resources.streamDeliveryResources(StreamDeliveryResources streamDeliveryResources) Configuration for streaming memory record data to external resources.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.bedrockagentcorecontrol.model.BedrockAgentCoreControlRequest.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
-
clientToken
A client token is used for keeping track of idempotent requests. It can contain a session id which can be around 250 chars, combined with a unique Amazon Web Services identifier.
- Parameters:
clientToken- A client token is used for keeping track of idempotent requests. It can contain a session id which can be around 250 chars, combined with a unique Amazon Web Services identifier.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryId
The unique identifier of the memory to update.
- Parameters:
memoryId- The unique identifier of the memory to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The updated description of the AgentCore Memory resource.
- Parameters:
description- The updated description of the AgentCore Memory resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventExpiryDuration
The number of days after which memory events expire, between 7 and 3650 days.
- Parameters:
eventExpiryDuration- The number of days after which memory events expire, between 7 and 3650 days.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryExecutionRoleArn
The ARN of the IAM role that provides permissions for the AgentCore Memory resource.
- Parameters:
memoryExecutionRoleArn- The ARN of the IAM role that provides permissions for the AgentCore Memory resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryStrategies
The memory strategies to add, modify, or delete.
- Parameters:
memoryStrategies- The memory strategies to add, modify, or delete.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryStrategies
default UpdateMemoryRequest.Builder memoryStrategies(Consumer<ModifyMemoryStrategies.Builder> memoryStrategies) The memory strategies to add, modify, or delete.
This is a convenience method that creates an instance of theModifyMemoryStrategies.Builderavoiding the need to create one manually viaModifyMemoryStrategies.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomemoryStrategies(ModifyMemoryStrategies).- Parameters:
memoryStrategies- a consumer that will call methods onModifyMemoryStrategies.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
addIndexedKeys
Additional metadata keys to index. Previously indexed keys cannot be removed.
- Parameters:
addIndexedKeys- Additional metadata keys to index. Previously indexed keys cannot be removed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addIndexedKeys
Additional metadata keys to index. Previously indexed keys cannot be removed.
- Parameters:
addIndexedKeys- Additional metadata keys to index. Previously indexed keys cannot be removed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addIndexedKeys
Additional metadata keys to index. Previously indexed keys cannot be removed.
This is a convenience method that creates an instance of theIndexedKey.Builderavoiding the need to create one manually viaIndexedKey.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaddIndexedKeys(List<IndexedKey>).- Parameters:
addIndexedKeys- a consumer that will call methods onIndexedKey.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
namespaceKeys
The namespace variable key definitions with validation rules for this memory. This value fully replaces the existing set — any key you omit is removed. Any referenced
namespaceKeyomission will throw ValidationException.- Parameters:
namespaceKeys- The namespace variable key definitions with validation rules for this memory. This value fully replaces the existing set — any key you omit is removed. Any referencednamespaceKeyomission will throw ValidationException.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
namespaceKeys
The namespace variable key definitions with validation rules for this memory. This value fully replaces the existing set — any key you omit is removed. Any referenced
namespaceKeyomission will throw ValidationException.- Parameters:
namespaceKeys- The namespace variable key definitions with validation rules for this memory. This value fully replaces the existing set — any key you omit is removed. Any referencednamespaceKeyomission will throw ValidationException.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
namespaceKeys
The namespace variable key definitions with validation rules for this memory. This value fully replaces the existing set — any key you omit is removed. Any referenced
This is a convenience method that creates an instance of thenamespaceKeyomission will throw ValidationException.NamespaceKeyEntry.Builderavoiding the need to create one manually viaNamespaceKeyEntry.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonamespaceKeys(List<NamespaceKeyEntry>).- Parameters:
namespaceKeys- a consumer that will call methods onNamespaceKeyEntry.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
streamDeliveryResources
UpdateMemoryRequest.Builder streamDeliveryResources(StreamDeliveryResources streamDeliveryResources) Configuration for streaming memory record data to external resources.
- Parameters:
streamDeliveryResources- Configuration for streaming memory record data to external resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
streamDeliveryResources
default UpdateMemoryRequest.Builder streamDeliveryResources(Consumer<StreamDeliveryResources.Builder> streamDeliveryResources) Configuration for streaming memory record data to external resources.
This is a convenience method that creates an instance of theStreamDeliveryResources.Builderavoiding the need to create one manually viaStreamDeliveryResources.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostreamDeliveryResources(StreamDeliveryResources).- Parameters:
streamDeliveryResources- a consumer that will call methods onStreamDeliveryResources.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
UpdateMemoryRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateMemoryRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-