AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
TargetedSentimentMention.h
1
6#pragma once
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>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Comprehend
24{
25namespace Model
26{
27
39 {
40 public:
41 AWS_COMPREHEND_API TargetedSentimentMention() = default;
44 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline double GetScore() const { return m_score; }
53 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
54 inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
55 inline TargetedSentimentMention& WithScore(double value) { SetScore(value); return *this;}
57
59
63 inline double GetGroupScore() const { return m_groupScore; }
64 inline bool GroupScoreHasBeenSet() const { return m_groupScoreHasBeenSet; }
65 inline void SetGroupScore(double value) { m_groupScoreHasBeenSet = true; m_groupScore = value; }
66 inline TargetedSentimentMention& WithGroupScore(double value) { SetGroupScore(value); return *this;}
68
70
73 inline const Aws::String& GetText() const { return m_text; }
74 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
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>
78 TargetedSentimentMention& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
80
82
87 inline TargetedSentimentEntityType GetType() const { return m_type; }
88 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
89 inline void SetType(TargetedSentimentEntityType value) { m_typeHasBeenSet = true; m_type = value; }
92
94
97 inline const MentionSentiment& GetMentionSentiment() const { return m_mentionSentiment; }
98 inline bool MentionSentimentHasBeenSet() const { return m_mentionSentimentHasBeenSet; }
99 template<typename MentionSentimentT = MentionSentiment>
100 void SetMentionSentiment(MentionSentimentT&& value) { m_mentionSentimentHasBeenSet = true; m_mentionSentiment = std::forward<MentionSentimentT>(value); }
101 template<typename MentionSentimentT = MentionSentiment>
102 TargetedSentimentMention& WithMentionSentiment(MentionSentimentT&& value) { SetMentionSentiment(std::forward<MentionSentimentT>(value)); return *this;}
104
106
109 inline int GetBeginOffset() const { return m_beginOffset; }
110 inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
111 inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; }
112 inline TargetedSentimentMention& WithBeginOffset(int value) { SetBeginOffset(value); return *this;}
114
116
119 inline int GetEndOffset() const { return m_endOffset; }
120 inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
121 inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; }
122 inline TargetedSentimentMention& WithEndOffset(int value) { SetEndOffset(value); return *this;}
124 private:
125
126 double m_score{0.0};
127 bool m_scoreHasBeenSet = false;
128
129 double m_groupScore{0.0};
130 bool m_groupScoreHasBeenSet = false;
131
132 Aws::String m_text;
133 bool m_textHasBeenSet = false;
134
136 bool m_typeHasBeenSet = false;
137
138 MentionSentiment m_mentionSentiment;
139 bool m_mentionSentimentHasBeenSet = false;
140
141 int m_beginOffset{0};
142 bool m_beginOffsetHasBeenSet = false;
143
144 int m_endOffset{0};
145 bool m_endOffsetHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace Comprehend
150} // namespace Aws
AWS_COMPREHEND_API TargetedSentimentMention & operator=(Aws::Utils::Json::JsonView jsonValue)
TargetedSentimentMention & WithScore(double value)
TargetedSentimentMention & WithGroupScore(double value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(TargetedSentimentEntityType value)
AWS_COMPREHEND_API TargetedSentimentMention(Aws::Utils::Json::JsonView jsonValue)
TargetedSentimentMention & WithEndOffset(int value)
TargetedSentimentMention & WithType(TargetedSentimentEntityType value)
TargetedSentimentMention & WithBeginOffset(int value)
AWS_COMPREHEND_API TargetedSentimentMention()=default
TargetedSentimentMention & WithText(TextT &&value)
TargetedSentimentMention & WithMentionSentiment(MentionSentimentT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue