public static interface SessionState.Builder extends SdkPojo, CopyableBuilder<SessionState.Builder,SessionState>
| Modifier and Type | Method and Description |
|---|---|
SessionState.Builder |
activeContexts(ActiveContext... activeContexts)
One or more contexts that indicate to Amazon Lex V2 the context of a request.
|
SessionState.Builder |
activeContexts(Collection<ActiveContext> activeContexts)
One or more contexts that indicate to Amazon Lex V2 the context of a request.
|
SessionState.Builder |
activeContexts(Consumer<ActiveContext.Builder>... 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.
|
SessionState.Builder |
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.
|
SessionState.Builder |
intent(Intent intent)
The active intent that Amazon Lex V2 is processing.
|
SessionState.Builder |
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.
|
SessionState.Builder |
runtimeHints(RuntimeHints runtimeHints)
Hints for phrases that a customer is likely to use for a slot.
|
SessionState.Builder |
sessionAttributes(Map<String,String> sessionAttributes)
Map of key/value pairs representing session-specific context information.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildSessionState.Builder dialogAction(DialogAction dialogAction)
The next step that Amazon Lex V2 should take in the conversation with a user.
dialogAction - The next step that Amazon Lex V2 should take in the conversation with a user.default SessionState.Builder dialogAction(Consumer<DialogAction.Builder> 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 via DialogAction.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to dialogAction(DialogAction).
dialogAction - a consumer that will call methods on DialogAction.BuilderdialogAction(DialogAction)SessionState.Builder intent(Intent intent)
The active intent that Amazon Lex V2 is processing.
intent - The active intent that Amazon Lex V2 is processing.default SessionState.Builder intent(Consumer<Intent.Builder> 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 via Intent.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result is
passed to intent(Intent).
intent - a consumer that will call methods on Intent.Builderintent(Intent)SessionState.Builder activeContexts(Collection<ActiveContext> 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.
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.SessionState.Builder activeContexts(ActiveContext... 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.
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.SessionState.Builder activeContexts(Consumer<ActiveContext.Builder>... 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 via ActiveContext.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #activeContexts(List.
activeContexts - a consumer that will call methods on
ActiveContext.Builder#activeContexts(java.util.Collection) SessionState.Builder sessionAttributes(Map<String,String> sessionAttributes)
Map of key/value pairs representing session-specific context information. It contains application information passed between Amazon Lex V2 and a client application.
sessionAttributes - Map of key/value pairs representing session-specific context information. It contains application
information passed between Amazon Lex V2 and a client application.SessionState.Builder originatingRequestId(String originatingRequestId)
A unique identifier for a specific request.
originatingRequestId - A unique identifier for a specific request.SessionState.Builder runtimeHints(RuntimeHints 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.
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.default SessionState.Builder runtimeHints(Consumer<RuntimeHints.Builder> 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 via RuntimeHints.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to runtimeHints(RuntimeHints).
runtimeHints - a consumer that will call methods on RuntimeHints.BuilderruntimeHints(RuntimeHints)Copyright © 2022. All rights reserved.