AWS SDK for C++

AWS SDK for C++ Version 1.11.744

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