/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Comprehend { namespace Model { /** *

The result of calling the operation. The operation returns one object for * each document that is successfully processed by the operation.

See * Also:

AWS * API Reference

*/ class BatchDetectKeyPhrasesItemResult { public: AWS_COMPREHEND_API BatchDetectKeyPhrasesItemResult(); AWS_COMPREHEND_API BatchDetectKeyPhrasesItemResult(Aws::Utils::Json::JsonView jsonValue); AWS_COMPREHEND_API BatchDetectKeyPhrasesItemResult& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The zero-based index of the document in the input list.

*/ inline int GetIndex() const{ return m_index; } /** *

The zero-based index of the document in the input list.

*/ inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; } /** *

The zero-based index of the document in the input list.

*/ inline void SetIndex(int value) { m_indexHasBeenSet = true; m_index = value; } /** *

The zero-based index of the document in the input list.

*/ inline BatchDetectKeyPhrasesItemResult& WithIndex(int value) { SetIndex(value); return *this;} /** *

One or more KeyPhrase objects, one for each key phrase detected in the * document.

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

One or more KeyPhrase objects, one for each key phrase detected in the * document.

*/ inline bool KeyPhrasesHasBeenSet() const { return m_keyPhrasesHasBeenSet; } /** *

One or more KeyPhrase objects, one for each key phrase detected in the * document.

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

One or more KeyPhrase objects, one for each key phrase detected in the * document.

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

One or more KeyPhrase objects, one for each key phrase detected in the * document.

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

One or more KeyPhrase objects, one for each key phrase detected in the * document.

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

One or more KeyPhrase objects, one for each key phrase detected in the * document.

*/ inline BatchDetectKeyPhrasesItemResult& AddKeyPhrases(const KeyPhrase& value) { m_keyPhrasesHasBeenSet = true; m_keyPhrases.push_back(value); return *this; } /** *

One or more KeyPhrase objects, one for each key phrase detected in the * document.

*/ inline BatchDetectKeyPhrasesItemResult& AddKeyPhrases(KeyPhrase&& value) { m_keyPhrasesHasBeenSet = true; m_keyPhrases.push_back(std::move(value)); return *this; } private: int m_index; bool m_indexHasBeenSet = false; Aws::Vector m_keyPhrases; bool m_keyPhrasesHasBeenSet = false; }; } // namespace Model } // namespace Comprehend } // namespace Aws