Interface SessionState.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<SessionState.Builder,SessionState>,SdkBuilder<SessionState.Builder,SessionState>,SdkPojo
- Enclosing class:
- SessionState
public static interface SessionState.Builder extends SdkPojo, CopyableBuilder<SessionState.Builder,SessionState>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SessionState.BuilderactiveContexts(Collection<ActiveContext> activeContexts)One or more contexts that indicate to Amazon Lex V2 the context of a request.SessionState.BuilderactiveContexts(Consumer<ActiveContext.Builder>... activeContexts)One or more contexts that indicate to Amazon Lex V2 the context of a request.SessionState.BuilderactiveContexts(ActiveContext... activeContexts)One or more contexts that indicate to Amazon Lex V2 the context of a request.default SessionState.BuilderdialogAction(Consumer<DialogAction.Builder> dialogAction)The next step that Amazon Lex V2 should take in the conversation with a user.SessionState.BuilderdialogAction(DialogAction dialogAction)The next step that Amazon Lex V2 should take in the conversation with a user.default SessionState.Builderintent(Consumer<Intent.Builder> intent)The active intent that Amazon Lex V2 is processing.SessionState.Builderintent(Intent intent)The active intent that Amazon Lex V2 is processing.SessionState.BuilderoriginatingRequestId(String originatingRequestId)A unique identifier for a specific request.default SessionState.BuilderruntimeHints(Consumer<RuntimeHints.Builder> runtimeHints)Hints for phrases that a customer is likely to use for a slot.SessionState.BuilderruntimeHints(RuntimeHints runtimeHints)Hints for phrases that a customer is likely to use for a slot.SessionState.BuildersessionAttributes(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 Detail
-
dialogAction
SessionState.Builder dialogAction(DialogAction 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
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.Builderavoiding the need to create one manually viaDialogAction.builder().When the
Consumercompletes,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:
dialogAction(DialogAction)
-
intent
SessionState.Builder intent(Intent 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
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.Builderavoiding the need to create one manually viaIntent.builder().When the
Consumercompletes,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:
intent(Intent)
-
activeContexts
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.
- 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
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.
- 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
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.Builderavoiding the need to create one manually viaActiveContext.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#activeContexts(List.) - 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:
#activeContexts(java.util.Collection)
-
sessionAttributes
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.
- 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
SessionState.Builder originatingRequestId(String 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
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.
- 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
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.Builderavoiding the need to create one manually viaRuntimeHints.builder().When the
Consumercompletes,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:
runtimeHints(RuntimeHints)
-
-