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

See * Also:

AWS * API Reference

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

One or more DominantLanguage objects describing the dominant languages * in the document.

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

One or more DominantLanguage objects describing the dominant languages * in the document.

*/ inline bool LanguagesHasBeenSet() const { return m_languagesHasBeenSet; } /** *

One or more DominantLanguage objects describing the dominant languages * in the document.

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

One or more DominantLanguage objects describing the dominant languages * in the document.

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

One or more DominantLanguage objects describing the dominant languages * in the document.

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

One or more DominantLanguage objects describing the dominant languages * in the document.

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

One or more DominantLanguage objects describing the dominant languages * in the document.

*/ inline BatchDetectDominantLanguageItemResult& AddLanguages(const DominantLanguage& value) { m_languagesHasBeenSet = true; m_languages.push_back(value); return *this; } /** *

One or more DominantLanguage objects describing the dominant languages * in the document.

*/ inline BatchDetectDominantLanguageItemResult& AddLanguages(DominantLanguage&& value) { m_languagesHasBeenSet = true; m_languages.push_back(std::move(value)); return *this; } private: int m_index; bool m_indexHasBeenSet = false; Aws::Vector m_languages; bool m_languagesHasBeenSet = false; }; } // namespace Model } // namespace Comprehend } // namespace Aws