/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Comprehend { namespace Model { class DetectSyntaxResult { public: AWS_COMPREHEND_API DetectSyntaxResult(); AWS_COMPREHEND_API DetectSyntaxResult(const Aws::AmazonWebServiceResult& result); AWS_COMPREHEND_API 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 Syntax * in the Comprehend Developer Guide.

*/ 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 Syntax * in the Comprehend Developer Guide.

*/ 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 Syntax * in the Comprehend Developer Guide.

*/ 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 Syntax * in the Comprehend Developer Guide.

*/ 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 Syntax * in the Comprehend Developer Guide.

*/ 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 Syntax * in the Comprehend Developer Guide.

*/ 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 Syntax * in the Comprehend Developer Guide.

*/ inline DetectSyntaxResult& AddSyntaxTokens(SyntaxToken&& value) { m_syntaxTokens.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DetectSyntaxResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DetectSyntaxResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DetectSyntaxResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_syntaxTokens; Aws::String m_requestId; }; } // namespace Model } // namespace Comprehend } // namespace Aws