Package com.pulumi.aws.lex
Class BotArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.lex.BotArgs.Builder
-
- Enclosing class:
- BotArgs
public static final class BotArgs.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BotArgs.BuilderabortStatement(BotAbortStatementArgs abortStatement)BotArgs.BuilderabortStatement(com.pulumi.core.Output<BotAbortStatementArgs> abortStatement)BotArgsbuild()BotArgs.BuilderchildDirected(com.pulumi.core.Output<java.lang.Boolean> childDirected)BotArgs.BuilderchildDirected(java.lang.Boolean childDirected)BotArgs.BuilderclarificationPrompt(BotClarificationPromptArgs clarificationPrompt)BotArgs.BuilderclarificationPrompt(com.pulumi.core.Output<BotClarificationPromptArgs> clarificationPrompt)BotArgs.BuildercreateVersion(com.pulumi.core.Output<java.lang.Boolean> createVersion)BotArgs.BuildercreateVersion(java.lang.Boolean createVersion)BotArgs.Builderdescription(com.pulumi.core.Output<java.lang.String> description)BotArgs.Builderdescription(java.lang.String description)BotArgs.BuilderdetectSentiment(com.pulumi.core.Output<java.lang.Boolean> detectSentiment)BotArgs.BuilderdetectSentiment(java.lang.Boolean detectSentiment)BotArgs.BuilderenableModelImprovements(com.pulumi.core.Output<java.lang.Boolean> enableModelImprovements)BotArgs.BuilderenableModelImprovements(java.lang.Boolean enableModelImprovements)BotArgs.BuilderidleSessionTtlInSeconds(com.pulumi.core.Output<java.lang.Integer> idleSessionTtlInSeconds)BotArgs.BuilderidleSessionTtlInSeconds(java.lang.Integer idleSessionTtlInSeconds)BotArgs.Builderintents(BotIntentArgs... intents)BotArgs.Builderintents(com.pulumi.core.Output<java.util.List<BotIntentArgs>> intents)BotArgs.Builderintents(java.util.List<BotIntentArgs> intents)BotArgs.Builderlocale(com.pulumi.core.Output<java.lang.String> locale)BotArgs.Builderlocale(java.lang.String locale)BotArgs.Buildername(com.pulumi.core.Output<java.lang.String> name)BotArgs.Buildername(java.lang.String name)BotArgs.BuildernluIntentConfidenceThreshold(com.pulumi.core.Output<java.lang.Double> nluIntentConfidenceThreshold)BotArgs.BuildernluIntentConfidenceThreshold(java.lang.Double nluIntentConfidenceThreshold)BotArgs.BuilderprocessBehavior(com.pulumi.core.Output<java.lang.String> processBehavior)BotArgs.BuilderprocessBehavior(java.lang.String processBehavior)BotArgs.Builderregion(com.pulumi.core.Output<java.lang.String> region)BotArgs.Builderregion(java.lang.String region)BotArgs.BuildervoiceId(com.pulumi.core.Output<java.lang.String> voiceId)BotArgs.BuildervoiceId(java.lang.String voiceId)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(BotArgs defaults)
-
-
Method Detail
-
abortStatement
public BotArgs.Builder abortStatement(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 BotArgs.Builder abortStatement(BotAbortStatementArgs abortStatement)
- Parameters:
abortStatement- The message that Amazon Lex uses to abort a conversation. Attributes are documented under statement.- Returns:
- builder
-
childDirected
public BotArgs.Builder childDirected(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 BotArgs.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 BotArgs.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 BotArgs.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 BotArgs.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 BotArgs.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
-
description
public BotArgs.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 BotArgs.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 BotArgs.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 BotArgs.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 BotArgs.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 `enableModelImprovements` parameter to true you can use the `nluIntentConfidenceThreshold` 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 `enableModelImprovements` 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 BotArgs.Builder enableModelImprovements(java.lang.Boolean enableModelImprovements)
- Parameters:
enableModelImprovements- Set to `true` to enable access to natural language understanding improvements. When you set the `enableModelImprovements` parameter to true you can use the `nluIntentConfidenceThreshold` 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 `enableModelImprovements` 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
-
idleSessionTtlInSeconds
public BotArgs.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 BotArgs.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 BotArgs.Builder intents(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 BotArgs.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 BotArgs.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
-
locale
public BotArgs.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 BotArgs.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 BotArgs.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 BotArgs.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 BotArgs.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 `enableModelImprovements` to be set to `true` and the default is `0`. Must be a float between 0 and 1.- Returns:
- builder
-
nluIntentConfidenceThreshold
public BotArgs.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 `enableModelImprovements` to be set to `true` and the default is `0`. Must be a float between 0 and 1.- Returns:
- builder
-
processBehavior
public BotArgs.Builder processBehavior(@Nullable com.pulumi.core.Output<java.lang.String> processBehavior)
- Parameters:
processBehavior- If you set the `processBehavior` 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 BotArgs.Builder processBehavior(java.lang.String processBehavior)
- Parameters:
processBehavior- If you set the `processBehavior` 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
-
region
public BotArgs.Builder region(@Nullable com.pulumi.core.Output<java.lang.String> region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
region
public BotArgs.Builder region(java.lang.String region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
voiceId
public BotArgs.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 BotArgs.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
-
build
public BotArgs build()
-
-