/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Comprehend { namespace Model { class AWS_COMPREHEND_API DetectSentimentResult { public: DetectSentimentResult(); DetectSentimentResult(const Aws::AmazonWebServiceResult& result); DetectSentimentResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The inferred sentiment that Amazon Comprehend has the highest level of * confidence in.

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

The inferred sentiment that Amazon Comprehend has the highest level of * confidence in.

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

The inferred sentiment that Amazon Comprehend has the highest level of * confidence in.

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

The inferred sentiment that Amazon Comprehend has the highest level of * confidence in.

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

The inferred sentiment that Amazon Comprehend has the highest level of * confidence in.

*/ inline DetectSentimentResult& WithSentiment(SentimentType&& value) { SetSentiment(std::move(value)); return *this;} /** *

An object that lists the sentiments, and their corresponding confidence * levels.

*/ inline const SentimentScore& GetSentimentScore() const{ return m_sentimentScore; } /** *

An object that lists the sentiments, and their corresponding confidence * levels.

*/ inline void SetSentimentScore(const SentimentScore& value) { m_sentimentScore = value; } /** *

An object that lists the sentiments, and their corresponding confidence * levels.

*/ inline void SetSentimentScore(SentimentScore&& value) { m_sentimentScore = std::move(value); } /** *

An object that lists the sentiments, and their corresponding confidence * levels.

*/ inline DetectSentimentResult& WithSentimentScore(const SentimentScore& value) { SetSentimentScore(value); return *this;} /** *

An object that lists the sentiments, and their corresponding confidence * levels.

*/ inline DetectSentimentResult& WithSentimentScore(SentimentScore&& value) { SetSentimentScore(std::move(value)); return *this;} private: SentimentType m_sentiment; SentimentScore m_sentimentScore; }; } // namespace Model } // namespace Comprehend } // namespace Aws