7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/comprehend/model/TargetedSentimentEntityType.h>
10#include <aws/comprehend/model/MentionSentiment.h>
52 inline double GetScore()
const {
return m_score; }
54 inline void SetScore(
double value) { m_scoreHasBeenSet =
true; m_score = value; }
65 inline void SetGroupScore(
double value) { m_groupScoreHasBeenSet =
true; m_groupScore = value; }
75 template<
typename TextT = Aws::String>
76 void SetText(TextT&& value) { m_textHasBeenSet =
true; m_text = std::forward<TextT>(value); }
77 template<
typename TextT = Aws::String>
99 template<
typename MentionSentimentT = MentionSentiment>
100 void SetMentionSentiment(MentionSentimentT&& value) { m_mentionSentimentHasBeenSet =
true; m_mentionSentiment = std::forward<MentionSentimentT>(value); }
101 template<
typename MentionSentimentT = MentionSentiment>
111 inline void SetBeginOffset(
int value) { m_beginOffsetHasBeenSet =
true; m_beginOffset = value; }
121 inline void SetEndOffset(
int value) { m_endOffsetHasBeenSet =
true; m_endOffset = value; }
127 bool m_scoreHasBeenSet =
false;
129 double m_groupScore{0.0};
130 bool m_groupScoreHasBeenSet =
false;
133 bool m_textHasBeenSet =
false;
136 bool m_typeHasBeenSet =
false;
138 MentionSentiment m_mentionSentiment;
139 bool m_mentionSentimentHasBeenSet =
false;
141 int m_beginOffset{0};
142 bool m_beginOffsetHasBeenSet =
false;
145 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