Class CfnBotAlias.SentimentAnalysisSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBotAlias.SentimentAnalysisSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotAlias.SentimentAnalysisSettingsProperty>
- Enclosing interface:
CfnBotAlias.SentimentAnalysisSettingsProperty
@Stability(Stable)
public static final class CfnBotAlias.SentimentAnalysisSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotAlias.SentimentAnalysisSettingsProperty>
A builder for
CfnBotAlias.SentimentAnalysisSettingsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.detectSentiment
(Boolean detectSentiment) Sets the value ofCfnBotAlias.SentimentAnalysisSettingsProperty.getDetectSentiment()
detectSentiment
(IResolvable detectSentiment) Sets the value ofCfnBotAlias.SentimentAnalysisSettingsProperty.getDetectSentiment()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
detectSentiment
@Stability(Stable) public CfnBotAlias.SentimentAnalysisSettingsProperty.Builder detectSentiment(Boolean detectSentiment) Sets the value ofCfnBotAlias.SentimentAnalysisSettingsProperty.getDetectSentiment()
- Parameters:
detectSentiment
- Sets whether Amazon Lex uses Amazon Comprehend to detect the sentiment of user utterances. This parameter is required.- Returns:
this
-
detectSentiment
@Stability(Stable) public CfnBotAlias.SentimentAnalysisSettingsProperty.Builder detectSentiment(IResolvable detectSentiment) Sets the value ofCfnBotAlias.SentimentAnalysisSettingsProperty.getDetectSentiment()
- Parameters:
detectSentiment
- Sets whether Amazon Lex uses Amazon Comprehend to detect the sentiment of user utterances. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBotAlias.SentimentAnalysisSettingsProperty>
- Returns:
- a new instance of
CfnBotAlias.SentimentAnalysisSettingsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-