This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-lex/include/aws/lex/model/SentimentResponse.h

143 lines
4.6 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/lex/LexRuntimeService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace LexRuntimeService
{
namespace Model
{
/**
* <p>The sentiment expressed in an utterance.</p> <p>When the bot is configured to
* send utterances to Amazon Comprehend for sentiment analysis, this field
* structure contains the result of the analysis.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/SentimentResponse">AWS
* API Reference</a></p>
*/
class AWS_LEXRUNTIMESERVICE_API SentimentResponse
{
public:
SentimentResponse();
SentimentResponse(Aws::Utils::Json::JsonView jsonValue);
SentimentResponse& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The inferred sentiment that Amazon Comprehend has the highest confidence
* in.</p>
*/
inline const Aws::String& GetSentimentLabel() const{ return m_sentimentLabel; }
/**
* <p>The inferred sentiment that Amazon Comprehend has the highest confidence
* in.</p>
*/
inline bool SentimentLabelHasBeenSet() const { return m_sentimentLabelHasBeenSet; }
/**
* <p>The inferred sentiment that Amazon Comprehend has the highest confidence
* in.</p>
*/
inline void SetSentimentLabel(const Aws::String& value) { m_sentimentLabelHasBeenSet = true; m_sentimentLabel = value; }
/**
* <p>The inferred sentiment that Amazon Comprehend has the highest confidence
* in.</p>
*/
inline void SetSentimentLabel(Aws::String&& value) { m_sentimentLabelHasBeenSet = true; m_sentimentLabel = std::move(value); }
/**
* <p>The inferred sentiment that Amazon Comprehend has the highest confidence
* in.</p>
*/
inline void SetSentimentLabel(const char* value) { m_sentimentLabelHasBeenSet = true; m_sentimentLabel.assign(value); }
/**
* <p>The inferred sentiment that Amazon Comprehend has the highest confidence
* in.</p>
*/
inline SentimentResponse& WithSentimentLabel(const Aws::String& value) { SetSentimentLabel(value); return *this;}
/**
* <p>The inferred sentiment that Amazon Comprehend has the highest confidence
* in.</p>
*/
inline SentimentResponse& WithSentimentLabel(Aws::String&& value) { SetSentimentLabel(std::move(value)); return *this;}
/**
* <p>The inferred sentiment that Amazon Comprehend has the highest confidence
* in.</p>
*/
inline SentimentResponse& WithSentimentLabel(const char* value) { SetSentimentLabel(value); return *this;}
/**
* <p>The likelihood that the sentiment was correctly inferred.</p>
*/
inline const Aws::String& GetSentimentScore() const{ return m_sentimentScore; }
/**
* <p>The likelihood that the sentiment was correctly inferred.</p>
*/
inline bool SentimentScoreHasBeenSet() const { return m_sentimentScoreHasBeenSet; }
/**
* <p>The likelihood that the sentiment was correctly inferred.</p>
*/
inline void SetSentimentScore(const Aws::String& value) { m_sentimentScoreHasBeenSet = true; m_sentimentScore = value; }
/**
* <p>The likelihood that the sentiment was correctly inferred.</p>
*/
inline void SetSentimentScore(Aws::String&& value) { m_sentimentScoreHasBeenSet = true; m_sentimentScore = std::move(value); }
/**
* <p>The likelihood that the sentiment was correctly inferred.</p>
*/
inline void SetSentimentScore(const char* value) { m_sentimentScoreHasBeenSet = true; m_sentimentScore.assign(value); }
/**
* <p>The likelihood that the sentiment was correctly inferred.</p>
*/
inline SentimentResponse& WithSentimentScore(const Aws::String& value) { SetSentimentScore(value); return *this;}
/**
* <p>The likelihood that the sentiment was correctly inferred.</p>
*/
inline SentimentResponse& WithSentimentScore(Aws::String&& value) { SetSentimentScore(std::move(value)); return *this;}
/**
* <p>The likelihood that the sentiment was correctly inferred.</p>
*/
inline SentimentResponse& WithSentimentScore(const char* value) { SetSentimentScore(value); return *this;}
private:
Aws::String m_sentimentLabel;
bool m_sentimentLabelHasBeenSet;
Aws::String m_sentimentScore;
bool m_sentimentScoreHasBeenSet;
};
} // namespace Model
} // namespace LexRuntimeService
} // namespace Aws