/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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
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