AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 SentimentType GetSentiment() const { return m_sentiment; }
58 inline bool SentimentHasBeenSet() const { return m_sentimentHasBeenSet; }
59 inline void SetSentiment(SentimentType value) { m_sentimentHasBeenSet = true; m_sentiment = value; }
62
64
68 inline const SentimentScore& GetSentimentScore() const { return m_sentimentScore; }
69 inline bool SentimentScoreHasBeenSet() const { return m_sentimentScoreHasBeenSet; }
70 template<typename SentimentScoreT = SentimentScore>
71 void SetSentimentScore(SentimentScoreT&& value) { m_sentimentScoreHasBeenSet = true; m_sentimentScore = std::forward<SentimentScoreT>(value); }
72 template<typename SentimentScoreT = SentimentScore>
73 BatchDetectSentimentItemResult& WithSentimentScore(SentimentScoreT&& value) { SetSentimentScore(std::forward<SentimentScoreT>(value)); return *this;}
75 private:
76
77 int m_index{0};
78 bool m_indexHasBeenSet = false;
79
81 bool m_sentimentHasBeenSet = false;
82
83 SentimentScore m_sentimentScore;
84 bool m_sentimentScoreHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace Comprehend
89} // 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