Class CfnMemoryProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.CfnMemoryProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMemoryProps>
- Enclosing interface:
CfnMemoryProps
@Stability(Stable)
public static final class CfnMemoryProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMemoryProps>
A builder for
CfnMemoryProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCfnMemoryProps.getDescription()
encryptionKeyArn
(String encryptionKeyArn) Sets the value ofCfnMemoryProps.getEncryptionKeyArn()
eventExpiryDuration
(Number eventExpiryDuration) Sets the value ofCfnMemoryProps.getEventExpiryDuration()
memoryExecutionRoleArn
(String memoryExecutionRoleArn) Sets the value ofCfnMemoryProps.getMemoryExecutionRoleArn()
memoryStrategies
(List<? extends Object> memoryStrategies) Sets the value ofCfnMemoryProps.getMemoryStrategies()
memoryStrategies
(IResolvable memoryStrategies) Sets the value ofCfnMemoryProps.getMemoryStrategies()
Sets the value ofCfnMemoryProps.getName()
Sets the value ofCfnMemoryProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
eventExpiryDuration
Sets the value ofCfnMemoryProps.getEventExpiryDuration()
- Parameters:
eventExpiryDuration
- Duration in days until memory events expire. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnMemoryProps.getName()
- Parameters:
name
- Name of the Memory resource. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnMemoryProps.getDescription()
- Parameters:
description
- Description of the Memory resource.- Returns:
this
-
encryptionKeyArn
Sets the value ofCfnMemoryProps.getEncryptionKeyArn()
- Parameters:
encryptionKeyArn
- ARN format.- Returns:
this
-
memoryExecutionRoleArn
@Stability(Stable) public CfnMemoryProps.Builder memoryExecutionRoleArn(String memoryExecutionRoleArn) Sets the value ofCfnMemoryProps.getMemoryExecutionRoleArn()
- Parameters:
memoryExecutionRoleArn
- ARN format.- Returns:
this
-
memoryStrategies
Sets the value ofCfnMemoryProps.getMemoryStrategies()
- Parameters:
memoryStrategies
- List of memory strategies attached to this memory.- Returns:
this
-
memoryStrategies
@Stability(Stable) public CfnMemoryProps.Builder memoryStrategies(List<? extends Object> memoryStrategies) Sets the value ofCfnMemoryProps.getMemoryStrategies()
- Parameters:
memoryStrategies
- List of memory strategies attached to this memory.- Returns:
this
-
tags
Sets the value ofCfnMemoryProps.getTags()
- Parameters:
tags
- A map of tag keys and values.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnMemoryProps>
- Returns:
- a new instance of
CfnMemoryProps
- Throws:
NullPointerException
- if any required attribute was not provided
-