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

The sentiment expressed in an utterance.

When the bot is configured to * send utterances to Amazon Comprehend for sentiment analysis, this field * structure contains the result of the analysis.

See Also:

AWS * API Reference

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

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

*/ inline const Aws::String& GetSentimentLabel() const{ return m_sentimentLabel; } /** *

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

*/ inline bool SentimentLabelHasBeenSet() const { return m_sentimentLabelHasBeenSet; } /** *

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

*/ inline void SetSentimentLabel(const Aws::String& value) { m_sentimentLabelHasBeenSet = true; m_sentimentLabel = value; } /** *

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

*/ inline void SetSentimentLabel(Aws::String&& value) { m_sentimentLabelHasBeenSet = true; m_sentimentLabel = std::move(value); } /** *

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

*/ inline void SetSentimentLabel(const char* value) { m_sentimentLabelHasBeenSet = true; m_sentimentLabel.assign(value); } /** *

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

*/ inline SentimentResponse& WithSentimentLabel(const Aws::String& value) { SetSentimentLabel(value); return *this;} /** *

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

*/ inline SentimentResponse& WithSentimentLabel(Aws::String&& value) { SetSentimentLabel(std::move(value)); return *this;} /** *

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

*/ inline SentimentResponse& WithSentimentLabel(const char* value) { SetSentimentLabel(value); return *this;} /** *

The likelihood that the sentiment was correctly inferred.

*/ inline const Aws::String& GetSentimentScore() const{ return m_sentimentScore; } /** *

The likelihood that the sentiment was correctly inferred.

*/ inline bool SentimentScoreHasBeenSet() const { return m_sentimentScoreHasBeenSet; } /** *

The likelihood that the sentiment was correctly inferred.

*/ inline void SetSentimentScore(const Aws::String& value) { m_sentimentScoreHasBeenSet = true; m_sentimentScore = value; } /** *

The likelihood that the sentiment was correctly inferred.

*/ inline void SetSentimentScore(Aws::String&& value) { m_sentimentScoreHasBeenSet = true; m_sentimentScore = std::move(value); } /** *

The likelihood that the sentiment was correctly inferred.

*/ inline void SetSentimentScore(const char* value) { m_sentimentScoreHasBeenSet = true; m_sentimentScore.assign(value); } /** *

The likelihood that the sentiment was correctly inferred.

*/ inline SentimentResponse& WithSentimentScore(const Aws::String& value) { SetSentimentScore(value); return *this;} /** *

The likelihood that the sentiment was correctly inferred.

*/ inline SentimentResponse& WithSentimentScore(Aws::String&& value) { SetSentimentScore(std::move(value)); return *this;} /** *

The likelihood that the sentiment was correctly inferred.

*/ inline SentimentResponse& WithSentimentScore(const char* value) { SetSentimentScore(value); return *this;} private: Aws::String m_sentimentLabel; bool m_sentimentLabelHasBeenSet = false; Aws::String m_sentimentScore; bool m_sentimentScoreHasBeenSet = false; }; } // namespace Model } // namespace LexRuntimeService } // namespace Aws