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- The event expiry configuration. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnMemoryProps.getName()- Parameters:
name- The memory name. 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- The memory encryption key Amazon Resource Name (ARN).- Returns:
this
-
memoryExecutionRoleArn
@Stability(Stable) public CfnMemoryProps.Builder memoryExecutionRoleArn(String memoryExecutionRoleArn) Sets the value ofCfnMemoryProps.getMemoryExecutionRoleArn()- Parameters:
memoryExecutionRoleArn- The memory role ARN.- Returns:
this
-
memoryStrategies
Sets the value ofCfnMemoryProps.getMemoryStrategies()- Parameters:
memoryStrategies- The memory strategies.- Returns:
this
-
memoryStrategies
@Stability(Stable) public CfnMemoryProps.Builder memoryStrategies(List<? extends Object> memoryStrategies) Sets the value ofCfnMemoryProps.getMemoryStrategies()- Parameters:
memoryStrategies- The memory strategies.- Returns:
this
-
tags
Sets the value ofCfnMemoryProps.getTags()- Parameters:
tags- The tags for the resources.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMemoryProps>- Returns:
- a new instance of
CfnMemoryProps - Throws:
NullPointerException- if any required attribute was not provided
-