Interface CreateIntentVersionResponse.Builder

    • Method Detail

      • name

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

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

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

        An array of slot types that defines the information required to fulfill the intent.

        Parameters:
        slots - An array of slot types that defines the information required to fulfill the intent.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • slots

        CreateIntentVersionResponse.Builder slots​(Slot... slots)

        An array of slot types that defines the information required to fulfill the intent.

        Parameters:
        slots - An array of slot types that defines the information required to fulfill the intent.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • slots

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

        An array of slot types that defines the information required to fulfill 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

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

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

        CreateIntentVersionResponse.Builder confirmationPrompt​(Prompt confirmationPrompt)

        If defined, the prompt that Amazon Lex uses to confirm the user's intent before fulfilling it.

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

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

        CreateIntentVersionResponse.Builder followUpPrompt​(FollowUpPrompt followUpPrompt)

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

        Parameters:
        followUpPrompt - If defined, 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

        CreateIntentVersionResponse.Builder conclusionStatement​(Statement conclusionStatement)

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

        Parameters:
        conclusionStatement - After the Lambda function specified in the fulfillmentActivity field 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

        CreateIntentVersionResponse.Builder dialogCodeHook​(CodeHook dialogCodeHook)

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

        Parameters:
        dialogCodeHook - If defined, 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

        CreateIntentVersionResponse.Builder fulfillmentActivity​(FulfillmentActivity fulfillmentActivity)

        Describes how the intent is fulfilled.

        Parameters:
        fulfillmentActivity - Describes how the intent is fulfilled.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • parentIntentSignature

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

        CreateIntentVersionResponse.Builder lastUpdatedDate​(Instant lastUpdatedDate)

        The date that the intent was updated.

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

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

        CreateIntentVersionResponse.Builder version​(String version)

        The version number assigned to the new version of the intent.

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

        CreateIntentVersionResponse.Builder checksum​(String checksum)

        Checksum of the intent version created.

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

        CreateIntentVersionResponse.Builder kendraConfiguration​(KendraConfiguration kendraConfiguration)

        Configuration information, if any, for connecting an Amazon Kendra index with the AMAZON.KendraSearchIntent intent.

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

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

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

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

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

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