AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
KeyPhrase.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Comprehend
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_COMPREHEND_API KeyPhrase();
35 AWS_COMPREHEND_API KeyPhrase(Aws::Utils::Json::JsonView jsonValue);
36 AWS_COMPREHEND_API KeyPhrase& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
45 inline double GetScore() const{ return m_score; }
46 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
47 inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
48 inline KeyPhrase& WithScore(double value) { SetScore(value); return *this;}
50
52
55 inline const Aws::String& GetText() const{ return m_text; }
56 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
57 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
58 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
59 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
60 inline KeyPhrase& WithText(const Aws::String& value) { SetText(value); return *this;}
61 inline KeyPhrase& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
62 inline KeyPhrase& WithText(const char* value) { SetText(value); return *this;}
64
66
70 inline int GetBeginOffset() const{ return m_beginOffset; }
71 inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
72 inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; }
73 inline KeyPhrase& WithBeginOffset(int value) { SetBeginOffset(value); return *this;}
75
77
81 inline int GetEndOffset() const{ return m_endOffset; }
82 inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
83 inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; }
84 inline KeyPhrase& WithEndOffset(int value) { SetEndOffset(value); return *this;}
86 private:
87
88 double m_score;
89 bool m_scoreHasBeenSet = false;
90
91 Aws::String m_text;
92 bool m_textHasBeenSet = false;
93
94 int m_beginOffset;
95 bool m_beginOffsetHasBeenSet = false;
96
97 int m_endOffset;
98 bool m_endOffsetHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace Comprehend
103} // namespace Aws
AWS_COMPREHEND_API KeyPhrase & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetText() const
Definition KeyPhrase.h:55
KeyPhrase & WithScore(double value)
Definition KeyPhrase.h:48
AWS_COMPREHEND_API KeyPhrase()
KeyPhrase & WithEndOffset(int value)
Definition KeyPhrase.h:84
void SetText(const Aws::String &value)
Definition KeyPhrase.h:57
void SetText(Aws::String &&value)
Definition KeyPhrase.h:58
void SetScore(double value)
Definition KeyPhrase.h:47
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
KeyPhrase & WithText(const char *value)
Definition KeyPhrase.h:62
KeyPhrase & WithBeginOffset(int value)
Definition KeyPhrase.h:73
KeyPhrase & WithText(const Aws::String &value)
Definition KeyPhrase.h:60
AWS_COMPREHEND_API KeyPhrase(Aws::Utils::Json::JsonView jsonValue)
KeyPhrase & WithText(Aws::String &&value)
Definition KeyPhrase.h:61
void SetText(const char *value)
Definition KeyPhrase.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue