Interface GetIntentResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CopyableBuilder<GetIntentResponse.Builder,GetIntentResponse>, LexModelBuildingResponse.Builder, SdkBuilder<GetIntentResponse.Builder,GetIntentResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
GetIntentResponse

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

    • name

      The name of the intent.

      Parameters:
      name - The name of the intent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      GetIntentResponse.Builder description(String description)

      A description of the intent.

      Parameters:
      description - A description of the intent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • slots

      An array of intent slots configured for the intent.

      Parameters:
      slots - An array of intent slots configured for the intent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • slots

      An array of intent slots configured for the intent.

      Parameters:
      slots - An array of intent slots configured for the intent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • slots

      An array of intent slots configured for the intent.

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

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

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

      GetIntentResponse.Builder sampleUtterances(Collection<String> sampleUtterances)

      An array of sample utterances configured for the intent.

      Parameters:
      sampleUtterances - An array of sample utterances configured for the intent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sampleUtterances

      GetIntentResponse.Builder sampleUtterances(String... sampleUtterances)

      An array of sample utterances configured for the intent.

      Parameters:
      sampleUtterances - An array of sample utterances configured for the intent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • confirmationPrompt

      GetIntentResponse.Builder confirmationPrompt(Prompt confirmationPrompt)

      If defined in the bot, Amazon Lex uses prompt to confirm the intent before fulfilling the user's request. For more information, see PutIntent.

      Parameters:
      confirmationPrompt - If defined in the bot, Amazon Lex uses prompt to confirm the intent before fulfilling the user's request. For more information, see PutIntent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • confirmationPrompt

      default GetIntentResponse.Builder confirmationPrompt(Consumer<Prompt.Builder> confirmationPrompt)

      If defined in the bot, Amazon Lex uses prompt to confirm the intent before fulfilling the user's request. For more information, see PutIntent.

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

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

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

      GetIntentResponse.Builder rejectionStatement(Statement rejectionStatement)

      If the user answers "no" to the question defined in confirmationPrompt, Amazon Lex responds with this statement to acknowledge that the intent was canceled.

      Parameters:
      rejectionStatement - If the user answers "no" to the question defined in confirmationPrompt, Amazon Lex responds with this statement to acknowledge that the intent was canceled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rejectionStatement

      default GetIntentResponse.Builder rejectionStatement(Consumer<Statement.Builder> rejectionStatement)

      If the user answers "no" to the question defined in confirmationPrompt, Amazon Lex responds with this statement to acknowledge that the intent was canceled.

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

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

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

      GetIntentResponse.Builder followUpPrompt(FollowUpPrompt followUpPrompt)

      If defined in the bot, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled. For more information, see PutIntent.

      Parameters:
      followUpPrompt - If defined in the bot, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled. For more information, see PutIntent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • followUpPrompt

      default GetIntentResponse.Builder followUpPrompt(Consumer<FollowUpPrompt.Builder> followUpPrompt)

      If defined in the bot, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled. For more information, see PutIntent.

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

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

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

      GetIntentResponse.Builder conclusionStatement(Statement conclusionStatement)

      After the Lambda function specified in the fulfillmentActivity element fulfills the intent, Amazon Lex conveys this statement to the user.

      Parameters:
      conclusionStatement - After the Lambda function specified in the fulfillmentActivity element fulfills the intent, Amazon Lex conveys this statement to the user.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • conclusionStatement

      default GetIntentResponse.Builder conclusionStatement(Consumer<Statement.Builder> conclusionStatement)

      After the Lambda function specified in the fulfillmentActivity element fulfills the intent, Amazon Lex conveys this statement to the user.

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

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

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

      GetIntentResponse.Builder dialogCodeHook(CodeHook dialogCodeHook)

      If defined in the bot, Amazon Amazon Lex invokes this Lambda function for each user input. For more information, see PutIntent.

      Parameters:
      dialogCodeHook - If defined in the bot, Amazon Amazon Lex invokes this Lambda function for each user input. For more information, see PutIntent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dialogCodeHook

      default GetIntentResponse.Builder dialogCodeHook(Consumer<CodeHook.Builder> dialogCodeHook)

      If defined in the bot, Amazon Amazon Lex invokes this Lambda function for each user input. For more information, see PutIntent.

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

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

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

      GetIntentResponse.Builder fulfillmentActivity(FulfillmentActivity fulfillmentActivity)

      Describes how the intent is fulfilled. For more information, see PutIntent.

      Parameters:
      fulfillmentActivity - Describes how the intent is fulfilled. For more information, see PutIntent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fulfillmentActivity

      default GetIntentResponse.Builder fulfillmentActivity(Consumer<FulfillmentActivity.Builder> fulfillmentActivity)

      Describes how the intent is fulfilled. For more information, see PutIntent.

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

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

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

      GetIntentResponse.Builder parentIntentSignature(String parentIntentSignature)

      A unique identifier for a built-in intent.

      Parameters:
      parentIntentSignature - A unique identifier for a built-in intent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastUpdatedDate

      GetIntentResponse.Builder lastUpdatedDate(Instant lastUpdatedDate)

      The date that the intent was updated. When you create a resource, the creation date and the last updated date are the same.

      Parameters:
      lastUpdatedDate - The date that the intent was updated. When you create a resource, the creation date and the last updated date are the same.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdDate

      GetIntentResponse.Builder createdDate(Instant createdDate)

      The date that the intent was created.

      Parameters:
      createdDate - The date that the intent was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • version

      The version of the intent.

      Parameters:
      version - The version of the intent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • checksum

      GetIntentResponse.Builder checksum(String checksum)

      Checksum of the intent.

      Parameters:
      checksum - Checksum of the intent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • kendraConfiguration

      GetIntentResponse.Builder kendraConfiguration(KendraConfiguration kendraConfiguration)

      Configuration information, if any, to connect to an Amazon Kendra index with the AMAZON.KendraSearchIntent intent.

      Parameters:
      kendraConfiguration - Configuration information, if any, to connect to an Amazon Kendra index with the AMAZON.KendraSearchIntent intent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • kendraConfiguration

      default GetIntentResponse.Builder kendraConfiguration(Consumer<KendraConfiguration.Builder> kendraConfiguration)

      Configuration information, if any, to connect to an Amazon Kendra index with the AMAZON.KendraSearchIntent intent.

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

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

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

      GetIntentResponse.Builder inputContexts(Collection<InputContext> inputContexts)

      An array of InputContext objects that lists the contexts that must be active for Amazon Lex to choose the intent in a conversation with the user.

      Parameters:
      inputContexts - An array of InputContext objects that lists the contexts that must be active for Amazon Lex to choose the intent in a conversation with the user.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inputContexts

      GetIntentResponse.Builder inputContexts(InputContext... inputContexts)

      An array of InputContext objects that lists the contexts that must be active for Amazon Lex to choose the intent in a conversation with the user.

      Parameters:
      inputContexts - An array of InputContext objects that lists the contexts that must be active for Amazon Lex to choose the intent in a conversation with the user.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inputContexts

      GetIntentResponse.Builder inputContexts(Consumer<InputContext.Builder>... inputContexts)

      An array of InputContext objects that lists the contexts that must be active for Amazon Lex to choose the intent in a conversation with the user.

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

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

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

      GetIntentResponse.Builder outputContexts(Collection<OutputContext> outputContexts)

      An array of OutputContext objects that lists the contexts that the intent activates when the intent is fulfilled.

      Parameters:
      outputContexts - An array of OutputContext objects that lists the contexts that the intent activates when the intent is fulfilled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • outputContexts

      GetIntentResponse.Builder outputContexts(OutputContext... outputContexts)

      An array of OutputContext objects that lists the contexts that the intent activates when the intent is fulfilled.

      Parameters:
      outputContexts - An array of OutputContext objects that lists the contexts that the intent activates when the intent is fulfilled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • outputContexts

      GetIntentResponse.Builder outputContexts(Consumer<OutputContext.Builder>... outputContexts)

      An array of OutputContext objects that lists the contexts that the intent activates when the intent is fulfilled.

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

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

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