AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchDetectSentimentItemResult.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/model/SentimentType.h>
9#include <aws/comprehend/model/SentimentScore.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Comprehend
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_COMPREHEND_API BatchDetectSentimentItemResult();
40 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline int GetIndex() const{ return m_index; }
48 inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
49 inline void SetIndex(int value) { m_indexHasBeenSet = true; m_index = value; }
50 inline BatchDetectSentimentItemResult& WithIndex(int value) { SetIndex(value); return *this;}
52
54
57 inline const SentimentType& GetSentiment() const{ return m_sentiment; }
58 inline bool SentimentHasBeenSet() const { return m_sentimentHasBeenSet; }
59 inline void SetSentiment(const SentimentType& value) { m_sentimentHasBeenSet = true; m_sentiment = value; }
60 inline void SetSentiment(SentimentType&& value) { m_sentimentHasBeenSet = true; m_sentiment = std::move(value); }
61 inline BatchDetectSentimentItemResult& WithSentiment(const SentimentType& value) { SetSentiment(value); return *this;}
62 inline BatchDetectSentimentItemResult& WithSentiment(SentimentType&& value) { SetSentiment(std::move(value)); return *this;}
64
66
70 inline const SentimentScore& GetSentimentScore() const{ return m_sentimentScore; }
71 inline bool SentimentScoreHasBeenSet() const { return m_sentimentScoreHasBeenSet; }
72 inline void SetSentimentScore(const SentimentScore& value) { m_sentimentScoreHasBeenSet = true; m_sentimentScore = value; }
73 inline void SetSentimentScore(SentimentScore&& value) { m_sentimentScoreHasBeenSet = true; m_sentimentScore = std::move(value); }
75 inline BatchDetectSentimentItemResult& WithSentimentScore(SentimentScore&& value) { SetSentimentScore(std::move(value)); return *this;}
77 private:
78
79 int m_index;
80 bool m_indexHasBeenSet = false;
81
82 SentimentType m_sentiment;
83 bool m_sentimentHasBeenSet = false;
84
85 SentimentScore m_sentimentScore;
86 bool m_sentimentScoreHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace Comprehend
91} // namespace Aws
AWS_COMPREHEND_API BatchDetectSentimentItemResult(Aws::Utils::Json::JsonView jsonValue)
BatchDetectSentimentItemResult & WithSentimentScore(SentimentScore &&value)
BatchDetectSentimentItemResult & WithSentimentScore(const SentimentScore &value)
AWS_COMPREHEND_API BatchDetectSentimentItemResult & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchDetectSentimentItemResult & WithSentiment(SentimentType &&value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
BatchDetectSentimentItemResult & WithSentiment(const SentimentType &value)
Aws::Utils::Json::JsonValue JsonValue