Interface PutIntentResponse.Builder

    • Method Detail

      • name

        PutIntentResponse.Builder name​(String 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

        PutIntentResponse.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

        PutIntentResponse.Builder slots​(Collection<Slot> slots)

        An array of intent slots that are configured for the intent.

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

        PutIntentResponse.Builder slots​(Slot... slots)

        An array of intent slots that are configured for the intent.

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

        PutIntentResponse.Builder slots​(Consumer<Slot.Builder>... slots)

        An array of intent slots that are 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).

        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:
        #slots(java.util.Collection)
      • sampleUtterances

        PutIntentResponse.Builder sampleUtterances​(Collection<String> sampleUtterances)

        An array of sample utterances that are configured for the intent.

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

        PutIntentResponse.Builder sampleUtterances​(String... sampleUtterances)

        An array of sample utterances that are configured for the intent.

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

        PutIntentResponse.Builder confirmationPrompt​(Prompt confirmationPrompt)

        If defined in the intent, Amazon Lex prompts the user to confirm the intent before fulfilling it.

        Parameters:
        confirmationPrompt - If defined in the intent, Amazon Lex prompts the user to confirm the intent before fulfilling it.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • rejectionStatement

        PutIntentResponse.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.
      • followUpPrompt

        PutIntentResponse.Builder followUpPrompt​(FollowUpPrompt followUpPrompt)

        If defined in the intent, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled.

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

        PutIntentResponse.Builder conclusionStatement​(Statement conclusionStatement)

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

        Parameters:
        conclusionStatement - After the Lambda function specified in thefulfillmentActivityintent 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.
      • dialogCodeHook

        PutIntentResponse.Builder dialogCodeHook​(CodeHook dialogCodeHook)

        If defined in the intent, Amazon Lex invokes this Lambda function for each user input.

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

        PutIntentResponse.Builder fulfillmentActivity​(FulfillmentActivity fulfillmentActivity)

        If defined in the intent, Amazon Lex invokes this Lambda function to fulfill the intent after the user provides all of the information required by the intent.

        Parameters:
        fulfillmentActivity - If defined in the intent, Amazon Lex invokes this Lambda function to fulfill the intent after the user provides all of the information required by the intent.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • parentIntentSignature

        PutIntentResponse.Builder parentIntentSignature​(String parentIntentSignature)

        A unique identifier for the built-in intent that this intent is based on.

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

        PutIntentResponse.Builder lastUpdatedDate​(Instant lastUpdatedDate)

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

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

        PutIntentResponse.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

        PutIntentResponse.Builder version​(String version)

        The version of the intent. For a new intent, the version is always $LATEST.

        Parameters:
        version - The version of the intent. For a new intent, the version is always $LATEST.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • checksum

        PutIntentResponse.Builder checksum​(String checksum)

        Checksum of the $LATESTversion of the intent created or updated.

        Parameters:
        checksum - Checksum of the $LATESTversion of the intent created or updated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • createVersion

        PutIntentResponse.Builder createVersion​(Boolean createVersion)

        True if a new version of the intent was created. If the createVersion field was not specified in the request, the createVersion field is set to false in the response.

        Parameters:
        createVersion - True if a new version of the intent was created. If the createVersion field was not specified in the request, the createVersion field is set to false in the response.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • kendraConfiguration

        PutIntentResponse.Builder kendraConfiguration​(KendraConfiguration kendraConfiguration)

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

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

        PutIntentResponse.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

        PutIntentResponse.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

        PutIntentResponse.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).

        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:
        #inputContexts(java.util.Collection)
      • outputContexts

        PutIntentResponse.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

        PutIntentResponse.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

        PutIntentResponse.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).

        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:
        #outputContexts(java.util.Collection)