7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
45 inline double GetScore()
const {
return m_score; }
47 inline void SetScore(
double value) { m_scoreHasBeenSet =
true; m_score = value; }
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>
70 inline void SetBeginOffset(
int value) { m_beginOffsetHasBeenSet =
true; m_beginOffset = value; }
81 inline void SetEndOffset(
int value) { m_endOffsetHasBeenSet =
true; m_endOffset = value; }
87 bool m_scoreHasBeenSet =
false;
90 bool m_textHasBeenSet =
false;
93 bool m_beginOffsetHasBeenSet =
false;
96 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