Interface SessionSpecification.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SessionSpecification.Builder,
,SessionSpecification> SdkBuilder<SessionSpecification.Builder,
,SessionSpecification> SdkPojo
- Enclosing class:
SessionSpecification
-
Method Summary
Modifier and TypeMethodDescriptionbotAliasId
(String botAliasId) The identifier of the alias of the bot that the session was held with.botVersion
(String botVersion) The version of the bot that the session was held with.The channel that is integrated with the bot that the session was held with.conversationDurationSeconds
(Long conversationDurationSeconds) The duration of the conversation in seconds.conversationEndState
(String conversationEndState) The final state of the conversation.conversationEndState
(ConversationEndState conversationEndState) The final state of the conversation.conversationEndTime
(Instant conversationEndTime) The date and time when the conversation ended.conversationStartTime
(Instant conversationStartTime) The date and time when the conversation began.invokedIntentSamples
(Collection<InvokedIntentSample> invokedIntentSamples) A list of objects containing the name of an intent that was invoked.invokedIntentSamples
(Consumer<InvokedIntentSample.Builder>... invokedIntentSamples) A list of objects containing the name of an intent that was invoked.invokedIntentSamples
(InvokedIntentSample... invokedIntentSamples) A list of objects containing the name of an intent that was invoked.The locale of the bot that the session was held with.The mode of the session.mode
(AnalyticsModality mode) The mode of the session.numberOfTurns
(Long numberOfTurns) The number of turns that the session took.originatingRequestId
(String originatingRequestId) The identifier of the first request in a session.The identifier of the session.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, sdkFields
-
Method Details
-
botAliasId
The identifier of the alias of the bot that the session was held with.
- Parameters:
botAliasId
- The identifier of the alias of the bot that the session was held with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
botVersion
The version of the bot that the session was held with.
- Parameters:
botVersion
- The version of the bot that the session was held with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
localeId
The locale of the bot that the session was held with.
- Parameters:
localeId
- The locale of the bot that the session was held with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
channel
The channel that is integrated with the bot that the session was held with.
- Parameters:
channel
- The channel that is integrated with the bot that the session was held with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionId
The identifier of the session.
- Parameters:
sessionId
- The identifier of the session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conversationStartTime
The date and time when the conversation began. A conversation is defined as a unique combination of a
sessionId
and anoriginatingRequestId
.- Parameters:
conversationStartTime
- The date and time when the conversation began. A conversation is defined as a unique combination of asessionId
and anoriginatingRequestId
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conversationEndTime
The date and time when the conversation ended. A conversation is defined as a unique combination of a
sessionId
and anoriginatingRequestId
.- Parameters:
conversationEndTime
- The date and time when the conversation ended. A conversation is defined as a unique combination of asessionId
and anoriginatingRequestId
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conversationDurationSeconds
The duration of the conversation in seconds. A conversation is defined as a unique combination of a
sessionId
and anoriginatingRequestId
.- Parameters:
conversationDurationSeconds
- The duration of the conversation in seconds. A conversation is defined as a unique combination of asessionId
and anoriginatingRequestId
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conversationEndState
The final state of the conversation. A conversation is defined as a unique combination of a
sessionId
and anoriginatingRequestId
.- Parameters:
conversationEndState
- The final state of the conversation. A conversation is defined as a unique combination of asessionId
and anoriginatingRequestId
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
conversationEndState
The final state of the conversation. A conversation is defined as a unique combination of a
sessionId
and anoriginatingRequestId
.- Parameters:
conversationEndState
- The final state of the conversation. A conversation is defined as a unique combination of asessionId
and anoriginatingRequestId
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
numberOfTurns
The number of turns that the session took.
- Parameters:
numberOfTurns
- The number of turns that the session took.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
invokedIntentSamples
SessionSpecification.Builder invokedIntentSamples(Collection<InvokedIntentSample> invokedIntentSamples) A list of objects containing the name of an intent that was invoked.
- Parameters:
invokedIntentSamples
- A list of objects containing the name of an intent that was invoked.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
invokedIntentSamples
A list of objects containing the name of an intent that was invoked.
- Parameters:
invokedIntentSamples
- A list of objects containing the name of an intent that was invoked.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
invokedIntentSamples
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 viaInvokedIntentSample.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinvokedIntentSamples(List<InvokedIntentSample>)
.- Parameters:
invokedIntentSamples
- a consumer that will call methods onInvokedIntentSample.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
originatingRequestId
The identifier of the first request in a session.
- Parameters:
originatingRequestId
- The identifier of the first request in a session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-