/** * 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 Comprehend { namespace Model { /** *

Describes the level of confidence that Amazon Comprehend has in the accuracy * of its detection of sentiments.

See Also:

AWS * API Reference

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

The level of confidence that Amazon Comprehend has in the accuracy of its * detection of the POSITIVE sentiment.

*/ inline double GetPositive() const{ return m_positive; } /** *

The level of confidence that Amazon Comprehend has in the accuracy of its * detection of the POSITIVE sentiment.

*/ inline bool PositiveHasBeenSet() const { return m_positiveHasBeenSet; } /** *

The level of confidence that Amazon Comprehend has in the accuracy of its * detection of the POSITIVE sentiment.

*/ inline void SetPositive(double value) { m_positiveHasBeenSet = true; m_positive = value; } /** *

The level of confidence that Amazon Comprehend has in the accuracy of its * detection of the POSITIVE sentiment.

*/ inline SentimentScore& WithPositive(double value) { SetPositive(value); return *this;} /** *

The level of confidence that Amazon Comprehend has in the accuracy of its * detection of the NEGATIVE sentiment.

*/ inline double GetNegative() const{ return m_negative; } /** *

The level of confidence that Amazon Comprehend has in the accuracy of its * detection of the NEGATIVE sentiment.

*/ inline bool NegativeHasBeenSet() const { return m_negativeHasBeenSet; } /** *

The level of confidence that Amazon Comprehend has in the accuracy of its * detection of the NEGATIVE sentiment.

*/ inline void SetNegative(double value) { m_negativeHasBeenSet = true; m_negative = value; } /** *

The level of confidence that Amazon Comprehend has in the accuracy of its * detection of the NEGATIVE sentiment.

*/ inline SentimentScore& WithNegative(double value) { SetNegative(value); return *this;} /** *

The level of confidence that Amazon Comprehend has in the accuracy of its * detection of the NEUTRAL sentiment.

*/ inline double GetNeutral() const{ return m_neutral; } /** *

The level of confidence that Amazon Comprehend has in the accuracy of its * detection of the NEUTRAL sentiment.

*/ inline bool NeutralHasBeenSet() const { return m_neutralHasBeenSet; } /** *

The level of confidence that Amazon Comprehend has in the accuracy of its * detection of the NEUTRAL sentiment.

*/ inline void SetNeutral(double value) { m_neutralHasBeenSet = true; m_neutral = value; } /** *

The level of confidence that Amazon Comprehend has in the accuracy of its * detection of the NEUTRAL sentiment.

*/ inline SentimentScore& WithNeutral(double value) { SetNeutral(value); return *this;} /** *

The level of confidence that Amazon Comprehend has in the accuracy of its * detection of the MIXED sentiment.

*/ inline double GetMixed() const{ return m_mixed; } /** *

The level of confidence that Amazon Comprehend has in the accuracy of its * detection of the MIXED sentiment.

*/ inline bool MixedHasBeenSet() const { return m_mixedHasBeenSet; } /** *

The level of confidence that Amazon Comprehend has in the accuracy of its * detection of the MIXED sentiment.

*/ inline void SetMixed(double value) { m_mixedHasBeenSet = true; m_mixed = value; } /** *

The level of confidence that Amazon Comprehend has in the accuracy of its * detection of the MIXED sentiment.

*/ inline SentimentScore& WithMixed(double value) { SetMixed(value); return *this;} private: double m_positive; bool m_positiveHasBeenSet = false; double m_negative; bool m_negativeHasBeenSet = false; double m_neutral; bool m_neutralHasBeenSet = false; double m_mixed; bool m_mixedHasBeenSet = false; }; } // namespace Model } // namespace Comprehend } // namespace Aws