/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace LexModelsV2 { namespace Model { /** *

Determines whether Amazon Lex will use Amazon Comprehend to detect the * sentiment of user utterances.

See Also:

AWS * API Reference

*/ class SentimentAnalysisSettings { public: AWS_LEXMODELSV2_API SentimentAnalysisSettings(); AWS_LEXMODELSV2_API SentimentAnalysisSettings(Aws::Utils::Json::JsonView jsonValue); AWS_LEXMODELSV2_API SentimentAnalysisSettings& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Sets whether Amazon Lex uses Amazon Comprehend to detect the sentiment of * user utterances.

*/ inline bool GetDetectSentiment() const{ return m_detectSentiment; } /** *

Sets whether Amazon Lex uses Amazon Comprehend to detect the sentiment of * user utterances.

*/ inline bool DetectSentimentHasBeenSet() const { return m_detectSentimentHasBeenSet; } /** *

Sets whether Amazon Lex uses Amazon Comprehend to detect the sentiment of * user utterances.

*/ inline void SetDetectSentiment(bool value) { m_detectSentimentHasBeenSet = true; m_detectSentiment = value; } /** *

Sets whether Amazon Lex uses Amazon Comprehend to detect the sentiment of * user utterances.

*/ inline SentimentAnalysisSettings& WithDetectSentiment(bool value) { SetDetectSentiment(value); return *this;} private: bool m_detectSentiment; bool m_detectSentimentHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws