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 Details

    • 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 recentIntentSummaryView operation contains information about the last three intents used.

      If you set the checkpointLabelFilter parameter 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, the recentIntentSummaryView operation contains information about the last three intents used.

      If you set the checkpointLabelFilter parameter 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 recentIntentSummaryView operation contains information about the last three intents used.

      If you set the checkpointLabelFilter parameter 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, the recentIntentSummaryView operation contains information about the last three intents used.

      If you set the checkpointLabelFilter parameter 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 recentIntentSummaryView operation contains information about the last three intents used.

      If you set the checkpointLabelFilter parameter in the request, the array contains only the intents with the specified label.

      This is a convenience method that creates an instance of the IntentSummary.Builder avoiding the need to create one manually via IntentSummary.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to recentIntentSummaryView(List<IntentSummary>).

      Parameters:
      recentIntentSummaryView - a consumer that will call methods on IntentSummary.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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 the DialogAction.Builder avoiding the need to create one manually via DialogAction.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to dialogAction(DialogAction).

      Parameters:
      dialogAction - a consumer that will call methods on DialogAction.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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, or PutSession operation.

      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 the PostContent, PostText, or PutSession operation.

      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, or PutSession operation.

      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 the PostContent, PostText, or PutSession operation.

      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, or PutSession operation.

      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 the ActiveContext.Builder avoiding the need to create one manually via ActiveContext.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to activeContexts(List<ActiveContext>).

      Parameters:
      activeContexts - a consumer that will call methods on ActiveContext.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: