public static interface SessionSpecification.Builder extends SdkPojo, CopyableBuilder<SessionSpecification.Builder,SessionSpecification>
| Modifier and Type | Method and Description |
|---|---|
SessionSpecification.Builder |
botAliasId(String botAliasId)
The identifier of the alias of the bot that the session was held with.
|
SessionSpecification.Builder |
botVersion(String botVersion)
The version of the bot that the session was held with.
|
SessionSpecification.Builder |
channel(String channel)
The channel that is integrated with the bot that the session was held with.
|
SessionSpecification.Builder |
conversationDurationSeconds(Long conversationDurationSeconds)
The duration of the conversation in seconds.
|
SessionSpecification.Builder |
conversationEndState(ConversationEndState conversationEndState)
The final state of the conversation.
|
SessionSpecification.Builder |
conversationEndState(String conversationEndState)
The final state of the conversation.
|
SessionSpecification.Builder |
conversationEndTime(Instant conversationEndTime)
The date and time when the conversation ended.
|
SessionSpecification.Builder |
conversationStartTime(Instant conversationStartTime)
The date and time when the conversation began.
|
SessionSpecification.Builder |
invokedIntentSamples(Collection<InvokedIntentSample> invokedIntentSamples)
A list of objects containing the name of an intent that was invoked.
|
SessionSpecification.Builder |
invokedIntentSamples(Consumer<InvokedIntentSample.Builder>... invokedIntentSamples)
A list of objects containing the name of an intent that was invoked.
|
SessionSpecification.Builder |
invokedIntentSamples(InvokedIntentSample... invokedIntentSamples)
A list of objects containing the name of an intent that was invoked.
|
SessionSpecification.Builder |
localeId(String localeId)
The locale of the bot that the session was held with.
|
SessionSpecification.Builder |
mode(AnalyticsModality mode)
The mode of the session.
|
SessionSpecification.Builder |
mode(String mode)
The mode of the session.
|
SessionSpecification.Builder |
numberOfTurns(Long numberOfTurns)
The number of turns that the session took.
|
SessionSpecification.Builder |
originatingRequestId(String originatingRequestId)
The identifier of the first request in a session.
|
SessionSpecification.Builder |
sessionId(String sessionId)
The identifier of the session.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildSessionSpecification.Builder botAliasId(String botAliasId)
The identifier of the alias of the bot that the session was held with.
botAliasId - The identifier of the alias of the bot that the session was held with.SessionSpecification.Builder botVersion(String botVersion)
The version of the bot that the session was held with.
botVersion - The version of the bot that the session was held with.SessionSpecification.Builder localeId(String localeId)
The locale of the bot that the session was held with.
localeId - The locale of the bot that the session was held with.SessionSpecification.Builder channel(String channel)
The channel that is integrated with the bot that the session was held with.
channel - The channel that is integrated with the bot that the session was held with.SessionSpecification.Builder sessionId(String sessionId)
The identifier of the session.
sessionId - The identifier of the session.SessionSpecification.Builder conversationStartTime(Instant conversationStartTime)
The date and time when the conversation began. A conversation is defined as a unique combination of a
sessionId and an originatingRequestId.
conversationStartTime - The date and time when the conversation began. A conversation is defined as a unique combination of a
sessionId and an originatingRequestId.SessionSpecification.Builder conversationEndTime(Instant conversationEndTime)
The date and time when the conversation ended. A conversation is defined as a unique combination of a
sessionId and an originatingRequestId.
conversationEndTime - The date and time when the conversation ended. A conversation is defined as a unique combination of a
sessionId and an originatingRequestId.SessionSpecification.Builder conversationDurationSeconds(Long conversationDurationSeconds)
The duration of the conversation in seconds. A conversation is defined as a unique combination of a
sessionId and an originatingRequestId.
conversationDurationSeconds - The duration of the conversation in seconds. A conversation is defined as a unique combination of a
sessionId and an originatingRequestId.SessionSpecification.Builder conversationEndState(String conversationEndState)
The final state of the conversation. A conversation is defined as a unique combination of a
sessionId and an originatingRequestId.
conversationEndState - The final state of the conversation. A conversation is defined as a unique combination of a
sessionId and an originatingRequestId.ConversationEndState,
ConversationEndStateSessionSpecification.Builder conversationEndState(ConversationEndState conversationEndState)
The final state of the conversation. A conversation is defined as a unique combination of a
sessionId and an originatingRequestId.
conversationEndState - The final state of the conversation. A conversation is defined as a unique combination of a
sessionId and an originatingRequestId.ConversationEndState,
ConversationEndStateSessionSpecification.Builder mode(String mode)
The mode of the session. The possible values are as follows:
Speech – The session was spoken.
Text – The session was written.
DTMF – The session used a touch-tone keypad (Dual Tone Multi-Frequency).
MultiMode – The session used multiple modes.
mode - The mode of the session. The possible values are as follows:
Speech – The session was spoken.
Text – The session was written.
DTMF – The session used a touch-tone keypad (Dual Tone Multi-Frequency).
MultiMode – The session used multiple modes.
AnalyticsModality,
AnalyticsModalitySessionSpecification.Builder mode(AnalyticsModality mode)
The mode of the session. The possible values are as follows:
Speech – The session was spoken.
Text – The session was written.
DTMF – The session used a touch-tone keypad (Dual Tone Multi-Frequency).
MultiMode – The session used multiple modes.
mode - The mode of the session. The possible values are as follows:
Speech – The session was spoken.
Text – The session was written.
DTMF – The session used a touch-tone keypad (Dual Tone Multi-Frequency).
MultiMode – The session used multiple modes.
AnalyticsModality,
AnalyticsModalitySessionSpecification.Builder numberOfTurns(Long numberOfTurns)
The number of turns that the session took.
numberOfTurns - The number of turns that the session took.SessionSpecification.Builder invokedIntentSamples(Collection<InvokedIntentSample> invokedIntentSamples)
A list of objects containing the name of an intent that was invoked.
invokedIntentSamples - A list of objects containing the name of an intent that was invoked.SessionSpecification.Builder invokedIntentSamples(InvokedIntentSample... invokedIntentSamples)
A list of objects containing the name of an intent that was invoked.
invokedIntentSamples - A list of objects containing the name of an intent that was invoked.SessionSpecification.Builder invokedIntentSamples(Consumer<InvokedIntentSample.Builder>... invokedIntentSamples)
A list of objects containing the name of an intent that was invoked.
This is a convenience method that creates an instance of theInvokedIntentSample.Builder avoiding the need to
create one manually via
InvokedIntentSample.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #invokedIntentSamples(List.
invokedIntentSamples - a consumer that will call methods on
InvokedIntentSample.Builder#invokedIntentSamples(java.util.Collection) SessionSpecification.Builder originatingRequestId(String originatingRequestId)
The identifier of the first request in a session.
originatingRequestId - The identifier of the first request in a session.Copyright © 2023. All rights reserved.