7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
39 inline double GetScore()
const {
return m_score; }
42 m_scoreHasBeenSet =
true;
57 template <
typename TextT = Aws::String>
59 m_textHasBeenSet =
true;
60 m_text = std::forward<TextT>(value);
62 template <
typename TextT = Aws::String>
64 SetText(std::forward<TextT>(value));
77 m_beginOffsetHasBeenSet =
true;
78 m_beginOffset = value;
94 m_endOffsetHasBeenSet =
true;
107 int m_beginOffset{0};
110 bool m_scoreHasBeenSet =
false;
111 bool m_textHasBeenSet =
false;
112 bool m_beginOffsetHasBeenSet =
false;
113 bool m_endOffsetHasBeenSet =
false;
AWS_COMPREHEND_API KeyPhrase & operator=(Aws::Utils::Json::JsonView jsonValue)
int GetBeginOffset() const
const Aws::String & GetText() const
KeyPhrase & WithScore(double value)
KeyPhrase & WithEndOffset(int value)
AWS_COMPREHEND_API KeyPhrase()=default
void SetEndOffset(int value)
void SetScore(double value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
KeyPhrase & WithBeginOffset(int value)
bool BeginOffsetHasBeenSet() const
void SetText(TextT &&value)
bool ScoreHasBeenSet() const
AWS_COMPREHEND_API KeyPhrase(Aws::Utils::Json::JsonView jsonValue)
bool TextHasBeenSet() const
void SetBeginOffset(int value)
KeyPhrase & WithText(TextT &&value)
bool EndOffsetHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue