protected static class IntentResultEvent.BuilderImpl extends Object implements IntentResultEvent.Builder
| Modifier | Constructor and Description |
|---|---|
protected |
BuilderImpl() |
protected |
BuilderImpl(IntentResultEvent model) |
| Modifier and Type | Method and Description |
|---|---|
IntentResultEvent |
build() |
IntentResultEvent.Builder |
eventId(String eventId)
A unique identifier of the event sent by Amazon Lex.
|
String |
getEventId() |
String |
getInputMode() |
List<Interpretation.Builder> |
getInterpretations() |
Map<String,String> |
getRequestAttributes() |
String |
getSessionId() |
SessionState.Builder |
getSessionState() |
IntentResultEvent.Builder |
inputMode(InputMode inputMode)
Indicates whether the input to the operation was text or speech.
|
IntentResultEvent.Builder |
inputMode(String inputMode)
Indicates whether the input to the operation was text or speech.
|
IntentResultEvent.Builder |
interpretations(Collection<Interpretation> interpretations)
A list of intents that Amazon Lex determined might satisfy the user's utterance.
|
IntentResultEvent.Builder |
interpretations(Consumer<Interpretation.Builder>... interpretations)
A list of intents that Amazon Lex determined might satisfy the user's utterance.
|
IntentResultEvent.Builder |
interpretations(Interpretation... interpretations)
A list of intents that Amazon Lex determined might satisfy the user's utterance.
|
IntentResultEvent.Builder |
requestAttributes(Map<String,String> requestAttributes)
The attributes sent in the request.
|
List<SdkField<?>> |
sdkFields() |
IntentResultEvent.Builder |
sessionId(String sessionId)
The identifier of the session in use.
|
IntentResultEvent.Builder |
sessionState(SessionState sessionState)
Sets the value of the SessionState property for this object.
|
void |
setEventId(String eventId) |
void |
setInputMode(String inputMode) |
void |
setInterpretations(Collection<software.amazon.awssdk.services.lexruntimev2.model.Interpretation.BuilderImpl> interpretations) |
void |
setRequestAttributes(Map<String,String> requestAttributes) |
void |
setSessionId(String sessionId) |
void |
setSessionState(software.amazon.awssdk.services.lexruntimev2.model.SessionState.BuilderImpl sessionState) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsessionStateequalsBySdkFieldscopyapplyMutationprotected BuilderImpl()
protected BuilderImpl(IntentResultEvent model)
public final String getInputMode()
public final IntentResultEvent.Builder inputMode(String inputMode)
IntentResultEvent.BuilderIndicates whether the input to the operation was text or speech.
inputMode in interface IntentResultEvent.BuilderinputMode - Indicates whether the input to the operation was text or speech.InputMode,
InputModepublic final IntentResultEvent.Builder inputMode(InputMode inputMode)
IntentResultEvent.BuilderIndicates whether the input to the operation was text or speech.
inputMode in interface IntentResultEvent.BuilderinputMode - Indicates whether the input to the operation was text or speech.InputMode,
InputModepublic final void setInputMode(String inputMode)
public final List<Interpretation.Builder> getInterpretations()
public final IntentResultEvent.Builder interpretations(Collection<Interpretation> interpretations)
IntentResultEvent.BuilderA list of intents that Amazon Lex determined might satisfy the user's utterance.
Each interpretation includes the intent, a score that indicates how confident Amazon Lex is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.
interpretations in interface IntentResultEvent.Builderinterpretations - A list of intents that Amazon Lex determined might satisfy the user's utterance.
Each interpretation includes the intent, a score that indicates how confident Amazon Lex is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.
@SafeVarargs public final IntentResultEvent.Builder interpretations(Interpretation... interpretations)
IntentResultEvent.BuilderA list of intents that Amazon Lex determined might satisfy the user's utterance.
Each interpretation includes the intent, a score that indicates how confident Amazon Lex is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.
interpretations in interface IntentResultEvent.Builderinterpretations - A list of intents that Amazon Lex determined might satisfy the user's utterance.
Each interpretation includes the intent, a score that indicates how confident Amazon Lex is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.
@SafeVarargs public final IntentResultEvent.Builder interpretations(Consumer<Interpretation.Builder>... interpretations)
IntentResultEvent.BuilderA list of intents that Amazon Lex determined might satisfy the user's utterance.
Each interpretation includes the intent, a score that indicates how confident Amazon Lex 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 that creates an instance of theList.Builder avoiding the need
to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and
its result is passed to #interpretations(List) .interpretations in interface IntentResultEvent.Builderinterpretations - a consumer that will call methods on List.Builder #interpretations(List) public final void setInterpretations(Collection<software.amazon.awssdk.services.lexruntimev2.model.Interpretation.BuilderImpl> interpretations)
public final SessionState.Builder getSessionState()
public final IntentResultEvent.Builder sessionState(SessionState sessionState)
IntentResultEvent.BuildersessionState in interface IntentResultEvent.BuildersessionState - The new value for the SessionState property for this object.public final void setSessionState(software.amazon.awssdk.services.lexruntimev2.model.SessionState.BuilderImpl sessionState)
public final IntentResultEvent.Builder requestAttributes(Map<String,String> requestAttributes)
IntentResultEvent.BuilderThe attributes sent in the request.
requestAttributes in interface IntentResultEvent.BuilderrequestAttributes - The attributes sent in the request.public final String getSessionId()
public final IntentResultEvent.Builder sessionId(String sessionId)
IntentResultEvent.BuilderThe identifier of the session in use.
sessionId in interface IntentResultEvent.BuildersessionId - The identifier of the session in use.public final void setSessionId(String sessionId)
public final String getEventId()
public final IntentResultEvent.Builder eventId(String eventId)
IntentResultEvent.Builder
A unique identifier of the event sent by Amazon Lex. 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 in the current
session.
eventId in interface IntentResultEvent.BuildereventId - A unique identifier of the event sent by Amazon Lex. 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 in the current session.public final void setEventId(String eventId)
public IntentResultEvent build()
build in interface Buildablebuild in interface SdkBuilder<IntentResultEvent.Builder,IntentResultEvent>Copyright © 2021. All rights reserved.