Class BotState.Builder

  • Enclosing class:
    BotState

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

      • Builder

        public Builder()
      • Builder

        public Builder​(BotState defaults)
    • Method Detail

      • abortStatement

        public BotState.Builder abortStatement​(@Nullable
                                               com.pulumi.core.Output<BotAbortStatementArgs> abortStatement)
        Parameters:
        abortStatement - The message that Amazon Lex uses to abort a conversation. Attributes are documented under statement.
        Returns:
        builder
      • abortStatement

        public BotState.Builder abortStatement​(BotAbortStatementArgs abortStatement)
        Parameters:
        abortStatement - The message that Amazon Lex uses to abort a conversation. Attributes are documented under statement.
        Returns:
        builder
      • arn

        public BotState.Builder arn​(@Nullable
                                    com.pulumi.core.Output<java.lang.String> arn)
      • checksum

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

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

        public BotState.Builder childDirected​(@Nullable
                                              com.pulumi.core.Output<java.lang.Boolean> childDirected)
        Parameters:
        childDirected - By specifying true, you confirm that your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. For more information see the [Amazon Lex FAQ](https://aws.amazon.com/lex/faqs#data-security) and the [Amazon Lex PutBot API Docs](https://docs.aws.amazon.com/lex/latest/dg/API_PutBot.html#lex-PutBot-request-childDirected).
        Returns:
        builder
      • childDirected

        public BotState.Builder childDirected​(java.lang.Boolean childDirected)
        Parameters:
        childDirected - By specifying true, you confirm that your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. For more information see the [Amazon Lex FAQ](https://aws.amazon.com/lex/faqs#data-security) and the [Amazon Lex PutBot API Docs](https://docs.aws.amazon.com/lex/latest/dg/API_PutBot.html#lex-PutBot-request-childDirected).
        Returns:
        builder
      • clarificationPrompt

        public BotState.Builder clarificationPrompt​(@Nullable
                                                    com.pulumi.core.Output<BotClarificationPromptArgs> clarificationPrompt)
        Parameters:
        clarificationPrompt - The message that Amazon Lex uses when it doesn't understand the user's request. Attributes are documented under prompt.
        Returns:
        builder
      • clarificationPrompt

        public BotState.Builder clarificationPrompt​(BotClarificationPromptArgs clarificationPrompt)
        Parameters:
        clarificationPrompt - The message that Amazon Lex uses when it doesn't understand the user's request. Attributes are documented under prompt.
        Returns:
        builder
      • createVersion

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

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

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

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

        public BotState.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 BotState.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
      • detectSentiment

        public BotState.Builder detectSentiment​(@Nullable
                                                com.pulumi.core.Output<java.lang.Boolean> detectSentiment)
        Parameters:
        detectSentiment - When set to true user utterances are sent to Amazon Comprehend for sentiment analysis. If you don't specify detectSentiment, the default is `false`.
        Returns:
        builder
      • detectSentiment

        public BotState.Builder detectSentiment​(java.lang.Boolean detectSentiment)
        Parameters:
        detectSentiment - When set to true user utterances are sent to Amazon Comprehend for sentiment analysis. If you don't specify detectSentiment, the default is `false`.
        Returns:
        builder
      • enableModelImprovements

        public BotState.Builder enableModelImprovements​(@Nullable
                                                        com.pulumi.core.Output<java.lang.Boolean> enableModelImprovements)
        Parameters:
        enableModelImprovements - Set to `true` to enable access to natural language understanding improvements. When you set the `enable_model_improvements` parameter to true you can use the `nlu_intent_confidence_threshold` parameter to configure confidence scores. For more information, see [Confidence Scores](https://docs.aws.amazon.com/lex/latest/dg/confidence-scores.html). You can only set the `enable_model_improvements` parameter in certain Regions. If you set the parameter to true, your bot has access to accuracy improvements. For more information see the [Amazon Lex Bot PutBot API Docs](https://docs.aws.amazon.com/lex/latest/dg/API_PutBot.html#lex-PutBot-request-enableModelImprovements).
        Returns:
        builder
      • enableModelImprovements

        public BotState.Builder enableModelImprovements​(java.lang.Boolean enableModelImprovements)
        Parameters:
        enableModelImprovements - Set to `true` to enable access to natural language understanding improvements. When you set the `enable_model_improvements` parameter to true you can use the `nlu_intent_confidence_threshold` parameter to configure confidence scores. For more information, see [Confidence Scores](https://docs.aws.amazon.com/lex/latest/dg/confidence-scores.html). You can only set the `enable_model_improvements` parameter in certain Regions. If you set the parameter to true, your bot has access to accuracy improvements. For more information see the [Amazon Lex Bot PutBot API Docs](https://docs.aws.amazon.com/lex/latest/dg/API_PutBot.html#lex-PutBot-request-enableModelImprovements).
        Returns:
        builder
      • failureReason

        public BotState.Builder failureReason​(@Nullable
                                              com.pulumi.core.Output<java.lang.String> failureReason)
        Parameters:
        failureReason - If status is FAILED, Amazon Lex provides the reason that it failed to build the bot.
        Returns:
        builder
      • failureReason

        public BotState.Builder failureReason​(java.lang.String failureReason)
        Parameters:
        failureReason - If status is FAILED, Amazon Lex provides the reason that it failed to build the bot.
        Returns:
        builder
      • idleSessionTtlInSeconds

        public BotState.Builder idleSessionTtlInSeconds​(@Nullable
                                                        com.pulumi.core.Output<java.lang.Integer> idleSessionTtlInSeconds)
        Parameters:
        idleSessionTtlInSeconds - The maximum time in seconds that Amazon Lex retains the data gathered in a conversation. Default is `300`. Must be a number between 60 and 86400 (inclusive).
        Returns:
        builder
      • idleSessionTtlInSeconds

        public BotState.Builder idleSessionTtlInSeconds​(java.lang.Integer idleSessionTtlInSeconds)
        Parameters:
        idleSessionTtlInSeconds - The maximum time in seconds that Amazon Lex retains the data gathered in a conversation. Default is `300`. Must be a number between 60 and 86400 (inclusive).
        Returns:
        builder
      • intents

        public BotState.Builder intents​(@Nullable
                                        com.pulumi.core.Output<java.util.List<BotIntentArgs>> intents)
        Parameters:
        intents - A set of Intent objects. Each intent represents a command that a user can express. Attributes are documented under intent. Can have up to 250 Intent objects.
        Returns:
        builder
      • intents

        public BotState.Builder intents​(java.util.List<BotIntentArgs> intents)
        Parameters:
        intents - A set of Intent objects. Each intent represents a command that a user can express. Attributes are documented under intent. Can have up to 250 Intent objects.
        Returns:
        builder
      • intents

        public BotState.Builder intents​(BotIntentArgs... intents)
        Parameters:
        intents - A set of Intent objects. Each intent represents a command that a user can express. Attributes are documented under intent. Can have up to 250 Intent objects.
        Returns:
        builder
      • lastUpdatedDate

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

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

        public BotState.Builder locale​(@Nullable
                                       com.pulumi.core.Output<java.lang.String> locale)
        Parameters:
        locale - Specifies the target locale for the bot. Any intent used in the bot must be compatible with the locale of the bot. For available locales, see [Amazon Lex Bot PutBot API Docs](https://docs.aws.amazon.com/lex/latest/dg/API_PutBot.html#lex-PutBot-request-locale). Default is `en-US`.
        Returns:
        builder
      • locale

        public BotState.Builder locale​(java.lang.String locale)
        Parameters:
        locale - Specifies the target locale for the bot. Any intent used in the bot must be compatible with the locale of the bot. For available locales, see [Amazon Lex Bot PutBot API Docs](https://docs.aws.amazon.com/lex/latest/dg/API_PutBot.html#lex-PutBot-request-locale). Default is `en-US`.
        Returns:
        builder
      • name

        public BotState.Builder name​(@Nullable
                                     com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - The name of the bot that you want to create, case sensitive. Must be between 2 and 50 characters in length.
        Returns:
        builder
      • name

        public BotState.Builder name​(java.lang.String name)
        Parameters:
        name - The name of the bot that you want to create, case sensitive. Must be between 2 and 50 characters in length.
        Returns:
        builder
      • nluIntentConfidenceThreshold

        public BotState.Builder nluIntentConfidenceThreshold​(@Nullable
                                                             com.pulumi.core.Output<java.lang.Double> nluIntentConfidenceThreshold)
        Parameters:
        nluIntentConfidenceThreshold - Determines the threshold where Amazon Lex will insert the AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or both when returning alternative intents in a PostContent or PostText response. AMAZON.FallbackIntent and AMAZON.KendraSearchIntent are only inserted if they are configured for the bot. For more information see [Amazon Lex Bot PutBot API Docs](https://docs.aws.amazon.com/lex/latest/dg/API_PutBot.html#lex-PutBot-request-nluIntentConfidenceThreshold) This value requires `enable_model_improvements` to be set to `true` and the default is `0`. Must be a float between 0 and 1.
        Returns:
        builder
      • nluIntentConfidenceThreshold

        public BotState.Builder nluIntentConfidenceThreshold​(java.lang.Double nluIntentConfidenceThreshold)
        Parameters:
        nluIntentConfidenceThreshold - Determines the threshold where Amazon Lex will insert the AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or both when returning alternative intents in a PostContent or PostText response. AMAZON.FallbackIntent and AMAZON.KendraSearchIntent are only inserted if they are configured for the bot. For more information see [Amazon Lex Bot PutBot API Docs](https://docs.aws.amazon.com/lex/latest/dg/API_PutBot.html#lex-PutBot-request-nluIntentConfidenceThreshold) This value requires `enable_model_improvements` to be set to `true` and the default is `0`. Must be a float between 0 and 1.
        Returns:
        builder
      • processBehavior

        public BotState.Builder processBehavior​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> processBehavior)
        Parameters:
        processBehavior - If you set the `process_behavior` element to `BUILD`, Amazon Lex builds the bot so that it can be run. If you set the element to `SAVE` Amazon Lex saves the bot, but doesn't build it. Default is `SAVE`.
        Returns:
        builder
      • processBehavior

        public BotState.Builder processBehavior​(java.lang.String processBehavior)
        Parameters:
        processBehavior - If you set the `process_behavior` element to `BUILD`, Amazon Lex builds the bot so that it can be run. If you set the element to `SAVE` Amazon Lex saves the bot, but doesn't build it. Default is `SAVE`.
        Returns:
        builder
      • status

        public BotState.Builder status​(@Nullable
                                       com.pulumi.core.Output<java.lang.String> status)
        Parameters:
        status - When you send a request to create or update a bot, Amazon Lex sets the status response element to BUILDING. After Amazon Lex builds the bot, it sets status to READY. If Amazon Lex can't build the bot, it sets status to FAILED. Amazon Lex returns the reason for the failure in the failure_reason response element.
        Returns:
        builder
      • status

        public BotState.Builder status​(java.lang.String status)
        Parameters:
        status - When you send a request to create or update a bot, Amazon Lex sets the status response element to BUILDING. After Amazon Lex builds the bot, it sets status to READY. If Amazon Lex can't build the bot, it sets status to FAILED. Amazon Lex returns the reason for the failure in the failure_reason response element.
        Returns:
        builder
      • version

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

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

        public BotState.Builder voiceId​(@Nullable
                                        com.pulumi.core.Output<java.lang.String> voiceId)
        Parameters:
        voiceId - The Amazon Polly voice ID that you want Amazon Lex to use for voice interactions with the user. The locale configured for the voice must match the locale of the bot. For more information, see [Available Voices](http://docs.aws.amazon.com/polly/latest/dg/voicelist.html) in the Amazon Polly Developer Guide.
        Returns:
        builder
      • voiceId

        public BotState.Builder voiceId​(java.lang.String voiceId)
        Parameters:
        voiceId - The Amazon Polly voice ID that you want Amazon Lex to use for voice interactions with the user. The locale configured for the voice must match the locale of the bot. For more information, see [Available Voices](http://docs.aws.amazon.com/polly/latest/dg/voicelist.html) in the Amazon Polly Developer Guide.
        Returns:
        builder