/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Comprehend { namespace Model { class AWS_COMPREHEND_API DetectKeyPhrasesResult { public: DetectKeyPhrasesResult(); DetectKeyPhrasesResult(const Aws::AmazonWebServiceResult& result); DetectKeyPhrasesResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A collection of key phrases that Amazon Comprehend identified in the input * text. For each key phrase, the response provides the text of the key phrase, * where the key phrase begins and ends, and the level of confidence that Amazon * Comprehend has in the accuracy of the detection.

*/ inline const Aws::Vector& GetKeyPhrases() const{ return m_keyPhrases; } /** *

A collection of key phrases that Amazon Comprehend identified in the input * text. For each key phrase, the response provides the text of the key phrase, * where the key phrase begins and ends, and the level of confidence that Amazon * Comprehend has in the accuracy of the detection.

*/ inline void SetKeyPhrases(const Aws::Vector& value) { m_keyPhrases = value; } /** *

A collection of key phrases that Amazon Comprehend identified in the input * text. For each key phrase, the response provides the text of the key phrase, * where the key phrase begins and ends, and the level of confidence that Amazon * Comprehend has in the accuracy of the detection.

*/ inline void SetKeyPhrases(Aws::Vector&& value) { m_keyPhrases = std::move(value); } /** *

A collection of key phrases that Amazon Comprehend identified in the input * text. For each key phrase, the response provides the text of the key phrase, * where the key phrase begins and ends, and the level of confidence that Amazon * Comprehend has in the accuracy of the detection.

*/ inline DetectKeyPhrasesResult& WithKeyPhrases(const Aws::Vector& value) { SetKeyPhrases(value); return *this;} /** *

A collection of key phrases that Amazon Comprehend identified in the input * text. For each key phrase, the response provides the text of the key phrase, * where the key phrase begins and ends, and the level of confidence that Amazon * Comprehend has in the accuracy of the detection.

*/ inline DetectKeyPhrasesResult& WithKeyPhrases(Aws::Vector&& value) { SetKeyPhrases(std::move(value)); return *this;} /** *

A collection of key phrases that Amazon Comprehend identified in the input * text. For each key phrase, the response provides the text of the key phrase, * where the key phrase begins and ends, and the level of confidence that Amazon * Comprehend has in the accuracy of the detection.

*/ inline DetectKeyPhrasesResult& AddKeyPhrases(const KeyPhrase& value) { m_keyPhrases.push_back(value); return *this; } /** *

A collection of key phrases that Amazon Comprehend identified in the input * text. For each key phrase, the response provides the text of the key phrase, * where the key phrase begins and ends, and the level of confidence that Amazon * Comprehend has in the accuracy of the detection.

*/ inline DetectKeyPhrasesResult& AddKeyPhrases(KeyPhrase&& value) { m_keyPhrases.push_back(std::move(value)); return *this; } private: Aws::Vector m_keyPhrases; }; } // namespace Model } // namespace Comprehend } // namespace Aws