Class CfnAgent.MemoryConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnAgent.MemoryConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAgent.MemoryConfigurationProperty>
- Enclosing interface:
CfnAgent.MemoryConfigurationProperty
@Stability(Stable)
public static final class CfnAgent.MemoryConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAgent.MemoryConfigurationProperty>
A builder for
CfnAgent.MemoryConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.enabledMemoryTypes(List<String> enabledMemoryTypes) Sets the value ofCfnAgent.MemoryConfigurationProperty.getEnabledMemoryTypes()sessionSummaryConfiguration(IResolvable sessionSummaryConfiguration) Sets the value ofCfnAgent.MemoryConfigurationProperty.getSessionSummaryConfiguration()sessionSummaryConfiguration(CfnAgent.SessionSummaryConfigurationProperty sessionSummaryConfiguration) Sets the value ofCfnAgent.MemoryConfigurationProperty.getSessionSummaryConfiguration()storageDays(Number storageDays) Sets the value ofCfnAgent.MemoryConfigurationProperty.getStorageDays()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabledMemoryTypes
@Stability(Stable) public CfnAgent.MemoryConfigurationProperty.Builder enabledMemoryTypes(List<String> enabledMemoryTypes) Sets the value ofCfnAgent.MemoryConfigurationProperty.getEnabledMemoryTypes()- Parameters:
enabledMemoryTypes- The type of memory that is stored.- Returns:
this
-
sessionSummaryConfiguration
@Stability(Stable) public CfnAgent.MemoryConfigurationProperty.Builder sessionSummaryConfiguration(IResolvable sessionSummaryConfiguration) Sets the value ofCfnAgent.MemoryConfigurationProperty.getSessionSummaryConfiguration()- Parameters:
sessionSummaryConfiguration- Contains the configuration for SESSION_SUMMARY memory type enabled for the agent.- Returns:
this
-
sessionSummaryConfiguration
@Stability(Stable) public CfnAgent.MemoryConfigurationProperty.Builder sessionSummaryConfiguration(CfnAgent.SessionSummaryConfigurationProperty sessionSummaryConfiguration) Sets the value ofCfnAgent.MemoryConfigurationProperty.getSessionSummaryConfiguration()- Parameters:
sessionSummaryConfiguration- Contains the configuration for SESSION_SUMMARY memory type enabled for the agent.- Returns:
this
-
storageDays
@Stability(Stable) public CfnAgent.MemoryConfigurationProperty.Builder storageDays(Number storageDays) Sets the value ofCfnAgent.MemoryConfigurationProperty.getStorageDays()- Parameters:
storageDays- The number of days the agent is configured to retain the conversational context.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAgent.MemoryConfigurationProperty>- Returns:
- a new instance of
CfnAgent.MemoryConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-