Interface SessionState.Builder

All Superinterfaces:
Buildable, CopyableBuilder<SessionState.Builder,SessionState>, SdkBuilder<SessionState.Builder,SessionState>, SdkPojo
Enclosing class:
SessionState

public static interface SessionState.Builder extends SdkPojo, CopyableBuilder<SessionState.Builder,SessionState>
  • Method Details

    • dialogAction

      SessionState.Builder dialogAction(DialogAction dialogAction)

      The next step that Amazon Lex V2 should take in the conversation with a user.

      Parameters:
      dialogAction - The next step that Amazon Lex V2 should take in the conversation with a user.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dialogAction

      default SessionState.Builder dialogAction(Consumer<DialogAction.Builder> dialogAction)

      The next step that Amazon Lex V2 should take in the conversation with a user.

      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:
    • intent

      SessionState.Builder intent(Intent intent)

      The active intent that Amazon Lex V2 is processing.

      Parameters:
      intent - The active intent that Amazon Lex V2 is processing.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • intent

      default SessionState.Builder intent(Consumer<Intent.Builder> intent)

      The active intent that Amazon Lex V2 is processing.

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

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

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

      SessionState.Builder activeContexts(Collection<ActiveContext> activeContexts)

      One or more contexts that indicate to Amazon Lex V2 the context of a request. When a context is active, Amazon Lex V2 considers intents with the matching context as a trigger as the next intent in a session.

      Parameters:
      activeContexts - One or more contexts that indicate to Amazon Lex V2 the context of a request. When a context is active, Amazon Lex V2 considers intents with the matching context as a trigger as the next intent in a session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • activeContexts

      SessionState.Builder activeContexts(ActiveContext... activeContexts)

      One or more contexts that indicate to Amazon Lex V2 the context of a request. When a context is active, Amazon Lex V2 considers intents with the matching context as a trigger as the next intent in a session.

      Parameters:
      activeContexts - One or more contexts that indicate to Amazon Lex V2 the context of a request. When a context is active, Amazon Lex V2 considers intents with the matching context as a trigger as the next intent in a session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • activeContexts

      SessionState.Builder activeContexts(Consumer<ActiveContext.Builder>... activeContexts)

      One or more contexts that indicate to Amazon Lex V2 the context of a request. When a context is active, Amazon Lex V2 considers intents with the matching context as a trigger as the next intent in a session.

      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:
    • sessionAttributes

      SessionState.Builder sessionAttributes(Map<String,String> sessionAttributes)

      Map of key/value pairs representing session-specific context information. It contains application information passed between Amazon Lex V2 and a client application.

      Parameters:
      sessionAttributes - Map of key/value pairs representing session-specific context information. It contains application information passed between Amazon Lex V2 and a client application.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • originatingRequestId

      SessionState.Builder originatingRequestId(String originatingRequestId)

      A unique identifier for a specific request.

      Parameters:
      originatingRequestId - A unique identifier for a specific request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • runtimeHints

      SessionState.Builder runtimeHints(RuntimeHints runtimeHints)

      Hints for phrases that a customer is likely to use for a slot. Amazon Lex V2 uses the hints to help determine the correct value of a slot.

      Parameters:
      runtimeHints - Hints for phrases that a customer is likely to use for a slot. Amazon Lex V2 uses the hints to help determine the correct value of a slot.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • runtimeHints

      default SessionState.Builder runtimeHints(Consumer<RuntimeHints.Builder> runtimeHints)

      Hints for phrases that a customer is likely to use for a slot. Amazon Lex V2 uses the hints to help determine the correct value of a slot.

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

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

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