Class IntentResultEvent.BuilderImpl
- java.lang.Object
-
- software.amazon.awssdk.services.lexruntimev2.model.IntentResultEvent.BuilderImpl
-
- All Implemented Interfaces:
SdkPojo,IntentResultEvent.Builder,Buildable,CopyableBuilder<IntentResultEvent.Builder,IntentResultEvent>,SdkBuilder<IntentResultEvent.Builder,IntentResultEvent>
- Enclosing class:
- IntentResultEvent
protected static class IntentResultEvent.BuilderImpl extends Object implements IntentResultEvent.Builder
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilderImpl()protectedBuilderImpl(IntentResultEvent model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntentResultEventbuild()IntentResultEvent.BuildereventId(String eventId)A unique identifier of the event sent by Amazon Lex V2.StringgetEventId()StringgetInputMode()List<Interpretation.Builder>getInterpretations()RecognizedBotMember.BuildergetRecognizedBotMember()Map<String,String>getRequestAttributes()StringgetSessionId()SessionState.BuildergetSessionState()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.IntentResultEvent.BuilderrecognizedBotMember(RecognizedBotMember recognizedBotMember)The bot member that is processing the intent.IntentResultEvent.BuilderrequestAttributes(Map<String,String> requestAttributes)The attributes sent in the request.List<SdkField<?>>sdkFields()IntentResultEvent.BuildersessionId(String sessionId)The identifier of the session in use.IntentResultEvent.BuildersessionState(SessionState sessionState)Sets the value of the SessionState property for this object.voidsetEventId(String eventId)voidsetInputMode(String inputMode)voidsetInterpretations(Collection<software.amazon.awssdk.services.lexruntimev2.model.Interpretation.BuilderImpl> interpretations)voidsetRecognizedBotMember(software.amazon.awssdk.services.lexruntimev2.model.RecognizedBotMember.BuilderImpl recognizedBotMember)voidsetRequestAttributes(Map<String,String> requestAttributes)voidsetSessionId(String sessionId)voidsetSessionState(software.amazon.awssdk.services.lexruntimev2.model.SessionState.BuilderImpl sessionState)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.lexruntimev2.model.IntentResultEvent.Builder
recognizedBotMember, sessionState
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields
-
-
-
-
Constructor Detail
-
BuilderImpl
protected BuilderImpl()
-
BuilderImpl
protected BuilderImpl(IntentResultEvent model)
-
-
Method Detail
-
getInputMode
public final String getInputMode()
-
setInputMode
public final void setInputMode(String inputMode)
-
inputMode
public final IntentResultEvent.Builder inputMode(String inputMode)
Description copied from interface:IntentResultEvent.BuilderIndicates whether the input to the operation was text, speech, or from a touch-tone keypad.
- Specified by:
inputModein interfaceIntentResultEvent.Builder- 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,InputMode
-
inputMode
public final IntentResultEvent.Builder inputMode(InputMode inputMode)
Description copied from interface:IntentResultEvent.BuilderIndicates whether the input to the operation was text, speech, or from a touch-tone keypad.
- Specified by:
inputModein interfaceIntentResultEvent.Builder- 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,InputMode
-
getInterpretations
public final List<Interpretation.Builder> getInterpretations()
-
setInterpretations
public final void setInterpretations(Collection<software.amazon.awssdk.services.lexruntimev2.model.Interpretation.BuilderImpl> interpretations)
-
interpretations
public final IntentResultEvent.Builder interpretations(Collection<Interpretation> interpretations)
Description copied from interface:IntentResultEvent.BuilderA 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.
- Specified by:
interpretationsin interfaceIntentResultEvent.Builder- 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
@SafeVarargs public final IntentResultEvent.Builder interpretations(Interpretation... interpretations)
Description copied from interface:IntentResultEvent.BuilderA 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.
- Specified by:
interpretationsin interfaceIntentResultEvent.Builder- 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
@SafeVarargs public final IntentResultEvent.Builder interpretations(Consumer<Interpretation.Builder>... interpretations)
Description copied from interface:IntentResultEvent.BuilderA 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.) - Specified by:
interpretationsin interfaceIntentResultEvent.Builder- 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)
-
getSessionState
public final SessionState.Builder getSessionState()
-
setSessionState
public final void setSessionState(software.amazon.awssdk.services.lexruntimev2.model.SessionState.BuilderImpl sessionState)
-
sessionState
public final IntentResultEvent.Builder sessionState(SessionState sessionState)
Description copied from interface:IntentResultEvent.BuilderSets the value of the SessionState property for this object.- Specified by:
sessionStatein interfaceIntentResultEvent.Builder- 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.
-
requestAttributes
public final IntentResultEvent.Builder requestAttributes(Map<String,String> requestAttributes)
Description copied from interface:IntentResultEvent.BuilderThe attributes sent in the request.
- Specified by:
requestAttributesin interfaceIntentResultEvent.Builder- Parameters:
requestAttributes- The attributes sent in the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getSessionId
public final String getSessionId()
-
setSessionId
public final void setSessionId(String sessionId)
-
sessionId
public final IntentResultEvent.Builder sessionId(String sessionId)
Description copied from interface:IntentResultEvent.BuilderThe identifier of the session in use.
- Specified by:
sessionIdin interfaceIntentResultEvent.Builder- Parameters:
sessionId- The identifier of the session in use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getEventId
public final String getEventId()
-
setEventId
public final void setEventId(String eventId)
-
eventId
public final IntentResultEvent.Builder eventId(String eventId)
Description copied from interface:IntentResultEvent.BuilderA 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.- Specified by:
eventIdin interfaceIntentResultEvent.Builder- 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.
-
getRecognizedBotMember
public final RecognizedBotMember.Builder getRecognizedBotMember()
-
setRecognizedBotMember
public final void setRecognizedBotMember(software.amazon.awssdk.services.lexruntimev2.model.RecognizedBotMember.BuilderImpl recognizedBotMember)
-
recognizedBotMember
public final IntentResultEvent.Builder recognizedBotMember(RecognizedBotMember recognizedBotMember)
Description copied from interface:IntentResultEvent.BuilderThe bot member that is processing the intent.
- Specified by:
recognizedBotMemberin interfaceIntentResultEvent.Builder- 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.
-
build
public IntentResultEvent build()
- Specified by:
buildin interfaceBuildable- Specified by:
buildin interfaceSdkBuilder<IntentResultEvent.Builder,IntentResultEvent>
-
-