Interface IntentResultEvent.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<IntentResultEvent.Builder,
,IntentResultEvent> SdkBuilder<IntentResultEvent.Builder,
,IntentResultEvent> SdkPojo
- All Known Subinterfaces:
DefaultIntentResultEvent.Builder
- Enclosing class:
IntentResultEvent
-
Method Summary
Modifier and TypeMethodDescriptionA unique identifier of the event sent by Amazon Lex V2.Indicates whether the input to the operation was text, speech, or from a touch-tone keypad.Indicates whether the input to the operation was text, speech, or from a touch-tone keypad.interpretations
(Collection<Interpretation> interpretations) A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.interpretations
(Consumer<Interpretation.Builder>... interpretations) A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.interpretations
(Interpretation... interpretations) A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.default IntentResultEvent.Builder
recognizedBotMember
(Consumer<RecognizedBotMember.Builder> recognizedBotMember) The bot member that is processing the intent.recognizedBotMember
(RecognizedBotMember recognizedBotMember) The bot member that is processing the intent.requestAttributes
(Map<String, String> requestAttributes) The attributes sent in the request.The identifier of the session in use.default IntentResultEvent.Builder
sessionState
(Consumer<SessionState.Builder> sessionState) Sets the value of the SessionState property for this object.sessionState
(SessionState sessionState) Sets the value of the SessionState property for this object.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, sdkFieldNameToField, sdkFields
-
Method Details
-
inputMode
Indicates whether the input to the operation was text, speech, or from a touch-tone keypad.
- Parameters:
inputMode
- Indicates whether the input to the operation was text, speech, or from a touch-tone keypad.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
inputMode
Indicates whether the input to the operation was text, speech, or from a touch-tone keypad.
- Parameters:
inputMode
- Indicates whether the input to the operation was text, speech, or from a touch-tone keypad.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
interpretations
A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
Each interpretation includes the intent, a score that indicates how confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.
- Parameters:
interpretations
- A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.Each interpretation includes the intent, a score that indicates how confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
interpretations
A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
Each interpretation includes the intent, a score that indicates how confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.
- Parameters:
interpretations
- A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.Each interpretation includes the intent, a score that indicates how confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
interpretations
A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
Each interpretation includes the intent, a score that indicates how confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.
This is a convenience method that creates an instance of theInterpretation.Builder
avoiding the need to create one manually viaInterpretation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tointerpretations(List<Interpretation>)
.- Parameters:
interpretations
- a consumer that will call methods onInterpretation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sessionState
Sets the value of the SessionState property for this object.- Parameters:
sessionState
- The new value for the SessionState property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionState
Sets the value of the SessionState property for this object. This is a convenience method that creates an instance of theSessionState.Builder
avoiding the need to create one manually viaSessionState.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosessionState(SessionState)
.- Parameters:
sessionState
- a consumer that will call methods onSessionState.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
requestAttributes
The attributes sent in the request.
- Parameters:
requestAttributes
- The attributes sent in the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionId
The identifier of the session in use.
- Parameters:
sessionId
- The identifier of the session in use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventId
A unique identifier of the event sent by Amazon Lex V2. The identifier is in the form
RESPONSE-N
, where N is a number starting with one and incremented for each event sent by Amazon Lex V2 in the current session.- Parameters:
eventId
- A unique identifier of the event sent by Amazon Lex V2. The identifier is in the formRESPONSE-N
, where N is a number starting with one and incremented for each event sent by Amazon Lex V2 in the current session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recognizedBotMember
The bot member that is processing the intent.
- Parameters:
recognizedBotMember
- The bot member that is processing the intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recognizedBotMember
default IntentResultEvent.Builder recognizedBotMember(Consumer<RecognizedBotMember.Builder> recognizedBotMember) The bot member that is processing the intent.
This is a convenience method that creates an instance of theRecognizedBotMember.Builder
avoiding the need to create one manually viaRecognizedBotMember.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torecognizedBotMember(RecognizedBotMember)
.- Parameters:
recognizedBotMember
- a consumer that will call methods onRecognizedBotMember.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-