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

Array of languages that Amazon Comprehend detected in the input text. The * array is sorted in descending order of the score (the dominant language is * always the first element in the array).

For each language, the response * returns the RFC 5646 language code and the level of confidence that Amazon * Comprehend has in the accuracy of its inference. For more information about RFC * 5646, see Tags for Identifying * Languages on the IETF Tools web site.

*/ inline const Aws::Vector& GetLanguages() const{ return m_languages; } /** *

Array of languages that Amazon Comprehend detected in the input text. The * array is sorted in descending order of the score (the dominant language is * always the first element in the array).

For each language, the response * returns the RFC 5646 language code and the level of confidence that Amazon * Comprehend has in the accuracy of its inference. For more information about RFC * 5646, see Tags for Identifying * Languages on the IETF Tools web site.

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

Array of languages that Amazon Comprehend detected in the input text. The * array is sorted in descending order of the score (the dominant language is * always the first element in the array).

For each language, the response * returns the RFC 5646 language code and the level of confidence that Amazon * Comprehend has in the accuracy of its inference. For more information about RFC * 5646, see Tags for Identifying * Languages on the IETF Tools web site.

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

Array of languages that Amazon Comprehend detected in the input text. The * array is sorted in descending order of the score (the dominant language is * always the first element in the array).

For each language, the response * returns the RFC 5646 language code and the level of confidence that Amazon * Comprehend has in the accuracy of its inference. For more information about RFC * 5646, see Tags for Identifying * Languages on the IETF Tools web site.

*/ inline DetectDominantLanguageResult& WithLanguages(const Aws::Vector& value) { SetLanguages(value); return *this;} /** *

Array of languages that Amazon Comprehend detected in the input text. The * array is sorted in descending order of the score (the dominant language is * always the first element in the array).

For each language, the response * returns the RFC 5646 language code and the level of confidence that Amazon * Comprehend has in the accuracy of its inference. For more information about RFC * 5646, see Tags for Identifying * Languages on the IETF Tools web site.

*/ inline DetectDominantLanguageResult& WithLanguages(Aws::Vector&& value) { SetLanguages(std::move(value)); return *this;} /** *

Array of languages that Amazon Comprehend detected in the input text. The * array is sorted in descending order of the score (the dominant language is * always the first element in the array).

For each language, the response * returns the RFC 5646 language code and the level of confidence that Amazon * Comprehend has in the accuracy of its inference. For more information about RFC * 5646, see Tags for Identifying * Languages on the IETF Tools web site.

*/ inline DetectDominantLanguageResult& AddLanguages(const DominantLanguage& value) { m_languages.push_back(value); return *this; } /** *

Array of languages that Amazon Comprehend detected in the input text. The * array is sorted in descending order of the score (the dominant language is * always the first element in the array).

For each language, the response * returns the RFC 5646 language code and the level of confidence that Amazon * Comprehend has in the accuracy of its inference. For more information about RFC * 5646, see Tags for Identifying * Languages on the IETF Tools web site.

*/ inline DetectDominantLanguageResult& AddLanguages(DominantLanguage&& value) { m_languages.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 DetectDominantLanguageResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DetectDominantLanguageResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DetectDominantLanguageResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_languages; Aws::String m_requestId; }; } // namespace Model } // namespace Comprehend } // namespace Aws