AWS SDK for C++  1.9.158
AWS SDK for C++
KeyPhrase.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Comprehend
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
44  inline double GetScore() const{ return m_score; }
45 
50  inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
51 
56  inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
57 
62  inline KeyPhrase& WithScore(double value) { SetScore(value); return *this;}
63 
64 
68  inline const Aws::String& GetText() const{ return m_text; }
69 
73  inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
74 
78  inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
79 
83  inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
84 
88  inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
89 
93  inline KeyPhrase& WithText(const Aws::String& value) { SetText(value); return *this;}
94 
98  inline KeyPhrase& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
99 
103  inline KeyPhrase& WithText(const char* value) { SetText(value); return *this;}
104 
105 
113  inline int GetBeginOffset() const{ return m_beginOffset; }
114 
122  inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
123 
131  inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; }
132 
140  inline KeyPhrase& WithBeginOffset(int value) { SetBeginOffset(value); return *this;}
141 
142 
150  inline int GetEndOffset() const{ return m_endOffset; }
151 
159  inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
160 
168  inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; }
169 
177  inline KeyPhrase& WithEndOffset(int value) { SetEndOffset(value); return *this;}
178 
179  private:
180 
181  double m_score;
182  bool m_scoreHasBeenSet;
183 
184  Aws::String m_text;
185  bool m_textHasBeenSet;
186 
187  int m_beginOffset;
188  bool m_beginOffsetHasBeenSet;
189 
190  int m_endOffset;
191  bool m_endOffsetHasBeenSet;
192  };
193 
194 } // namespace Model
195 } // namespace Comprehend
196 } // namespace Aws
Aws::Comprehend::Model::KeyPhrase::WithText
KeyPhrase & WithText(const Aws::String &value)
Definition: KeyPhrase.h:93
Aws::Comprehend::Model::KeyPhrase
Definition: KeyPhrase.h:32
Aws::Comprehend::Model::KeyPhrase::GetText
const Aws::String & GetText() const
Definition: KeyPhrase.h:68
AWS_COMPREHEND_API
#define AWS_COMPREHEND_API
Definition: Comprehend_EXPORTS.h:28
Aws::Comprehend::Model::KeyPhrase::WithEndOffset
KeyPhrase & WithEndOffset(int value)
Definition: KeyPhrase.h:177
Aws::Comprehend::Model::KeyPhrase::WithText
KeyPhrase & WithText(const char *value)
Definition: KeyPhrase.h:103
Aws::Comprehend::Model::KeyPhrase::GetBeginOffset
int GetBeginOffset() const
Definition: KeyPhrase.h:113
Aws::Comprehend::Model::KeyPhrase::KeyPhrase
KeyPhrase(Aws::Utils::Json::JsonView jsonValue)
Aws::Comprehend::Model::KeyPhrase::EndOffsetHasBeenSet
bool EndOffsetHasBeenSet() const
Definition: KeyPhrase.h:159
Aws::Comprehend::Model::KeyPhrase::WithText
KeyPhrase & WithText(Aws::String &&value)
Definition: KeyPhrase.h:98
Aws::Comprehend::Model::KeyPhrase::WithScore
KeyPhrase & WithScore(double value)
Definition: KeyPhrase.h:62
Aws::Comprehend::Model::KeyPhrase::SetScore
void SetScore(double value)
Definition: KeyPhrase.h:56
Aws::Comprehend::Model::KeyPhrase::SetText
void SetText(Aws::String &&value)
Definition: KeyPhrase.h:83
Aws::Comprehend::Model::KeyPhrase::SetText
void SetText(const Aws::String &value)
Definition: KeyPhrase.h:78
Aws::Comprehend::Model::KeyPhrase::KeyPhrase
KeyPhrase()
Aws::Comprehend::Model::KeyPhrase::BeginOffsetHasBeenSet
bool BeginOffsetHasBeenSet() const
Definition: KeyPhrase.h:122
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Comprehend::Model::KeyPhrase::ScoreHasBeenSet
bool ScoreHasBeenSet() const
Definition: KeyPhrase.h:50
Aws::Comprehend::Model::KeyPhrase::SetBeginOffset
void SetBeginOffset(int value)
Definition: KeyPhrase.h:131
Aws::Comprehend::Model::KeyPhrase::TextHasBeenSet
bool TextHasBeenSet() const
Definition: KeyPhrase.h:73
Aws::Comprehend::Model::KeyPhrase::WithBeginOffset
KeyPhrase & WithBeginOffset(int value)
Definition: KeyPhrase.h:140
Comprehend_EXPORTS.h
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Comprehend::Model::KeyPhrase::operator=
KeyPhrase & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Comprehend::Model::KeyPhrase::SetText
void SetText(const char *value)
Definition: KeyPhrase.h:88
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Comprehend::Model::KeyPhrase::SetEndOffset
void SetEndOffset(int value)
Definition: KeyPhrase.h:168
Aws::Comprehend::Model::KeyPhrase::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Comprehend::Model::KeyPhrase::GetScore
double GetScore() const
Definition: KeyPhrase.h:44
Aws::Comprehend::Model::KeyPhrase::GetEndOffset
int GetEndOffset() const
Definition: KeyPhrase.h:150