/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides information about the sentiment expressed in a user's response in a
* conversation. Sentiments are determined using Amazon Comprehend. Sentiments are
* only returned if they are enabled for the bot. For more information, see
*
* Determine Sentiment in the Amazon Comprehend developer
* guide.See Also:
AWS
* API Reference
The overall sentiment expressed in the user's response. This is the sentiment * most likely expressed by the user based on the analysis by Amazon * Comprehend.
*/ inline const SentimentType& GetSentiment() const{ return m_sentiment; } /** *The overall sentiment expressed in the user's response. This is the sentiment * most likely expressed by the user based on the analysis by Amazon * Comprehend.
*/ inline bool SentimentHasBeenSet() const { return m_sentimentHasBeenSet; } /** *The overall sentiment expressed in the user's response. This is the sentiment * most likely expressed by the user based on the analysis by Amazon * Comprehend.
*/ inline void SetSentiment(const SentimentType& value) { m_sentimentHasBeenSet = true; m_sentiment = value; } /** *The overall sentiment expressed in the user's response. This is the sentiment * most likely expressed by the user based on the analysis by Amazon * Comprehend.
*/ inline void SetSentiment(SentimentType&& value) { m_sentimentHasBeenSet = true; m_sentiment = std::move(value); } /** *The overall sentiment expressed in the user's response. This is the sentiment * most likely expressed by the user based on the analysis by Amazon * Comprehend.
*/ inline SentimentResponse& WithSentiment(const SentimentType& value) { SetSentiment(value); return *this;} /** *The overall sentiment expressed in the user's response. This is the sentiment * most likely expressed by the user based on the analysis by Amazon * Comprehend.
*/ inline SentimentResponse& WithSentiment(SentimentType&& value) { SetSentiment(std::move(value)); return *this;} inline const SentimentScore& GetSentimentScore() const{ return m_sentimentScore; } inline bool SentimentScoreHasBeenSet() const { return m_sentimentScoreHasBeenSet; } inline void SetSentimentScore(const SentimentScore& value) { m_sentimentScoreHasBeenSet = true; m_sentimentScore = value; } inline void SetSentimentScore(SentimentScore&& value) { m_sentimentScoreHasBeenSet = true; m_sentimentScore = std::move(value); } inline SentimentResponse& WithSentimentScore(const SentimentScore& value) { SetSentimentScore(value); return *this;} inline SentimentResponse& WithSentimentScore(SentimentScore&& value) { SetSentimentScore(std::move(value)); return *this;} private: SentimentType m_sentiment; bool m_sentimentHasBeenSet = false; SentimentScore m_sentimentScore; bool m_sentimentScoreHasBeenSet = false; }; } // namespace Model } // namespace LexRuntimeV2 } // namespace Aws