Interface GetSessionResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetSessionResponse.Builder,GetSessionResponse>,LexRuntimeResponse.Builder,SdkBuilder<GetSessionResponse.Builder,GetSessionResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetSessionResponse
public static interface GetSessionResponse.Builder extends LexRuntimeResponse.Builder, SdkPojo, CopyableBuilder<GetSessionResponse.Builder,GetSessionResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GetSessionResponse.BuilderactiveContexts(Collection<ActiveContext> activeContexts)A list of active contexts for the session.GetSessionResponse.BuilderactiveContexts(Consumer<ActiveContext.Builder>... activeContexts)A list of active contexts for the session.GetSessionResponse.BuilderactiveContexts(ActiveContext... activeContexts)A list of active contexts for the session.default GetSessionResponse.BuilderdialogAction(Consumer<DialogAction.Builder> dialogAction)Describes the current state of the bot.GetSessionResponse.BuilderdialogAction(DialogAction dialogAction)Describes the current state of the bot.GetSessionResponse.BuilderrecentIntentSummaryView(Collection<IntentSummary> recentIntentSummaryView)An array of information about the intents used in the session.GetSessionResponse.BuilderrecentIntentSummaryView(Consumer<IntentSummary.Builder>... recentIntentSummaryView)An array of information about the intents used in the session.GetSessionResponse.BuilderrecentIntentSummaryView(IntentSummary... recentIntentSummaryView)An array of information about the intents used in the session.GetSessionResponse.BuildersessionAttributes(Map<String,String> sessionAttributes)Map of key/value pairs representing the session-specific context information.GetSessionResponse.BuildersessionId(String sessionId)A unique identifier for the session.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.lexruntime.model.LexRuntimeResponse.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, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
recentIntentSummaryView
GetSessionResponse.Builder recentIntentSummaryView(Collection<IntentSummary> recentIntentSummaryView)
An array of information about the intents used in the session. The array can contain a maximum of three summaries. If more than three intents are used in the session, the
recentIntentSummaryViewoperation contains information about the last three intents used.If you set the
checkpointLabelFilterparameter in the request, the array contains only the intents with the specified label.- Parameters:
recentIntentSummaryView- An array of information about the intents used in the session. The array can contain a maximum of three summaries. If more than three intents are used in the session, therecentIntentSummaryViewoperation contains information about the last three intents used.If you set the
checkpointLabelFilterparameter in the request, the array contains only the intents with the specified label.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recentIntentSummaryView
GetSessionResponse.Builder recentIntentSummaryView(IntentSummary... recentIntentSummaryView)
An array of information about the intents used in the session. The array can contain a maximum of three summaries. If more than three intents are used in the session, the
recentIntentSummaryViewoperation contains information about the last three intents used.If you set the
checkpointLabelFilterparameter in the request, the array contains only the intents with the specified label.- Parameters:
recentIntentSummaryView- An array of information about the intents used in the session. The array can contain a maximum of three summaries. If more than three intents are used in the session, therecentIntentSummaryViewoperation contains information about the last three intents used.If you set the
checkpointLabelFilterparameter in the request, the array contains only the intents with the specified label.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recentIntentSummaryView
GetSessionResponse.Builder recentIntentSummaryView(Consumer<IntentSummary.Builder>... recentIntentSummaryView)
An array of information about the intents used in the session. The array can contain a maximum of three summaries. If more than three intents are used in the session, the
recentIntentSummaryViewoperation contains information about the last three intents used.If you set the
This is a convenience method that creates an instance of thecheckpointLabelFilterparameter in the request, the array contains only the intents with the specified label.IntentSummary.Builderavoiding the need to create one manually viaIntentSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#recentIntentSummaryView(List.) - Parameters:
recentIntentSummaryView- a consumer that will call methods onIntentSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#recentIntentSummaryView(java.util.Collection)
-
sessionAttributes
GetSessionResponse.Builder sessionAttributes(Map<String,String> sessionAttributes)
Map of key/value pairs representing the session-specific context information. It contains application information passed between Amazon Lex and a client application.
- Parameters:
sessionAttributes- Map of key/value pairs representing the session-specific context information. It contains application information passed between Amazon Lex and a client application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionId
GetSessionResponse.Builder sessionId(String sessionId)
A unique identifier for the session.
- Parameters:
sessionId- A unique identifier for the session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dialogAction
GetSessionResponse.Builder dialogAction(DialogAction dialogAction)
Describes the current state of the bot.
- Parameters:
dialogAction- Describes the current state of the bot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dialogAction
default GetSessionResponse.Builder dialogAction(Consumer<DialogAction.Builder> dialogAction)
Describes the current state of the bot.
This is a convenience method that creates an instance of theDialogAction.Builderavoiding the need to create one manually viaDialogAction.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todialogAction(DialogAction).- Parameters:
dialogAction- a consumer that will call methods onDialogAction.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
dialogAction(DialogAction)
-
activeContexts
GetSessionResponse.Builder activeContexts(Collection<ActiveContext> activeContexts)
A list of active contexts for the session. A context can be set when an intent is fulfilled or by calling the
PostContent,PostText, orPutSessionoperation.You can use a context to control the intents that can follow up an intent, or to modify the operation of your application.
- Parameters:
activeContexts- A list of active contexts for the session. A context can be set when an intent is fulfilled or by calling thePostContent,PostText, orPutSessionoperation.You can use a context to control the intents that can follow up an intent, or to modify the operation of your application.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
activeContexts
GetSessionResponse.Builder activeContexts(ActiveContext... activeContexts)
A list of active contexts for the session. A context can be set when an intent is fulfilled or by calling the
PostContent,PostText, orPutSessionoperation.You can use a context to control the intents that can follow up an intent, or to modify the operation of your application.
- Parameters:
activeContexts- A list of active contexts for the session. A context can be set when an intent is fulfilled or by calling thePostContent,PostText, orPutSessionoperation.You can use a context to control the intents that can follow up an intent, or to modify the operation of your application.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
activeContexts
GetSessionResponse.Builder activeContexts(Consumer<ActiveContext.Builder>... activeContexts)
A list of active contexts for the session. A context can be set when an intent is fulfilled or by calling the
PostContent,PostText, orPutSessionoperation.You can use a context to control the intents that can follow up an intent, or to modify the operation of your application.
This is a convenience method that creates an instance of theActiveContext.Builderavoiding the need to create one manually viaActiveContext.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#activeContexts(List.) - Parameters:
activeContexts- a consumer that will call methods onActiveContext.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#activeContexts(java.util.Collection)
-
-