Interface IntentResultEvent.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<IntentResultEvent.Builder,IntentResultEvent>,SdkBuilder<IntentResultEvent.Builder,IntentResultEvent>,SdkPojo
- All Known Subinterfaces:
DefaultIntentResultEvent.Builder
- All Known Implementing Classes:
IntentResultEvent.BuilderImpl
- Enclosing class:
- IntentResultEvent
public static interface IntentResultEvent.Builder extends SdkPojo, CopyableBuilder<IntentResultEvent.Builder,IntentResultEvent>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IntentResultEvent.BuildereventId(String eventId)A unique identifier of the event sent by Amazon Lex V2.IntentResultEvent.BuilderinputMode(String inputMode)Indicates whether the input to the operation was text, speech, or from a touch-tone keypad.IntentResultEvent.BuilderinputMode(InputMode inputMode)Indicates whether the input to the operation was text, speech, or from a touch-tone keypad.IntentResultEvent.Builderinterpretations(Collection<Interpretation> interpretations)A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.IntentResultEvent.Builderinterpretations(Consumer<Interpretation.Builder>... interpretations)A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.IntentResultEvent.Builderinterpretations(Interpretation... interpretations)A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.default IntentResultEvent.BuilderrecognizedBotMember(Consumer<RecognizedBotMember.Builder> recognizedBotMember)The bot member that is processing the intent.IntentResultEvent.BuilderrecognizedBotMember(RecognizedBotMember recognizedBotMember)The bot member that is processing the intent.IntentResultEvent.BuilderrequestAttributes(Map<String,String> requestAttributes)The attributes sent in the request.IntentResultEvent.BuildersessionId(String sessionId)The identifier of the session in use.default IntentResultEvent.BuildersessionState(Consumer<SessionState.Builder> sessionState)Sets the value of the SessionState property for this object.IntentResultEvent.BuildersessionState(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 Detail
-
inputMode
IntentResultEvent.Builder inputMode(String inputMode)
Indicates whether the input to the operation was text, speech, or from a touch-tone keypad.
-
inputMode
IntentResultEvent.Builder inputMode(InputMode inputMode)
Indicates whether the input to the operation was text, speech, or from a touch-tone keypad.
-
interpretations
IntentResultEvent.Builder interpretations(Collection<Interpretation> 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
IntentResultEvent.Builder interpretations(Interpretation... 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
IntentResultEvent.Builder interpretations(Consumer<Interpretation.Builder>... 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.Builderavoiding the need to create one manually viaInterpretation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#interpretations(List.) - 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:
#interpretations(java.util.Collection)
-
sessionState
IntentResultEvent.Builder sessionState(SessionState 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
default IntentResultEvent.Builder sessionState(Consumer<SessionState.Builder> sessionState)
Sets the value of the SessionState property for this object. This is a convenience method that creates an instance of theSessionState.Builderavoiding the need to create one manually viaSessionState.builder().When the
Consumercompletes,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:
sessionState(SessionState)
-
requestAttributes
IntentResultEvent.Builder requestAttributes(Map<String,String> 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
IntentResultEvent.Builder sessionId(String 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
IntentResultEvent.Builder eventId(String 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
IntentResultEvent.Builder recognizedBotMember(RecognizedBotMember 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.Builderavoiding the need to create one manually viaRecognizedBotMember.builder().When the
Consumercompletes,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:
recognizedBotMember(RecognizedBotMember)
-
-