AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
76 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
77 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
78 inline TargetedSentimentMention& WithText(const Aws::String& value) { SetText(value); return *this;}
79 inline TargetedSentimentMention& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
80 inline TargetedSentimentMention& WithText(const char* value) { SetText(value); return *this;}
82
84
89 inline const TargetedSentimentEntityType& GetType() const{ return m_type; }
90 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
91 inline void SetType(const TargetedSentimentEntityType& value) { m_typeHasBeenSet = true; m_type = value; }
92 inline void SetType(TargetedSentimentEntityType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
93 inline TargetedSentimentMention& WithType(const TargetedSentimentEntityType& value) { SetType(value); return *this;}
94 inline TargetedSentimentMention& WithType(TargetedSentimentEntityType&& value) { SetType(std::move(value)); return *this;}
96
98
101 inline const MentionSentiment& GetMentionSentiment() const{ return m_mentionSentiment; }
102 inline bool MentionSentimentHasBeenSet() const { return m_mentionSentimentHasBeenSet; }
103 inline void SetMentionSentiment(const MentionSentiment& value) { m_mentionSentimentHasBeenSet = true; m_mentionSentiment = value; }
104 inline void SetMentionSentiment(MentionSentiment&& value) { m_mentionSentimentHasBeenSet = true; m_mentionSentiment = std::move(value); }
106 inline TargetedSentimentMention& WithMentionSentiment(MentionSentiment&& value) { SetMentionSentiment(std::move(value)); return *this;}
108
110
113 inline int GetBeginOffset() const{ return m_beginOffset; }
114 inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
115 inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; }
116 inline TargetedSentimentMention& WithBeginOffset(int value) { SetBeginOffset(value); return *this;}
118
120
123 inline int GetEndOffset() const{ return m_endOffset; }
124 inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
125 inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; }
126 inline TargetedSentimentMention& WithEndOffset(int value) { SetEndOffset(value); return *this;}
128 private:
129
130 double m_score;
131 bool m_scoreHasBeenSet = false;
132
133 double m_groupScore;
134 bool m_groupScoreHasBeenSet = false;
135
136 Aws::String m_text;
137 bool m_textHasBeenSet = false;
138
140 bool m_typeHasBeenSet = false;
141
142 MentionSentiment m_mentionSentiment;
143 bool m_mentionSentimentHasBeenSet = false;
144
145 int m_beginOffset;
146 bool m_beginOffsetHasBeenSet = false;
147
148 int m_endOffset;
149 bool m_endOffsetHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace Comprehend
154} // namespace Aws
AWS_COMPREHEND_API TargetedSentimentMention & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMentionSentiment(const MentionSentiment &value)
TargetedSentimentMention & WithText(const Aws::String &value)
TargetedSentimentMention & WithScore(double value)
TargetedSentimentMention & WithGroupScore(double value)
TargetedSentimentMention & WithText(Aws::String &&value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
TargetedSentimentMention & WithMentionSentiment(MentionSentiment &&value)
void SetType(const TargetedSentimentEntityType &value)
void SetType(TargetedSentimentEntityType &&value)
const TargetedSentimentEntityType & GetType() const
AWS_COMPREHEND_API TargetedSentimentMention(Aws::Utils::Json::JsonView jsonValue)
TargetedSentimentMention & WithType(const TargetedSentimentEntityType &value)
TargetedSentimentMention & WithEndOffset(int value)
TargetedSentimentMention & WithMentionSentiment(const MentionSentiment &value)
TargetedSentimentMention & WithText(const char *value)
TargetedSentimentMention & WithType(TargetedSentimentEntityType &&value)
TargetedSentimentMention & WithBeginOffset(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue