Interface Interpretation.Builder

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

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

    • nluConfidence

      Interpretation.Builder nluConfidence(ConfidenceScore nluConfidence)

      Determines the threshold where Amazon Lex V2 will insert the AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or both when returning alternative intents in a response. AMAZON.FallbackIntent and AMAZON.KendraSearchIntent are only inserted if they are configured for the bot.

      Parameters:
      nluConfidence - Determines the threshold where Amazon Lex V2 will insert the AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or both when returning alternative intents in a response. AMAZON.FallbackIntent and AMAZON.KendraSearchIntent are only inserted if they are configured for the bot.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nluConfidence

      default Interpretation.Builder nluConfidence(Consumer<ConfidenceScore.Builder> nluConfidence)

      Determines the threshold where Amazon Lex V2 will insert the AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or both when returning alternative intents in a response. AMAZON.FallbackIntent and AMAZON.KendraSearchIntent are only inserted if they are configured for the bot.

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

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

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

      Interpretation.Builder sentimentResponse(SentimentResponse sentimentResponse)

      The sentiment expressed in an utterance.

      When the bot is configured to send utterances to Amazon Comprehend for sentiment analysis, this field contains the result of the analysis.

      Parameters:
      sentimentResponse - The sentiment expressed in an utterance.

      When the bot is configured to send utterances to Amazon Comprehend for sentiment analysis, this field contains the result of the analysis.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sentimentResponse

      default Interpretation.Builder sentimentResponse(Consumer<SentimentResponse.Builder> sentimentResponse)

      The sentiment expressed in an utterance.

      When the bot is configured to send utterances to Amazon Comprehend for sentiment analysis, this field contains the result of the analysis.

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

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

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

      A list of intents that might satisfy the user's utterance. The intents are ordered by the confidence score.

      Parameters:
      intent - A list of intents that might satisfy the user's utterance. The intents are ordered by the confidence score.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • intent

      A list of intents that might satisfy the user's utterance. The intents are ordered by the confidence score.

      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: