AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
BatchDetectSentimentItemResult.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/model/SentimentScore.h>
9#include <aws/comprehend/model/SentimentType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Comprehend {
21namespace Model {
22
31 public:
32 AWS_COMPREHEND_API BatchDetectSentimentItemResult() = default;
35 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline int GetIndex() const { return m_index; }
42 inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
43 inline void SetIndex(int value) {
44 m_indexHasBeenSet = true;
45 m_index = value;
46 }
48 SetIndex(value);
49 return *this;
50 }
52
54
57 inline SentimentType GetSentiment() const { return m_sentiment; }
58 inline bool SentimentHasBeenSet() const { return m_sentimentHasBeenSet; }
59 inline void SetSentiment(SentimentType value) {
60 m_sentimentHasBeenSet = true;
61 m_sentiment = value;
62 }
64 SetSentiment(value);
65 return *this;
66 }
68
70
74 inline const SentimentScore& GetSentimentScore() const { return m_sentimentScore; }
75 inline bool SentimentScoreHasBeenSet() const { return m_sentimentScoreHasBeenSet; }
76 template <typename SentimentScoreT = SentimentScore>
77 void SetSentimentScore(SentimentScoreT&& value) {
78 m_sentimentScoreHasBeenSet = true;
79 m_sentimentScore = std::forward<SentimentScoreT>(value);
80 }
81 template <typename SentimentScoreT = SentimentScore>
83 SetSentimentScore(std::forward<SentimentScoreT>(value));
84 return *this;
85 }
87 private:
88 int m_index{0};
89
91
92 SentimentScore m_sentimentScore;
93 bool m_indexHasBeenSet = false;
94 bool m_sentimentHasBeenSet = false;
95 bool m_sentimentScoreHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace Comprehend
100} // namespace Aws
AWS_COMPREHEND_API BatchDetectSentimentItemResult(Aws::Utils::Json::JsonView jsonValue)
BatchDetectSentimentItemResult & WithSentiment(SentimentType value)
AWS_COMPREHEND_API BatchDetectSentimentItemResult()=default
AWS_COMPREHEND_API BatchDetectSentimentItemResult & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchDetectSentimentItemResult & WithSentimentScore(SentimentScoreT &&value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue