/** * 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 that is * successfully processed by the operation.

See Also:

AWS * API Reference

*/ class BatchDetectSyntaxItemResult { public: AWS_COMPREHEND_API BatchDetectSyntaxItemResult(); AWS_COMPREHEND_API BatchDetectSyntaxItemResult(Aws::Utils::Json::JsonView jsonValue); AWS_COMPREHEND_API BatchDetectSyntaxItemResult& 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 BatchDetectSyntaxItemResult& WithIndex(int value) { SetIndex(value); return *this;} /** *

The syntax tokens for the words in the document, one token for each word.

*/ inline const Aws::Vector& GetSyntaxTokens() const{ return m_syntaxTokens; } /** *

The syntax tokens for the words in the document, one token for each word.

*/ inline bool SyntaxTokensHasBeenSet() const { return m_syntaxTokensHasBeenSet; } /** *

The syntax tokens for the words in the document, one token for each word.

*/ inline void SetSyntaxTokens(const Aws::Vector& value) { m_syntaxTokensHasBeenSet = true; m_syntaxTokens = value; } /** *

The syntax tokens for the words in the document, one token for each word.

*/ inline void SetSyntaxTokens(Aws::Vector&& value) { m_syntaxTokensHasBeenSet = true; m_syntaxTokens = std::move(value); } /** *

The syntax tokens for the words in the document, one token for each word.

*/ inline BatchDetectSyntaxItemResult& WithSyntaxTokens(const Aws::Vector& value) { SetSyntaxTokens(value); return *this;} /** *

The syntax tokens for the words in the document, one token for each word.

*/ inline BatchDetectSyntaxItemResult& WithSyntaxTokens(Aws::Vector&& value) { SetSyntaxTokens(std::move(value)); return *this;} /** *

The syntax tokens for the words in the document, one token for each word.

*/ inline BatchDetectSyntaxItemResult& AddSyntaxTokens(const SyntaxToken& value) { m_syntaxTokensHasBeenSet = true; m_syntaxTokens.push_back(value); return *this; } /** *

The syntax tokens for the words in the document, one token for each word.

*/ inline BatchDetectSyntaxItemResult& AddSyntaxTokens(SyntaxToken&& value) { m_syntaxTokensHasBeenSet = true; m_syntaxTokens.push_back(std::move(value)); return *this; } private: int m_index; bool m_indexHasBeenSet = false; Aws::Vector m_syntaxTokens; bool m_syntaxTokensHasBeenSet = false; }; } // namespace Model } // namespace Comprehend } // namespace Aws