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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description MemoryConfiguration.BuilderenabledMemoryTypes(Collection<MemoryType> enabledMemoryTypes)The type of memory that is stored.MemoryConfiguration.BuilderenabledMemoryTypes(MemoryType... enabledMemoryTypes)The type of memory that is stored.MemoryConfiguration.BuilderenabledMemoryTypesWithStrings(String... enabledMemoryTypes)The type of memory that is stored.MemoryConfiguration.BuilderenabledMemoryTypesWithStrings(Collection<String> enabledMemoryTypes)The type of memory that is stored.default MemoryConfiguration.BuildersessionSummaryConfiguration(Consumer<SessionSummaryConfiguration.Builder> sessionSummaryConfiguration)Contains the configuration for SESSION_SUMMARY memory type enabled for the agent.MemoryConfiguration.BuildersessionSummaryConfiguration(SessionSummaryConfiguration sessionSummaryConfiguration)Contains the configuration for SESSION_SUMMARY memory type enabled for the agent.MemoryConfiguration.BuilderstorageDays(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 Detail
-
enabledMemoryTypesWithStrings
MemoryConfiguration.Builder enabledMemoryTypesWithStrings(Collection<String> 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.
-
enabledMemoryTypesWithStrings
MemoryConfiguration.Builder enabledMemoryTypesWithStrings(String... 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
MemoryConfiguration.Builder enabledMemoryTypes(Collection<MemoryType> 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
MemoryConfiguration.Builder enabledMemoryTypes(MemoryType... 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.
-
storageDays
MemoryConfiguration.Builder storageDays(Integer 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.
-
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.Builderavoiding the need to create one manually viaSessionSummaryConfiguration.builder().When the
Consumercompletes,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:
sessionSummaryConfiguration(SessionSummaryConfiguration)
-
-