/** * 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 AWS_COMPREHEND_API BatchDetectSentimentRequest : public ComprehendRequest { public: 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::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A list containing the text of the input documents. The list can contain a * maximum of 25 documents. Each document must contain fewer that 5,000 bytes of * UTF-8 encoded characters.

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

A list containing the text of the input documents. The list can contain a * maximum of 25 documents. Each document must contain fewer that 5,000 bytes of * UTF-8 encoded characters.

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

A list containing the text of the input documents. The list can contain a * maximum of 25 documents. Each document must contain fewer that 5,000 bytes of * UTF-8 encoded characters.

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

A list containing the text of the input documents. The list can contain a * maximum of 25 documents. Each document must contain fewer that 5,000 bytes of * UTF-8 encoded characters.

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

A list containing the text of the input documents. The list can contain a * maximum of 25 documents. Each document must contain fewer that 5,000 bytes of * UTF-8 encoded characters.

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

A list containing the text of the input documents. The list can contain a * maximum of 25 documents. Each document must contain fewer that 5,000 bytes of * UTF-8 encoded characters.

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

A list containing the text of the input documents. The list can contain a * maximum of 25 documents. Each document must contain fewer that 5,000 bytes of * UTF-8 encoded characters.

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

A list containing the text of the input documents. The list can contain a * maximum of 25 documents. Each document must contain fewer that 5,000 bytes of * UTF-8 encoded characters.

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

A list containing the text of the input documents. The list can contain a * maximum of 25 documents. Each document must contain fewer that 5,000 bytes of * UTF-8 encoded characters.

*/ 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; LanguageCode m_languageCode; bool m_languageCodeHasBeenSet; }; } // namespace Model } // namespace Comprehend } // namespace Aws