Class IntentSlotArgs.Builder

  • Enclosing class:
    IntentSlotArgs

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

      • Builder

        public Builder()
    • Method Detail

      • description

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

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

        public IntentSlotArgs.Builder name​(com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - The name of the intent slot that you want to create. The name is case sensitive. Must be less than or equal to 100 characters in length.
        Returns:
        builder
      • name

        public IntentSlotArgs.Builder name​(java.lang.String name)
        Parameters:
        name - The name of the intent slot that you want to create. The name is case sensitive. Must be less than or equal to 100 characters in length.
        Returns:
        builder
      • priority

        public IntentSlotArgs.Builder priority​(@Nullable
                                               com.pulumi.core.Output<java.lang.Integer> priority)
        Parameters:
        priority - Directs Lex the order in which to elicit this slot value from the user. For example, if the intent has two slots with priorities 1 and 2, AWS Lex first elicits a value for the slot with priority 1. If multiple slots share the same priority, the order in which Lex elicits values is arbitrary. Must be between 1 and 100.
        Returns:
        builder
      • priority

        public IntentSlotArgs.Builder priority​(java.lang.Integer priority)
        Parameters:
        priority - Directs Lex the order in which to elicit this slot value from the user. For example, if the intent has two slots with priorities 1 and 2, AWS Lex first elicits a value for the slot with priority 1. If multiple slots share the same priority, the order in which Lex elicits values is arbitrary. Must be between 1 and 100.
        Returns:
        builder
      • responseCard

        public IntentSlotArgs.Builder responseCard​(@Nullable
                                                   com.pulumi.core.Output<java.lang.String> responseCard)
        Parameters:
        responseCard - The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see [Example: Using a Response Card](https://docs.aws.amazon.com/lex/latest/dg/ex-resp-card.html). Must be less than or equal to 50000 characters in length.
        Returns:
        builder
      • responseCard

        public IntentSlotArgs.Builder responseCard​(java.lang.String responseCard)
        Parameters:
        responseCard - The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see [Example: Using a Response Card](https://docs.aws.amazon.com/lex/latest/dg/ex-resp-card.html). Must be less than or equal to 50000 characters in length.
        Returns:
        builder
      • sampleUtterances

        public IntentSlotArgs.Builder sampleUtterances​(@Nullable
                                                       com.pulumi.core.Output<java.util.List<java.lang.String>> sampleUtterances)
        Parameters:
        sampleUtterances - If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances. 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 IntentSlotArgs.Builder sampleUtterances​(java.util.List<java.lang.String> sampleUtterances)
        Parameters:
        sampleUtterances - If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances. 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 IntentSlotArgs.Builder sampleUtterances​(java.lang.String... sampleUtterances)
        Parameters:
        sampleUtterances - If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances. 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
      • slotConstraint

        public IntentSlotArgs.Builder slotConstraint​(com.pulumi.core.Output<java.lang.String> slotConstraint)
        Parameters:
        slotConstraint - Specifies whether the slot is required or optional.
        Returns:
        builder
      • slotConstraint

        public IntentSlotArgs.Builder slotConstraint​(java.lang.String slotConstraint)
        Parameters:
        slotConstraint - Specifies whether the slot is required or optional.
        Returns:
        builder
      • slotType

        public IntentSlotArgs.Builder slotType​(com.pulumi.core.Output<java.lang.String> slotType)
        Parameters:
        slotType - The type of the slot, either a custom slot type that you defined or one of the built-in slot types. Must be less than or equal to 100 characters in length.
        Returns:
        builder
      • slotType

        public IntentSlotArgs.Builder slotType​(java.lang.String slotType)
        Parameters:
        slotType - The type of the slot, either a custom slot type that you defined or one of the built-in slot types. Must be less than or equal to 100 characters in length.
        Returns:
        builder
      • slotTypeVersion

        public IntentSlotArgs.Builder slotTypeVersion​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> slotTypeVersion)
        Parameters:
        slotTypeVersion - The version of the slot type. Must be less than or equal to 64 characters in length.
        Returns:
        builder
      • slotTypeVersion

        public IntentSlotArgs.Builder slotTypeVersion​(java.lang.String slotTypeVersion)
        Parameters:
        slotTypeVersion - The version of the slot type. Must be less than or equal to 64 characters in length.
        Returns:
        builder
      • valueElicitationPrompt

        public IntentSlotArgs.Builder valueElicitationPrompt​(@Nullable
                                                             com.pulumi.core.Output<IntentSlotValueElicitationPromptArgs> valueElicitationPrompt)
        Parameters:
        valueElicitationPrompt - The prompt that Amazon Lex uses to elicit the slot value from the user. Attributes are documented under prompt.
        Returns:
        builder
      • valueElicitationPrompt

        public IntentSlotArgs.Builder valueElicitationPrompt​(IntentSlotValueElicitationPromptArgs valueElicitationPrompt)
        Parameters:
        valueElicitationPrompt - The prompt that Amazon Lex uses to elicit the slot value from the user. Attributes are documented under prompt.
        Returns:
        builder