Interface SessionState.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SessionState.Builder,
,SessionState> SdkBuilder<SessionState.Builder,
,SessionState> SdkPojo
- Enclosing class:
SessionState
-
Method Summary
Modifier and TypeMethodDescriptionactiveContexts
(Collection<ActiveContext> activeContexts) One or more contexts that indicate to Amazon Lex V2 the context of a request.activeContexts
(Consumer<ActiveContext.Builder>... activeContexts) One or more contexts that indicate to Amazon Lex V2 the context of a request.activeContexts
(ActiveContext... activeContexts) One or more contexts that indicate to Amazon Lex V2 the context of a request.default SessionState.Builder
dialogAction
(Consumer<DialogAction.Builder> dialogAction) The next step that Amazon Lex V2 should take in the conversation with a user.dialogAction
(DialogAction dialogAction) The next step that Amazon Lex V2 should take in the conversation with a user.default SessionState.Builder
intent
(Consumer<Intent.Builder> intent) The active intent that Amazon Lex V2 is processing.The active intent that Amazon Lex V2 is processing.originatingRequestId
(String originatingRequestId) A unique identifier for a specific request.default SessionState.Builder
runtimeHints
(Consumer<RuntimeHints.Builder> runtimeHints) Hints for phrases that a customer is likely to use for a slot.runtimeHints
(RuntimeHints runtimeHints) Hints for phrases that a customer is likely to use for a slot.sessionAttributes
(Map<String, String> sessionAttributes) Map of key/value pairs representing session-specific context information.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, sdkFields
-
Method Details
-
dialogAction
The next step that Amazon Lex V2 should take in the conversation with a user.
- Parameters:
dialogAction
- The next step that Amazon Lex V2 should take in the conversation with a user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dialogAction
The next step that Amazon Lex V2 should take in the conversation with a user.
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:
-
intent
The active intent that Amazon Lex V2 is processing.
- Parameters:
intent
- The active intent that Amazon Lex V2 is processing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
intent
The active intent that Amazon Lex V2 is processing.
This is a convenience method that creates an instance of theIntent.Builder
avoiding the need to create one manually viaIntent.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tointent(Intent)
.- Parameters:
intent
- a consumer that will call methods onIntent.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
activeContexts
One or more contexts that indicate to Amazon Lex V2 the context of a request. When a context is active, Amazon Lex V2 considers intents with the matching context as a trigger as the next intent in a session.
- Parameters:
activeContexts
- One or more contexts that indicate to Amazon Lex V2 the context of a request. When a context is active, Amazon Lex V2 considers intents with the matching context as a trigger as the next intent in a session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
activeContexts
One or more contexts that indicate to Amazon Lex V2 the context of a request. When a context is active, Amazon Lex V2 considers intents with the matching context as a trigger as the next intent in a session.
- Parameters:
activeContexts
- One or more contexts that indicate to Amazon Lex V2 the context of a request. When a context is active, Amazon Lex V2 considers intents with the matching context as a trigger as the next intent in a session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
activeContexts
One or more contexts that indicate to Amazon Lex V2 the context of a request. When a context is active, Amazon Lex V2 considers intents with the matching context as a trigger as the next intent in a session.
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:
-
sessionAttributes
Map of key/value pairs representing session-specific context information. It contains application information passed between Amazon Lex V2 and a client application.
- Parameters:
sessionAttributes
- Map of key/value pairs representing session-specific context information. It contains application information passed between Amazon Lex V2 and a client application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
originatingRequestId
A unique identifier for a specific request.
- Parameters:
originatingRequestId
- A unique identifier for a specific request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
runtimeHints
Hints for phrases that a customer is likely to use for a slot. Amazon Lex V2 uses the hints to help determine the correct value of a slot.
- Parameters:
runtimeHints
- Hints for phrases that a customer is likely to use for a slot. Amazon Lex V2 uses the hints to help determine the correct value of a slot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
runtimeHints
Hints for phrases that a customer is likely to use for a slot. Amazon Lex V2 uses the hints to help determine the correct value of a slot.
This is a convenience method that creates an instance of theRuntimeHints.Builder
avoiding the need to create one manually viaRuntimeHints.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toruntimeHints(RuntimeHints)
.- Parameters:
runtimeHints
- a consumer that will call methods onRuntimeHints.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-