AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename TextT = Aws::String>
58 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
59 template<typename TextT = Aws::String>
60 KeyPhrase& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
62
64
68 inline int GetBeginOffset() const { return m_beginOffset; }
69 inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
70 inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; }
71 inline KeyPhrase& WithBeginOffset(int value) { SetBeginOffset(value); return *this;}
73
75
79 inline int GetEndOffset() const { return m_endOffset; }
80 inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
81 inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; }
82 inline KeyPhrase& WithEndOffset(int value) { SetEndOffset(value); return *this;}
84 private:
85
86 double m_score{0.0};
87 bool m_scoreHasBeenSet = false;
88
89 Aws::String m_text;
90 bool m_textHasBeenSet = false;
91
92 int m_beginOffset{0};
93 bool m_beginOffsetHasBeenSet = false;
94
95 int m_endOffset{0};
96 bool m_endOffsetHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace Comprehend
101} // 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
KeyPhrase & WithEndOffset(int value)
Definition KeyPhrase.h:82
AWS_COMPREHEND_API KeyPhrase()=default
void SetScore(double value)
Definition KeyPhrase.h:47
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
KeyPhrase & WithBeginOffset(int value)
Definition KeyPhrase.h:71
void SetText(TextT &&value)
Definition KeyPhrase.h:58
AWS_COMPREHEND_API KeyPhrase(Aws::Utils::Json::JsonView jsonValue)
KeyPhrase & WithText(TextT &&value)
Definition KeyPhrase.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue