Class CfnBotAliasProps.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBotAliasProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotAliasProps>
- Enclosing interface:
CfnBotAliasProps
@Stability(Stable)
public static final class CfnBotAliasProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotAliasProps>
A builder for
CfnBotAliasProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbotAliasLocaleSettings
(List<? extends Object> botAliasLocaleSettings) Sets the value ofCfnBotAliasProps.getBotAliasLocaleSettings()
botAliasLocaleSettings
(IResolvable botAliasLocaleSettings) Sets the value ofCfnBotAliasProps.getBotAliasLocaleSettings()
botAliasName
(String botAliasName) Sets the value ofCfnBotAliasProps.getBotAliasName()
botAliasTags
(List<? extends Object> botAliasTags) Sets the value ofCfnBotAliasProps.getBotAliasTags()
botAliasTags
(IResolvable botAliasTags) Sets the value ofCfnBotAliasProps.getBotAliasTags()
Sets the value ofCfnBotAliasProps.getBotId()
botVersion
(String botVersion) Sets the value ofCfnBotAliasProps.getBotVersion()
build()
Builds the configured instance.conversationLogSettings
(IResolvable conversationLogSettings) Sets the value ofCfnBotAliasProps.getConversationLogSettings()
conversationLogSettings
(CfnBotAlias.ConversationLogSettingsProperty conversationLogSettings) Sets the value ofCfnBotAliasProps.getConversationLogSettings()
description
(String description) Sets the value ofCfnBotAliasProps.getDescription()
sentimentAnalysisSettings
(Object sentimentAnalysisSettings) Sets the value ofCfnBotAliasProps.getSentimentAnalysisSettings()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
botAliasName
Sets the value ofCfnBotAliasProps.getBotAliasName()
- Parameters:
botAliasName
- The name of the bot alias. This parameter is required.- Returns:
this
-
botId
Sets the value ofCfnBotAliasProps.getBotId()
- Parameters:
botId
- The unique identifier of the bot. This parameter is required.- Returns:
this
-
botAliasLocaleSettings
@Stability(Stable) public CfnBotAliasProps.Builder botAliasLocaleSettings(IResolvable botAliasLocaleSettings) Sets the value ofCfnBotAliasProps.getBotAliasLocaleSettings()
- Parameters:
botAliasLocaleSettings
- Specifies settings that are unique to a locale. For example, you can use different Lambda function depending on the bot's locale.- Returns:
this
-
botAliasLocaleSettings
@Stability(Stable) public CfnBotAliasProps.Builder botAliasLocaleSettings(List<? extends Object> botAliasLocaleSettings) Sets the value ofCfnBotAliasProps.getBotAliasLocaleSettings()
- Parameters:
botAliasLocaleSettings
- Specifies settings that are unique to a locale. For example, you can use different Lambda function depending on the bot's locale.- Returns:
this
-
botAliasTags
Sets the value ofCfnBotAliasProps.getBotAliasTags()
- Parameters:
botAliasTags
- An array of key-value pairs to apply to this resource. You can only add tags when you specify an alias.For more information, see Tag .
- Returns:
this
-
botAliasTags
@Stability(Stable) public CfnBotAliasProps.Builder botAliasTags(List<? extends Object> botAliasTags) Sets the value ofCfnBotAliasProps.getBotAliasTags()
- Parameters:
botAliasTags
- An array of key-value pairs to apply to this resource. You can only add tags when you specify an alias.For more information, see Tag .
- Returns:
this
-
botVersion
Sets the value ofCfnBotAliasProps.getBotVersion()
- Parameters:
botVersion
- The version of the bot that the bot alias references.- Returns:
this
-
conversationLogSettings
@Stability(Stable) public CfnBotAliasProps.Builder conversationLogSettings(IResolvable conversationLogSettings) Sets the value ofCfnBotAliasProps.getConversationLogSettings()
- Parameters:
conversationLogSettings
- Specifies whether Amazon Lex logs text and audio for conversations with the bot. When you enable conversation logs, text logs store text input, transcripts of audio input, and associated metadata in Amazon CloudWatch logs. Audio logs store input in Amazon S3 .- Returns:
this
-
conversationLogSettings
@Stability(Stable) public CfnBotAliasProps.Builder conversationLogSettings(CfnBotAlias.ConversationLogSettingsProperty conversationLogSettings) Sets the value ofCfnBotAliasProps.getConversationLogSettings()
- Parameters:
conversationLogSettings
- Specifies whether Amazon Lex logs text and audio for conversations with the bot. When you enable conversation logs, text logs store text input, transcripts of audio input, and associated metadata in Amazon CloudWatch logs. Audio logs store input in Amazon S3 .- Returns:
this
-
description
Sets the value ofCfnBotAliasProps.getDescription()
- Parameters:
description
- The description of the bot alias.- Returns:
this
-
sentimentAnalysisSettings
@Stability(Stable) public CfnBotAliasProps.Builder sentimentAnalysisSettings(Object sentimentAnalysisSettings) Sets the value ofCfnBotAliasProps.getSentimentAnalysisSettings()
- Parameters:
sentimentAnalysisSettings
- Determines whether Amazon Lex will use Amazon Comprehend to detect the sentiment of user utterances.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBotAliasProps>
- Returns:
- a new instance of
CfnBotAliasProps
- Throws:
NullPointerException
- if any required attribute was not provided
-