/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Comprehend { namespace Model { /** */ class BatchDetectSentimentRequest : public ComprehendRequest { public: AWS_COMPREHEND_API BatchDetectSentimentRequest(); // 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 "BatchDetectSentiment"; } 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. 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. 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. 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. 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. The maximum size of each document is 5 KB. *

*/ inline BatchDetectSentimentRequest& 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. The maximum size of each document is 5 KB. *

*/ inline BatchDetectSentimentRequest& 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. The maximum size of each document is 5 KB. *

*/ inline BatchDetectSentimentRequest& 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. The maximum size of each document is 5 KB. *

*/ inline BatchDetectSentimentRequest& 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. The maximum size of each document is 5 KB. *

*/ inline BatchDetectSentimentRequest& AddTextList(const char* value) { m_textListHasBeenSet = true; m_textList.push_back(value); return *this; } /** *

The language of the input documents. You can specify any of the primary * languages supported by Amazon Comprehend. All documents must be in the same * language.

*/ inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; } /** *

The language of the input documents. You can specify any of the primary * languages supported by Amazon Comprehend. All documents must be in the same * language.

*/ inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; } /** *

The language of the input documents. You can specify any of the primary * languages supported by Amazon Comprehend. All documents must be in the same * language.

*/ inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; } /** *

The language of the input documents. You can specify any of the primary * languages supported by Amazon Comprehend. All documents must be in the same * language.

*/ inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); } /** *

The language of the input documents. You can specify any of the primary * languages supported by Amazon Comprehend. All documents must be in the same * language.

*/ inline BatchDetectSentimentRequest& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;} /** *

The language of the input documents. You can specify any of the primary * languages supported by Amazon Comprehend. All documents must be in the same * language.

*/ inline BatchDetectSentimentRequest& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;} private: Aws::Vector m_textList; bool m_textListHasBeenSet = false; LanguageCode m_languageCode; bool m_languageCodeHasBeenSet = false; }; } // namespace Model } // namespace Comprehend } // namespace Aws