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

Contains the sentiment and sentiment score for one mention of an entity.

*

For more information about targeted sentiment, see Targeted * sentiment.

See Also:

AWS * API Reference

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

The sentiment of the mention.

*/ inline const SentimentType& GetSentiment() const{ return m_sentiment; } /** *

The sentiment of the mention.

*/ inline bool SentimentHasBeenSet() const { return m_sentimentHasBeenSet; } /** *

The sentiment of the mention.

*/ inline void SetSentiment(const SentimentType& value) { m_sentimentHasBeenSet = true; m_sentiment = value; } /** *

The sentiment of the mention.

*/ inline void SetSentiment(SentimentType&& value) { m_sentimentHasBeenSet = true; m_sentiment = std::move(value); } /** *

The sentiment of the mention.

*/ inline MentionSentiment& WithSentiment(const SentimentType& value) { SetSentiment(value); return *this;} /** *

The sentiment of the mention.

*/ inline MentionSentiment& 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 MentionSentiment& WithSentimentScore(const SentimentScore& value) { SetSentimentScore(value); return *this;} inline MentionSentiment& 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 Comprehend } // namespace Aws