/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a key noun phrase.See Also:
AWS
* API Reference
The level of confidence that Amazon Comprehend has in the accuracy of the * detection.
*/ inline double GetScore() const{ return m_score; } /** *The level of confidence that Amazon Comprehend has in the accuracy of the * detection.
*/ inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; } /** *The level of confidence that Amazon Comprehend has in the accuracy of the * detection.
*/ inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; } /** *The level of confidence that Amazon Comprehend has in the accuracy of the * detection.
*/ inline KeyPhrase& WithScore(double value) { SetScore(value); return *this;} /** *The text of a key noun phrase.
*/ inline const Aws::String& GetText() const{ return m_text; } /** *The text of a key noun phrase.
*/ inline bool TextHasBeenSet() const { return m_textHasBeenSet; } /** *The text of a key noun phrase.
*/ inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; } /** *The text of a key noun phrase.
*/ inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); } /** *The text of a key noun phrase.
*/ inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); } /** *The text of a key noun phrase.
*/ inline KeyPhrase& WithText(const Aws::String& value) { SetText(value); return *this;} /** *The text of a key noun phrase.
*/ inline KeyPhrase& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;} /** *The text of a key noun phrase.
*/ inline KeyPhrase& WithText(const char* value) { SetText(value); return *this;} /** *A character offset in the input text that shows where the key phrase begins * (the first character is at position 0). The offset returns the position of each * UTF-8 code point in the string. A code point is the abstract character * from a particular graphical representation. For example, a multi-byte UTF-8 * character maps to a single code point.
*/ inline int GetBeginOffset() const{ return m_beginOffset; } /** *A character offset in the input text that shows where the key phrase begins * (the first character is at position 0). The offset returns the position of each * UTF-8 code point in the string. A code point is the abstract character * from a particular graphical representation. For example, a multi-byte UTF-8 * character maps to a single code point.
*/ inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; } /** *A character offset in the input text that shows where the key phrase begins * (the first character is at position 0). The offset returns the position of each * UTF-8 code point in the string. A code point is the abstract character * from a particular graphical representation. For example, a multi-byte UTF-8 * character maps to a single code point.
*/ inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; } /** *A character offset in the input text that shows where the key phrase begins * (the first character is at position 0). The offset returns the position of each * UTF-8 code point in the string. A code point is the abstract character * from a particular graphical representation. For example, a multi-byte UTF-8 * character maps to a single code point.
*/ inline KeyPhrase& WithBeginOffset(int value) { SetBeginOffset(value); return *this;} /** *A character offset in the input text where the key phrase ends. The offset
* returns the position of each UTF-8 code point in the string. A code
* point is the abstract character from a particular graphical
* representation. For example, a multi-byte UTF-8 character maps to a single code
* point.
A character offset in the input text where the key phrase ends. The offset
* returns the position of each UTF-8 code point in the string. A code
* point is the abstract character from a particular graphical
* representation. For example, a multi-byte UTF-8 character maps to a single code
* point.
A character offset in the input text where the key phrase ends. The offset
* returns the position of each UTF-8 code point in the string. A code
* point is the abstract character from a particular graphical
* representation. For example, a multi-byte UTF-8 character maps to a single code
* point.
A character offset in the input text where the key phrase ends. The offset
* returns the position of each UTF-8 code point in the string. A code
* point is the abstract character from a particular graphical
* representation. For example, a multi-byte UTF-8 character maps to a single code
* point.