Interface GetSessionResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetSessionResponse.Builder,GetSessionResponse>,LexRuntimeV2Response.Builder,SdkBuilder<GetSessionResponse.Builder,GetSessionResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetSessionResponse
public static interface GetSessionResponse.Builder extends LexRuntimeV2Response.Builder, SdkPojo, CopyableBuilder<GetSessionResponse.Builder,GetSessionResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GetSessionResponse.Builderinterpretations(Collection<Interpretation> interpretations)A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.GetSessionResponse.Builderinterpretations(Consumer<Interpretation.Builder>... interpretations)A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.GetSessionResponse.Builderinterpretations(Interpretation... interpretations)A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.GetSessionResponse.Buildermessages(Collection<Message> messages)A list of messages that were last sent to the user.GetSessionResponse.Buildermessages(Consumer<Message.Builder>... messages)A list of messages that were last sent to the user.GetSessionResponse.Buildermessages(Message... messages)A list of messages that were last sent to the user.GetSessionResponse.BuildersessionId(String sessionId)The identifier of the returned session.default GetSessionResponse.BuildersessionState(Consumer<SessionState.Builder> sessionState)Represents the current state of the dialog between the user and the bot.GetSessionResponse.BuildersessionState(SessionState sessionState)Represents the current state of the dialog between the user and the bot.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.lexruntimev2.model.LexRuntimeV2Response.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
sessionId
GetSessionResponse.Builder sessionId(String sessionId)
The identifier of the returned session.
- Parameters:
sessionId- The identifier of the returned session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messages
GetSessionResponse.Builder messages(Collection<Message> messages)
A list of messages that were last sent to the user. The messages are ordered based on the order that your returned the messages from your Lambda function or the order that messages are defined in the bot.
- Parameters:
messages- A list of messages that were last sent to the user. The messages are ordered based on the order that your returned the messages from your Lambda function or the order that messages are defined in the bot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messages
GetSessionResponse.Builder messages(Message... messages)
A list of messages that were last sent to the user. The messages are ordered based on the order that your returned the messages from your Lambda function or the order that messages are defined in the bot.
- Parameters:
messages- A list of messages that were last sent to the user. The messages are ordered based on the order that your returned the messages from your Lambda function or the order that messages are defined in the bot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messages
GetSessionResponse.Builder messages(Consumer<Message.Builder>... messages)
A list of messages that were last sent to the user. The messages are ordered based on the order that your returned the messages from your Lambda function or the order that messages are defined in the bot.
This is a convenience method that creates an instance of theMessage.Builderavoiding the need to create one manually viaMessage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#messages(List.) - Parameters:
messages- a consumer that will call methods onMessage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#messages(java.util.Collection)
-
interpretations
GetSessionResponse.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
GetSessionResponse.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
GetSessionResponse.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
GetSessionResponse.Builder sessionState(SessionState sessionState)
Represents the current state of the dialog between the user and the bot.
You can use this to determine the progress of the conversation and what the next action might be.
- Parameters:
sessionState- Represents the current state of the dialog between the user and the bot.You can use this to determine the progress of the conversation and what the next action might be.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionState
default GetSessionResponse.Builder sessionState(Consumer<SessionState.Builder> sessionState)
Represents the current state of the dialog between the user and the bot.
You can use this to determine the progress of the conversation and what the next action might be.
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)
-
-