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.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.bedrockagentcorecontrol.model.BedrockAgentCoreControlRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods 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.Builder
avoiding the need to create one manually viaMemoryStrategyInput.builder()
.When the
Consumer
completes,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:
-
overrideConfiguration
CreateMemoryRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in 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.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-