Interface MemoryConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<MemoryConfiguration.Builder,
,MemoryConfiguration> SdkBuilder<MemoryConfiguration.Builder,
,MemoryConfiguration> SdkPojo
- Enclosing class:
MemoryConfiguration
@Mutable
@NotThreadSafe
public static interface MemoryConfiguration.Builder
extends SdkPojo, CopyableBuilder<MemoryConfiguration.Builder,MemoryConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptionenabledMemoryTypes
(Collection<MemoryType> enabledMemoryTypes) The type of memory that is stored.enabledMemoryTypes
(MemoryType... enabledMemoryTypes) The type of memory that is stored.enabledMemoryTypesWithStrings
(String... enabledMemoryTypes) The type of memory that is stored.enabledMemoryTypesWithStrings
(Collection<String> enabledMemoryTypes) The type of memory that is stored.default MemoryConfiguration.Builder
sessionSummaryConfiguration
(Consumer<SessionSummaryConfiguration.Builder> sessionSummaryConfiguration) Contains the configuration for SESSION_SUMMARY memory type enabled for the agent.sessionSummaryConfiguration
(SessionSummaryConfiguration sessionSummaryConfiguration) Contains the configuration for SESSION_SUMMARY memory type enabled for the agent.storageDays
(Integer storageDays) The number of days the agent is configured to retain the conversational context.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
-
enabledMemoryTypesWithStrings
The type of memory that is stored.
- Parameters:
enabledMemoryTypes
- The type of memory that is stored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enabledMemoryTypesWithStrings
The type of memory that is stored.
- Parameters:
enabledMemoryTypes
- The type of memory that is stored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enabledMemoryTypes
The type of memory that is stored.
- Parameters:
enabledMemoryTypes
- The type of memory that is stored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enabledMemoryTypes
The type of memory that is stored.
- Parameters:
enabledMemoryTypes
- The type of memory that is stored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionSummaryConfiguration
MemoryConfiguration.Builder sessionSummaryConfiguration(SessionSummaryConfiguration sessionSummaryConfiguration) Contains the configuration for SESSION_SUMMARY memory type enabled for the agent.
- Parameters:
sessionSummaryConfiguration
- Contains the configuration for SESSION_SUMMARY memory type enabled for the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionSummaryConfiguration
default MemoryConfiguration.Builder sessionSummaryConfiguration(Consumer<SessionSummaryConfiguration.Builder> sessionSummaryConfiguration) Contains the configuration for SESSION_SUMMARY memory type enabled for the agent.
This is a convenience method that creates an instance of theSessionSummaryConfiguration.Builder
avoiding the need to create one manually viaSessionSummaryConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosessionSummaryConfiguration(SessionSummaryConfiguration)
.- Parameters:
sessionSummaryConfiguration
- a consumer that will call methods onSessionSummaryConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
storageDays
The number of days the agent is configured to retain the conversational context.
- Parameters:
storageDays
- The number of days the agent is configured to retain the conversational context.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-