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

The languages that Amazon Comprehend detected in the input text. 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; } /** *

The languages that Amazon Comprehend detected in the input text. 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; } /** *

The languages that Amazon Comprehend detected in the input text. 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); } /** *

The languages that Amazon Comprehend detected in the input text. 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;} /** *

The languages that Amazon Comprehend detected in the input text. 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;} /** *

The languages that Amazon Comprehend detected in the input text. 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; } /** *

The languages that Amazon Comprehend detected in the input text. 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; } private: Aws::Vector m_languages; }; } // namespace Model } // namespace Comprehend } // namespace Aws