7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/model/MentionSentiment.h>
9#include <aws/comprehend/model/TargetedSentimentEntityType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
46 inline double GetScore()
const {
return m_score; }
49 m_scoreHasBeenSet =
true;
66 m_groupScoreHasBeenSet =
true;
81 template <
typename TextT = Aws::String>
83 m_textHasBeenSet =
true;
84 m_text = std::forward<TextT>(value);
86 template <
typename TextT = Aws::String>
88 SetText(std::forward<TextT>(value));
102 m_typeHasBeenSet =
true;
117 template <
typename MentionSentimentT = MentionSentiment>
119 m_mentionSentimentHasBeenSet =
true;
120 m_mentionSentiment = std::forward<MentionSentimentT>(value);
122 template <
typename MentionSentimentT = MentionSentiment>
136 m_beginOffsetHasBeenSet =
true;
137 m_beginOffset = value;
152 m_endOffsetHasBeenSet =
true;
163 double m_groupScore{0.0};
169 MentionSentiment m_mentionSentiment;
171 int m_beginOffset{0};
174 bool m_scoreHasBeenSet =
false;
175 bool m_groupScoreHasBeenSet =
false;
176 bool m_textHasBeenSet =
false;
177 bool m_typeHasBeenSet =
false;
178 bool m_mentionSentimentHasBeenSet =
false;
179 bool m_beginOffsetHasBeenSet =
false;
180 bool m_endOffsetHasBeenSet =
false;
AWS_COMPREHEND_API TargetedSentimentMention & operator=(Aws::Utils::Json::JsonView jsonValue)
TargetedSentimentEntityType GetType() const
bool GroupScoreHasBeenSet() const
bool BeginOffsetHasBeenSet() const
bool ScoreHasBeenSet() const
bool MentionSentimentHasBeenSet() const
TargetedSentimentMention & WithScore(double value)
TargetedSentimentMention & WithGroupScore(double value)
void SetEndOffset(int value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
void SetGroupScore(double value)
void SetScore(double value)
void SetType(TargetedSentimentEntityType value)
int GetBeginOffset() const
const MentionSentiment & GetMentionSentiment() const
double GetGroupScore() const
void SetBeginOffset(int value)
AWS_COMPREHEND_API TargetedSentimentMention(Aws::Utils::Json::JsonView jsonValue)
void SetText(TextT &&value)
TargetedSentimentMention & WithEndOffset(int value)
bool TypeHasBeenSet() const
bool TextHasBeenSet() const
TargetedSentimentMention & WithType(TargetedSentimentEntityType value)
void SetMentionSentiment(MentionSentimentT &&value)
bool EndOffsetHasBeenSet() const
const Aws::String & GetText() const
TargetedSentimentMention & WithBeginOffset(int value)
AWS_COMPREHEND_API TargetedSentimentMention()=default
TargetedSentimentMention & WithText(TextT &&value)
TargetedSentimentMention & WithMentionSentiment(MentionSentimentT &&value)
TargetedSentimentEntityType
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue