Interface GetSessionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetSessionResponse.Builder,
,GetSessionResponse> LexRuntimeResponse.Builder
,SdkBuilder<GetSessionResponse.Builder,
,GetSessionResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetSessionResponse
-
Method Summary
Modifier and TypeMethodDescriptionactiveContexts
(Collection<ActiveContext> activeContexts) A list of active contexts for the session.activeContexts
(Consumer<ActiveContext.Builder>... activeContexts) A list of active contexts for the session.activeContexts
(ActiveContext... activeContexts) A list of active contexts for the session.default GetSessionResponse.Builder
dialogAction
(Consumer<DialogAction.Builder> dialogAction) Describes the current state of the bot.dialogAction
(DialogAction dialogAction) Describes the current state of the bot.recentIntentSummaryView
(Collection<IntentSummary> recentIntentSummaryView) An array of information about the intents used in the session.recentIntentSummaryView
(Consumer<IntentSummary.Builder>... recentIntentSummaryView) An array of information about the intents used in the session.recentIntentSummaryView
(IntentSummary... recentIntentSummaryView) An array of information about the intents used in the session.sessionAttributes
(Map<String, String> sessionAttributes) Map of key/value pairs representing the session-specific context information.A unique identifier for the session.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.lexruntime.model.LexRuntimeResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
recentIntentSummaryView
GetSessionResponse.Builder recentIntentSummaryView(Collection<IntentSummary> recentIntentSummaryView) An array of information about the intents used in the session. The array can contain a maximum of three summaries. If more than three intents are used in the session, the
recentIntentSummaryView
operation contains information about the last three intents used.If you set the
checkpointLabelFilter
parameter in the request, the array contains only the intents with the specified label.- Parameters:
recentIntentSummaryView
- An array of information about the intents used in the session. The array can contain a maximum of three summaries. If more than three intents are used in the session, therecentIntentSummaryView
operation contains information about the last three intents used.If you set the
checkpointLabelFilter
parameter in the request, the array contains only the intents with the specified label.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recentIntentSummaryView
An array of information about the intents used in the session. The array can contain a maximum of three summaries. If more than three intents are used in the session, the
recentIntentSummaryView
operation contains information about the last three intents used.If you set the
checkpointLabelFilter
parameter in the request, the array contains only the intents with the specified label.- Parameters:
recentIntentSummaryView
- An array of information about the intents used in the session. The array can contain a maximum of three summaries. If more than three intents are used in the session, therecentIntentSummaryView
operation contains information about the last three intents used.If you set the
checkpointLabelFilter
parameter in the request, the array contains only the intents with the specified label.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recentIntentSummaryView
GetSessionResponse.Builder recentIntentSummaryView(Consumer<IntentSummary.Builder>... recentIntentSummaryView) An array of information about the intents used in the session. The array can contain a maximum of three summaries. If more than three intents are used in the session, the
recentIntentSummaryView
operation contains information about the last three intents used.If you set the
This is a convenience method that creates an instance of thecheckpointLabelFilter
parameter in the request, the array contains only the intents with the specified label.IntentSummary.Builder
avoiding the need to create one manually viaIntentSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torecentIntentSummaryView(List<IntentSummary>)
.- Parameters:
recentIntentSummaryView
- a consumer that will call methods onIntentSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sessionAttributes
Map of key/value pairs representing the session-specific context information. It contains application information passed between Amazon Lex and a client application.
- Parameters:
sessionAttributes
- Map of key/value pairs representing the session-specific context information. It contains application information passed between Amazon Lex and a client application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionId
A unique identifier for the session.
- Parameters:
sessionId
- A unique identifier for the session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dialogAction
Describes the current state of the bot.
- Parameters:
dialogAction
- Describes the current state of the bot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dialogAction
Describes the current state of the bot.
This is a convenience method that creates an instance of theDialogAction.Builder
avoiding the need to create one manually viaDialogAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todialogAction(DialogAction)
.- Parameters:
dialogAction
- a consumer that will call methods onDialogAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
activeContexts
A list of active contexts for the session. A context can be set when an intent is fulfilled or by calling the
PostContent
,PostText
, orPutSession
operation.You can use a context to control the intents that can follow up an intent, or to modify the operation of your application.
- Parameters:
activeContexts
- A list of active contexts for the session. A context can be set when an intent is fulfilled or by calling thePostContent
,PostText
, orPutSession
operation.You can use a context to control the intents that can follow up an intent, or to modify the operation of your application.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
activeContexts
A list of active contexts for the session. A context can be set when an intent is fulfilled or by calling the
PostContent
,PostText
, orPutSession
operation.You can use a context to control the intents that can follow up an intent, or to modify the operation of your application.
- Parameters:
activeContexts
- A list of active contexts for the session. A context can be set when an intent is fulfilled or by calling thePostContent
,PostText
, orPutSession
operation.You can use a context to control the intents that can follow up an intent, or to modify the operation of your application.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
activeContexts
A list of active contexts for the session. A context can be set when an intent is fulfilled or by calling the
PostContent
,PostText
, orPutSession
operation.You can use a context to control the intents that can follow up an intent, or to modify the operation of your application.
This is a convenience method that creates an instance of theActiveContext.Builder
avoiding the need to create one manually viaActiveContext.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toactiveContexts(List<ActiveContext>)
.- Parameters:
activeContexts
- a consumer that will call methods onActiveContext.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-