Interface CreateMemoryRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentCoreControlRequest.Builder,Buildable,CopyableBuilder<CreateMemoryRequest.Builder,,CreateMemoryRequest> SdkBuilder<CreateMemoryRequest.Builder,,CreateMemoryRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateMemoryRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique, case-sensitive identifier to ensure that the operation completes no more than one time.description(String description) The description of the memory.encryptionKeyArn(String encryptionKeyArn) The Amazon Resource Name (ARN) of the KMS key used to encrypt the memory data.eventExpiryDuration(Integer eventExpiryDuration) The duration after which memory events expire.memoryExecutionRoleArn(String memoryExecutionRoleArn) The Amazon Resource Name (ARN) of the IAM role that provides permissions for the memory to access Amazon Web Services services.memoryStrategies(Collection<MemoryStrategyInput> memoryStrategies) The memory strategies to use for this memory.memoryStrategies(Consumer<MemoryStrategyInput.Builder>... memoryStrategies) The memory strategies to use for this memory.memoryStrategies(MemoryStrategyInput... memoryStrategies) The memory strategies to use for this memory.The name of the memory.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.A map of tag keys and values to assign to an AgentCore Memory.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 unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request but does not return an error.
- Parameters:
clientToken- A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request but does not return an error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the memory. The name must be unique within your account.
- Parameters:
name- The name of the memory. The name must be unique within your account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the memory.
- Parameters:
description- The description of the memory.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
encryptionKeyArn
The Amazon Resource Name (ARN) of the KMS key used to encrypt the memory data.
- Parameters:
encryptionKeyArn- The Amazon Resource Name (ARN) of the KMS key used to encrypt the memory data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryExecutionRoleArn
The Amazon Resource Name (ARN) of the IAM role that provides permissions for the memory to access Amazon Web Services services.
- Parameters:
memoryExecutionRoleArn- The Amazon Resource Name (ARN) of the IAM role that provides permissions for the memory to access Amazon Web Services services.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventExpiryDuration
The duration after which memory events expire. Specified as an ISO 8601 duration.
- Parameters:
eventExpiryDuration- The duration after which memory events expire. Specified as an ISO 8601 duration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryStrategies
The memory strategies to use for this memory. Strategies define how information is extracted, processed, and consolidated.
- Parameters:
memoryStrategies- The memory strategies to use for this memory. Strategies define how information is extracted, processed, and consolidated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryStrategies
The memory strategies to use for this memory. Strategies define how information is extracted, processed, and consolidated.
- Parameters:
memoryStrategies- The memory strategies to use for this memory. Strategies define how information is extracted, processed, and consolidated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryStrategies
CreateMemoryRequest.Builder memoryStrategies(Consumer<MemoryStrategyInput.Builder>... memoryStrategies) The memory strategies to use for this memory. Strategies define how information is extracted, processed, and consolidated.
This is a convenience method that creates an instance of theMemoryStrategyInput.Builderavoiding the need to create one manually viaMemoryStrategyInput.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomemoryStrategies(List<MemoryStrategyInput>).- Parameters:
memoryStrategies- a consumer that will call methods onMemoryStrategyInput.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
A map of tag keys and values to assign to an AgentCore Memory. Tags enable you to categorize your resources in different ways, for example, by purpose, owner, or environment.
- Parameters:
tags- A map of tag keys and values to assign to an AgentCore Memory. Tags enable you to categorize your resources in different ways, for example, by purpose, owner, or environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateMemoryRequest.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
CreateMemoryRequest.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.
-