Class SessionSummaryMemoryProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.alpha.SessionSummaryMemoryProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SessionSummaryMemoryProps>
- Enclosing interface:
SessionSummaryMemoryProps
@Stability(Experimental)
public static final class SessionSummaryMemoryProps.Builder
extends Object
implements software.amazon.jsii.Builder<SessionSummaryMemoryProps>
A builder for
SessionSummaryMemoryProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.maxRecentSessions(Number maxRecentSessions) Sets the value ofSessionSummaryMemoryProps.getMaxRecentSessions()memoryDuration(Duration memoryDuration) Sets the value ofSessionSummaryMemoryProps.getMemoryDuration()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxRecentSessions
@Stability(Experimental) public SessionSummaryMemoryProps.Builder maxRecentSessions(Number maxRecentSessions) Sets the value ofSessionSummaryMemoryProps.getMaxRecentSessions()- Parameters:
maxRecentSessions- Maximum number of recent session summaries to include (min 1).- Returns:
this
-
memoryDuration
@Stability(Experimental) public SessionSummaryMemoryProps.Builder memoryDuration(Duration memoryDuration) Sets the value ofSessionSummaryMemoryProps.getMemoryDuration()- Parameters:
memoryDuration- Duration for which session summaries are retained (between 1 and 365 days).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SessionSummaryMemoryProps>- Returns:
- a new instance of
SessionSummaryMemoryProps - Throws:
NullPointerException- if any required attribute was not provided
-