7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/model/SentimentType.h>
9#include <aws/comprehend/model/SentimentScore.h>
47 inline int GetIndex()
const {
return m_index; }
49 inline void SetIndex(
int value) { m_indexHasBeenSet =
true; m_index = value; }
70 template<
typename SentimentScoreT = SentimentScore>
71 void SetSentimentScore(SentimentScoreT&& value) { m_sentimentScoreHasBeenSet =
true; m_sentimentScore = std::forward<SentimentScoreT>(value); }
72 template<
typename SentimentScoreT = SentimentScore>
78 bool m_indexHasBeenSet =
false;
81 bool m_sentimentHasBeenSet =
false;
83 SentimentScore m_sentimentScore;
84 bool m_sentimentScoreHasBeenSet =
false;
AWS_COMPREHEND_API BatchDetectSentimentItemResult(Aws::Utils::Json::JsonView jsonValue)
BatchDetectSentimentItemResult & WithSentiment(SentimentType value)
bool SentimentHasBeenSet() const
AWS_COMPREHEND_API BatchDetectSentimentItemResult()=default
bool SentimentScoreHasBeenSet() const
bool IndexHasBeenSet() const
AWS_COMPREHEND_API BatchDetectSentimentItemResult & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchDetectSentimentItemResult & WithSentimentScore(SentimentScoreT &&value)
const SentimentScore & GetSentimentScore() const
void SetSentiment(SentimentType value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
SentimentType GetSentiment() const
void SetSentimentScore(SentimentScoreT &&value)
BatchDetectSentimentItemResult & WithIndex(int value)
Aws::Utils::Json::JsonValue JsonValue