/** * 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 { namespace Comprehend { namespace Model { /** */ class BatchDetectDominantLanguageRequest : public ComprehendRequest { public: AWS_COMPREHEND_API BatchDetectDominantLanguageRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "BatchDetectDominantLanguage"; } AWS_COMPREHEND_API Aws::String SerializePayload() const override; AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A list containing the UTF-8 encoded text of the input documents. The list can * contain a maximum of 25 documents. Each document should contain at least 20 * characters. The maximum size of each document is 5 KB.

*/ inline const Aws::Vector& GetTextList() const{ return m_textList; } /** *

A list containing the UTF-8 encoded text of the input documents. The list can * contain a maximum of 25 documents. Each document should contain at least 20 * characters. The maximum size of each document is 5 KB.

*/ inline bool TextListHasBeenSet() const { return m_textListHasBeenSet; } /** *

A list containing the UTF-8 encoded text of the input documents. The list can * contain a maximum of 25 documents. Each document should contain at least 20 * characters. The maximum size of each document is 5 KB.

*/ inline void SetTextList(const Aws::Vector& value) { m_textListHasBeenSet = true; m_textList = value; } /** *

A list containing the UTF-8 encoded text of the input documents. The list can * contain a maximum of 25 documents. Each document should contain at least 20 * characters. The maximum size of each document is 5 KB.

*/ inline void SetTextList(Aws::Vector&& value) { m_textListHasBeenSet = true; m_textList = std::move(value); } /** *

A list containing the UTF-8 encoded text of the input documents. The list can * contain a maximum of 25 documents. Each document should contain at least 20 * characters. The maximum size of each document is 5 KB.

*/ inline BatchDetectDominantLanguageRequest& WithTextList(const Aws::Vector& value) { SetTextList(value); return *this;} /** *

A list containing the UTF-8 encoded text of the input documents. The list can * contain a maximum of 25 documents. Each document should contain at least 20 * characters. The maximum size of each document is 5 KB.

*/ inline BatchDetectDominantLanguageRequest& WithTextList(Aws::Vector&& value) { SetTextList(std::move(value)); return *this;} /** *

A list containing the UTF-8 encoded text of the input documents. The list can * contain a maximum of 25 documents. Each document should contain at least 20 * characters. The maximum size of each document is 5 KB.

*/ inline BatchDetectDominantLanguageRequest& AddTextList(const Aws::String& value) { m_textListHasBeenSet = true; m_textList.push_back(value); return *this; } /** *

A list containing the UTF-8 encoded text of the input documents. The list can * contain a maximum of 25 documents. Each document should contain at least 20 * characters. The maximum size of each document is 5 KB.

*/ inline BatchDetectDominantLanguageRequest& AddTextList(Aws::String&& value) { m_textListHasBeenSet = true; m_textList.push_back(std::move(value)); return *this; } /** *

A list containing the UTF-8 encoded text of the input documents. The list can * contain a maximum of 25 documents. Each document should contain at least 20 * characters. The maximum size of each document is 5 KB.

*/ inline BatchDetectDominantLanguageRequest& AddTextList(const char* value) { m_textListHasBeenSet = true; m_textList.push_back(value); return *this; } private: Aws::Vector m_textList; bool m_textListHasBeenSet = false; }; } // namespace Model } // namespace Comprehend } // namespace Aws