AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SentimentResponse.h
1
6#pragma once
7#include <aws/lex/LexRuntimeService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LexRuntimeService
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_LEXRUNTIMESERVICE_API SentimentResponse();
37 AWS_LEXRUNTIMESERVICE_API SentimentResponse(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LEXRUNTIMESERVICE_API SentimentResponse& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LEXRUNTIMESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetSentimentLabel() const{ return m_sentimentLabel; }
48 inline bool SentimentLabelHasBeenSet() const { return m_sentimentLabelHasBeenSet; }
49 inline void SetSentimentLabel(const Aws::String& value) { m_sentimentLabelHasBeenSet = true; m_sentimentLabel = value; }
50 inline void SetSentimentLabel(Aws::String&& value) { m_sentimentLabelHasBeenSet = true; m_sentimentLabel = std::move(value); }
51 inline void SetSentimentLabel(const char* value) { m_sentimentLabelHasBeenSet = true; m_sentimentLabel.assign(value); }
52 inline SentimentResponse& WithSentimentLabel(const Aws::String& value) { SetSentimentLabel(value); return *this;}
53 inline SentimentResponse& WithSentimentLabel(Aws::String&& value) { SetSentimentLabel(std::move(value)); return *this;}
54 inline SentimentResponse& WithSentimentLabel(const char* value) { SetSentimentLabel(value); return *this;}
56
58
61 inline const Aws::String& GetSentimentScore() const{ return m_sentimentScore; }
62 inline bool SentimentScoreHasBeenSet() const { return m_sentimentScoreHasBeenSet; }
63 inline void SetSentimentScore(const Aws::String& value) { m_sentimentScoreHasBeenSet = true; m_sentimentScore = value; }
64 inline void SetSentimentScore(Aws::String&& value) { m_sentimentScoreHasBeenSet = true; m_sentimentScore = std::move(value); }
65 inline void SetSentimentScore(const char* value) { m_sentimentScoreHasBeenSet = true; m_sentimentScore.assign(value); }
66 inline SentimentResponse& WithSentimentScore(const Aws::String& value) { SetSentimentScore(value); return *this;}
67 inline SentimentResponse& WithSentimentScore(Aws::String&& value) { SetSentimentScore(std::move(value)); return *this;}
68 inline SentimentResponse& WithSentimentScore(const char* value) { SetSentimentScore(value); return *this;}
70 private:
71
72 Aws::String m_sentimentLabel;
73 bool m_sentimentLabelHasBeenSet = false;
74
75 Aws::String m_sentimentScore;
76 bool m_sentimentScoreHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace LexRuntimeService
81} // namespace Aws
AWS_LEXRUNTIMESERVICE_API SentimentResponse(Aws::Utils::Json::JsonView jsonValue)
SentimentResponse & WithSentimentScore(Aws::String &&value)
SentimentResponse & WithSentimentLabel(const char *value)
SentimentResponse & WithSentimentScore(const char *value)
AWS_LEXRUNTIMESERVICE_API SentimentResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXRUNTIMESERVICE_API SentimentResponse()
SentimentResponse & WithSentimentLabel(Aws::String &&value)
AWS_LEXRUNTIMESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
SentimentResponse & WithSentimentScore(const Aws::String &value)
SentimentResponse & WithSentimentLabel(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue