Class CfnBot.SentimentAnalysisSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.SentimentAnalysisSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.SentimentAnalysisSettingsProperty>
- Enclosing interface:
CfnBot.SentimentAnalysisSettingsProperty
@Stability(Stable)
public static final class CfnBot.SentimentAnalysisSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.SentimentAnalysisSettingsProperty>
A builder for
CfnBot.SentimentAnalysisSettingsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.detectSentiment(Boolean detectSentiment) Sets the value ofCfnBot.SentimentAnalysisSettingsProperty.getDetectSentiment()detectSentiment(IResolvable detectSentiment) Sets the value ofCfnBot.SentimentAnalysisSettingsProperty.getDetectSentiment()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
detectSentiment
@Stability(Stable) public CfnBot.SentimentAnalysisSettingsProperty.Builder detectSentiment(Boolean detectSentiment) Sets the value ofCfnBot.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 CfnBot.SentimentAnalysisSettingsProperty.Builder detectSentiment(IResolvable detectSentiment) Sets the value ofCfnBot.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnBot.SentimentAnalysisSettingsProperty>- Returns:
- a new instance of
CfnBot.SentimentAnalysisSettingsProperty - Throws:
NullPointerException- if any required attribute was not provided
-