/** * 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 DetectSyntaxResult { public: DetectSyntaxResult(); DetectSyntaxResult(const Aws::AmazonWebServiceResult& result); DetectSyntaxResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A collection of syntax tokens describing the text. For each token, the * response provides the text, the token type, where the text begins and ends, and * the level of confidence that Amazon Comprehend has that the token is correct. * For a list of token types, see how-syntax.

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

A collection of syntax tokens describing the text. For each token, the * response provides the text, the token type, where the text begins and ends, and * the level of confidence that Amazon Comprehend has that the token is correct. * For a list of token types, see how-syntax.

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

A collection of syntax tokens describing the text. For each token, the * response provides the text, the token type, where the text begins and ends, and * the level of confidence that Amazon Comprehend has that the token is correct. * For a list of token types, see how-syntax.

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

A collection of syntax tokens describing the text. For each token, the * response provides the text, the token type, where the text begins and ends, and * the level of confidence that Amazon Comprehend has that the token is correct. * For a list of token types, see how-syntax.

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

A collection of syntax tokens describing the text. For each token, the * response provides the text, the token type, where the text begins and ends, and * the level of confidence that Amazon Comprehend has that the token is correct. * For a list of token types, see how-syntax.

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

A collection of syntax tokens describing the text. For each token, the * response provides the text, the token type, where the text begins and ends, and * the level of confidence that Amazon Comprehend has that the token is correct. * For a list of token types, see how-syntax.

*/ inline DetectSyntaxResult& AddSyntaxTokens(const SyntaxToken& value) { m_syntaxTokens.push_back(value); return *this; } /** *

A collection of syntax tokens describing the text. For each token, the * response provides the text, the token type, where the text begins and ends, and * the level of confidence that Amazon Comprehend has that the token is correct. * For a list of token types, see how-syntax.

*/ inline DetectSyntaxResult& AddSyntaxTokens(SyntaxToken&& value) { m_syntaxTokens.push_back(std::move(value)); return *this; } private: Aws::Vector m_syntaxTokens; }; } // namespace Model } // namespace Comprehend } // namespace Aws