Class IntentState.Builder

  • Enclosing class:
    IntentState

    public static final class IntentState.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • arn

        public IntentState.Builder arn​(@Nullable
                                       com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - The ARN of the Lex intent.
        Returns:
        builder
      • arn

        public IntentState.Builder arn​(java.lang.String arn)
        Parameters:
        arn - The ARN of the Lex intent.
        Returns:
        builder
      • checksum

        public IntentState.Builder checksum​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> checksum)
        Parameters:
        checksum - Checksum identifying the version of the intent that was created. The checksum is not included as an argument because the resource will add it automatically when updating the intent.
        Returns:
        builder
      • checksum

        public IntentState.Builder checksum​(java.lang.String checksum)
        Parameters:
        checksum - Checksum identifying the version of the intent that was created. The checksum is not included as an argument because the resource will add it automatically when updating the intent.
        Returns:
        builder
      • conclusionStatement

        public IntentState.Builder conclusionStatement​(@Nullable
                                                       com.pulumi.core.Output<IntentConclusionStatementArgs> conclusionStatement)
        Parameters:
        conclusionStatement - The statement that you want Amazon Lex to convey to the user after the intent is successfully fulfilled by the Lambda function. This element is relevant only if you provide a Lambda function in the `fulfillment_activity`. If you return the intent to the client application, you can't specify this element. The `follow_up_prompt` and `conclusion_statement` are mutually exclusive. You can specify only one. Attributes are documented under statement.
        Returns:
        builder
      • conclusionStatement

        public IntentState.Builder conclusionStatement​(IntentConclusionStatementArgs conclusionStatement)
        Parameters:
        conclusionStatement - The statement that you want Amazon Lex to convey to the user after the intent is successfully fulfilled by the Lambda function. This element is relevant only if you provide a Lambda function in the `fulfillment_activity`. If you return the intent to the client application, you can't specify this element. The `follow_up_prompt` and `conclusion_statement` are mutually exclusive. You can specify only one. Attributes are documented under statement.
        Returns:
        builder
      • confirmationPrompt

        public IntentState.Builder confirmationPrompt​(@Nullable
                                                      com.pulumi.core.Output<IntentConfirmationPromptArgs> confirmationPrompt)
        Parameters:
        confirmationPrompt - Prompts the user to confirm the intent. This question should have a yes or no answer. You you must provide both the `rejection_statement` and `confirmation_prompt`, or neither. Attributes are documented under prompt.
        Returns:
        builder
      • confirmationPrompt

        public IntentState.Builder confirmationPrompt​(IntentConfirmationPromptArgs confirmationPrompt)
        Parameters:
        confirmationPrompt - Prompts the user to confirm the intent. This question should have a yes or no answer. You you must provide both the `rejection_statement` and `confirmation_prompt`, or neither. Attributes are documented under prompt.
        Returns:
        builder
      • createVersion

        public IntentState.Builder createVersion​(@Nullable
                                                 com.pulumi.core.Output<java.lang.Boolean> createVersion)
        Parameters:
        createVersion - Determines if a new slot type version is created when the initial resource is created and on each update. Defaults to `false`.
        Returns:
        builder
      • createVersion

        public IntentState.Builder createVersion​(java.lang.Boolean createVersion)
        Parameters:
        createVersion - Determines if a new slot type version is created when the initial resource is created and on each update. Defaults to `false`.
        Returns:
        builder
      • createdDate

        public IntentState.Builder createdDate​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> createdDate)
        Parameters:
        createdDate - The date when the intent version was created.
        Returns:
        builder
      • createdDate

        public IntentState.Builder createdDate​(java.lang.String createdDate)
        Parameters:
        createdDate - The date when the intent version was created.
        Returns:
        builder
      • description

        public IntentState.Builder description​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> description)
        Parameters:
        description - A description of the intent. Must be less than or equal to 200 characters in length.
        Returns:
        builder
      • description

        public IntentState.Builder description​(java.lang.String description)
        Parameters:
        description - A description of the intent. Must be less than or equal to 200 characters in length.
        Returns:
        builder
      • dialogCodeHook

        public IntentState.Builder dialogCodeHook​(@Nullable
                                                  com.pulumi.core.Output<IntentDialogCodeHookArgs> dialogCodeHook)
        Parameters:
        dialogCodeHook - Specifies a Lambda function to invoke for each user input. You can invoke this Lambda function to personalize user interaction. Attributes are documented under code_hook.
        Returns:
        builder
      • dialogCodeHook

        public IntentState.Builder dialogCodeHook​(IntentDialogCodeHookArgs dialogCodeHook)
        Parameters:
        dialogCodeHook - Specifies a Lambda function to invoke for each user input. You can invoke this Lambda function to personalize user interaction. Attributes are documented under code_hook.
        Returns:
        builder
      • followUpPrompt

        public IntentState.Builder followUpPrompt​(@Nullable
                                                  com.pulumi.core.Output<IntentFollowUpPromptArgs> followUpPrompt)
        Parameters:
        followUpPrompt - Amazon Lex uses this prompt to solicit additional activity after fulfilling an intent. For example, after the OrderPizza intent is fulfilled, you might prompt the user to order a drink. The `follow_up_prompt` field and the `conclusion_statement` field are mutually exclusive. You can specify only one. Attributes are documented under follow_up_prompt.
        Returns:
        builder
      • followUpPrompt

        public IntentState.Builder followUpPrompt​(IntentFollowUpPromptArgs followUpPrompt)
        Parameters:
        followUpPrompt - Amazon Lex uses this prompt to solicit additional activity after fulfilling an intent. For example, after the OrderPizza intent is fulfilled, you might prompt the user to order a drink. The `follow_up_prompt` field and the `conclusion_statement` field are mutually exclusive. You can specify only one. Attributes are documented under follow_up_prompt.
        Returns:
        builder
      • fulfillmentActivity

        public IntentState.Builder fulfillmentActivity​(@Nullable
                                                       com.pulumi.core.Output<IntentFulfillmentActivityArgs> fulfillmentActivity)
        Parameters:
        fulfillmentActivity - Describes how the intent is fulfilled. For example, after a user provides all of the information for a pizza order, `fulfillment_activity` defines how the bot places an order with a local pizza store. Attributes are documented under fulfillment_activity.
        Returns:
        builder
      • fulfillmentActivity

        public IntentState.Builder fulfillmentActivity​(IntentFulfillmentActivityArgs fulfillmentActivity)
        Parameters:
        fulfillmentActivity - Describes how the intent is fulfilled. For example, after a user provides all of the information for a pizza order, `fulfillment_activity` defines how the bot places an order with a local pizza store. Attributes are documented under fulfillment_activity.
        Returns:
        builder
      • lastUpdatedDate

        public IntentState.Builder lastUpdatedDate​(@Nullable
                                                   com.pulumi.core.Output<java.lang.String> lastUpdatedDate)
        Parameters:
        lastUpdatedDate - The date when the $LATEST version of this intent was updated.
        Returns:
        builder
      • lastUpdatedDate

        public IntentState.Builder lastUpdatedDate​(java.lang.String lastUpdatedDate)
        Parameters:
        lastUpdatedDate - The date when the $LATEST version of this intent was updated.
        Returns:
        builder
      • name

        public IntentState.Builder name​(@Nullable
                                        com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - The name of the intent, not case sensitive. Must be less than or equal to 100 characters in length.
        Returns:
        builder
      • name

        public IntentState.Builder name​(java.lang.String name)
        Parameters:
        name - The name of the intent, not case sensitive. Must be less than or equal to 100 characters in length.
        Returns:
        builder
      • parentIntentSignature

        public IntentState.Builder parentIntentSignature​(@Nullable
                                                         com.pulumi.core.Output<java.lang.String> parentIntentSignature)
        Parameters:
        parentIntentSignature - A unique identifier for the built-in intent to base this intent on. To find the signature for an intent, see [Standard Built-in Intents](https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/built-in-intent-ref/standard-intents) in the Alexa Skills Kit.
        Returns:
        builder
      • parentIntentSignature

        public IntentState.Builder parentIntentSignature​(java.lang.String parentIntentSignature)
        Parameters:
        parentIntentSignature - A unique identifier for the built-in intent to base this intent on. To find the signature for an intent, see [Standard Built-in Intents](https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/built-in-intent-ref/standard-intents) in the Alexa Skills Kit.
        Returns:
        builder
      • rejectionStatement

        public IntentState.Builder rejectionStatement​(@Nullable
                                                      com.pulumi.core.Output<IntentRejectionStatementArgs> rejectionStatement)
        Parameters:
        rejectionStatement - When the user answers "no" to the question defined in `confirmation_prompt`, Amazon Lex responds with this statement to acknowledge that the intent was canceled. You must provide both the `rejection_statement` and the `confirmation_prompt`, or neither. Attributes are documented under statement.
        Returns:
        builder
      • rejectionStatement

        public IntentState.Builder rejectionStatement​(IntentRejectionStatementArgs rejectionStatement)
        Parameters:
        rejectionStatement - When the user answers "no" to the question defined in `confirmation_prompt`, Amazon Lex responds with this statement to acknowledge that the intent was canceled. You must provide both the `rejection_statement` and the `confirmation_prompt`, or neither. Attributes are documented under statement.
        Returns:
        builder
      • sampleUtterances

        public IntentState.Builder sampleUtterances​(@Nullable
                                                    com.pulumi.core.Output<java.util.List<java.lang.String>> sampleUtterances)
        Parameters:
        sampleUtterances - An array of utterances (strings) that a user might say to signal the intent. For example, "I want {PizzaSize} pizza", "Order {Quantity} {PizzaSize} pizzas". In each utterance, a slot name is enclosed in curly braces. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length.
        Returns:
        builder
      • sampleUtterances

        public IntentState.Builder sampleUtterances​(java.util.List<java.lang.String> sampleUtterances)
        Parameters:
        sampleUtterances - An array of utterances (strings) that a user might say to signal the intent. For example, "I want {PizzaSize} pizza", "Order {Quantity} {PizzaSize} pizzas". In each utterance, a slot name is enclosed in curly braces. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length.
        Returns:
        builder
      • sampleUtterances

        public IntentState.Builder sampleUtterances​(java.lang.String... sampleUtterances)
        Parameters:
        sampleUtterances - An array of utterances (strings) that a user might say to signal the intent. For example, "I want {PizzaSize} pizza", "Order {Quantity} {PizzaSize} pizzas". In each utterance, a slot name is enclosed in curly braces. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length.
        Returns:
        builder
      • slots

        public IntentState.Builder slots​(@Nullable
                                         com.pulumi.core.Output<java.util.List<IntentSlotArgs>> slots)
        Parameters:
        slots - An list of intent slots. At runtime, Amazon Lex elicits required slot values from the user using prompts defined in the slots. Attributes are documented under slot.
        Returns:
        builder
      • slots

        public IntentState.Builder slots​(java.util.List<IntentSlotArgs> slots)
        Parameters:
        slots - An list of intent slots. At runtime, Amazon Lex elicits required slot values from the user using prompts defined in the slots. Attributes are documented under slot.
        Returns:
        builder
      • slots

        public IntentState.Builder slots​(IntentSlotArgs... slots)
        Parameters:
        slots - An list of intent slots. At runtime, Amazon Lex elicits required slot values from the user using prompts defined in the slots. Attributes are documented under slot.
        Returns:
        builder
      • version

        public IntentState.Builder version​(@Nullable
                                           com.pulumi.core.Output<java.lang.String> version)
        Parameters:
        version - The version of the bot.
        Returns:
        builder
      • version

        public IntentState.Builder version​(java.lang.String version)
        Parameters:
        version - The version of the bot.
        Returns:
        builder