1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/comprehend/Comprehend_EXPORTS.h> 8 #include <aws/comprehend/ComprehendRequest.h> 9 #include <aws/core/utils/memory/stl/AWSVector.h> 10 #include <aws/comprehend/model/SyntaxLanguageCode.h> 11 #include <aws/core/utils/memory/stl/AWSString.h> 12 #include <utility> 13 14 namespace Aws 15 { 16 namespace Comprehend 17 { 18 namespace Model 19 { 20 21 /** 22 */ 23 class AWS_COMPREHEND_API BatchDetectSyntaxRequest : public ComprehendRequest 24 { 25 public: 26 BatchDetectSyntaxRequest(); 27 28 // Service request name is the Operation name which will send this request out, 29 // each operation should has unique request name, so that we can get operation's name from this request. 30 // Note: this is not true for response, multiple operations may have the same response name, 31 // so we can not get operation's name from response. GetServiceRequestName()32 inline virtual const char* GetServiceRequestName() const override { return "BatchDetectSyntax"; } 33 34 Aws::String SerializePayload() const override; 35 36 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 37 38 39 /** 40 * <p>A list containing the text of the input documents. The list can contain a 41 * maximum of 25 documents. Each document must contain fewer that 5,000 bytes of 42 * UTF-8 encoded characters.</p> 43 */ GetTextList()44 inline const Aws::Vector<Aws::String>& GetTextList() const{ return m_textList; } 45 46 /** 47 * <p>A list containing the text of the input documents. The list can contain a 48 * maximum of 25 documents. Each document must contain fewer that 5,000 bytes of 49 * UTF-8 encoded characters.</p> 50 */ TextListHasBeenSet()51 inline bool TextListHasBeenSet() const { return m_textListHasBeenSet; } 52 53 /** 54 * <p>A list containing the text of the input documents. The list can contain a 55 * maximum of 25 documents. Each document must contain fewer that 5,000 bytes of 56 * UTF-8 encoded characters.</p> 57 */ SetTextList(const Aws::Vector<Aws::String> & value)58 inline void SetTextList(const Aws::Vector<Aws::String>& value) { m_textListHasBeenSet = true; m_textList = value; } 59 60 /** 61 * <p>A list containing the text of the input documents. The list can contain a 62 * maximum of 25 documents. Each document must contain fewer that 5,000 bytes of 63 * UTF-8 encoded characters.</p> 64 */ SetTextList(Aws::Vector<Aws::String> && value)65 inline void SetTextList(Aws::Vector<Aws::String>&& value) { m_textListHasBeenSet = true; m_textList = std::move(value); } 66 67 /** 68 * <p>A list containing the text of the input documents. The list can contain a 69 * maximum of 25 documents. Each document must contain fewer that 5,000 bytes of 70 * UTF-8 encoded characters.</p> 71 */ WithTextList(const Aws::Vector<Aws::String> & value)72 inline BatchDetectSyntaxRequest& WithTextList(const Aws::Vector<Aws::String>& value) { SetTextList(value); return *this;} 73 74 /** 75 * <p>A list containing the text of the input documents. The list can contain a 76 * maximum of 25 documents. Each document must contain fewer that 5,000 bytes of 77 * UTF-8 encoded characters.</p> 78 */ WithTextList(Aws::Vector<Aws::String> && value)79 inline BatchDetectSyntaxRequest& WithTextList(Aws::Vector<Aws::String>&& value) { SetTextList(std::move(value)); return *this;} 80 81 /** 82 * <p>A list containing the text of the input documents. The list can contain a 83 * maximum of 25 documents. Each document must contain fewer that 5,000 bytes of 84 * UTF-8 encoded characters.</p> 85 */ AddTextList(const Aws::String & value)86 inline BatchDetectSyntaxRequest& AddTextList(const Aws::String& value) { m_textListHasBeenSet = true; m_textList.push_back(value); return *this; } 87 88 /** 89 * <p>A list containing the text of the input documents. The list can contain a 90 * maximum of 25 documents. Each document must contain fewer that 5,000 bytes of 91 * UTF-8 encoded characters.</p> 92 */ AddTextList(Aws::String && value)93 inline BatchDetectSyntaxRequest& AddTextList(Aws::String&& value) { m_textListHasBeenSet = true; m_textList.push_back(std::move(value)); return *this; } 94 95 /** 96 * <p>A list containing the text of the input documents. The list can contain a 97 * maximum of 25 documents. Each document must contain fewer that 5,000 bytes of 98 * UTF-8 encoded characters.</p> 99 */ AddTextList(const char * value)100 inline BatchDetectSyntaxRequest& AddTextList(const char* value) { m_textListHasBeenSet = true; m_textList.push_back(value); return *this; } 101 102 103 /** 104 * <p>The language of the input documents. You can specify any of the following 105 * languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish 106 * ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must 107 * be in the same language.</p> 108 */ GetLanguageCode()109 inline const SyntaxLanguageCode& GetLanguageCode() const{ return m_languageCode; } 110 111 /** 112 * <p>The language of the input documents. You can specify any of the following 113 * languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish 114 * ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must 115 * be in the same language.</p> 116 */ LanguageCodeHasBeenSet()117 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; } 118 119 /** 120 * <p>The language of the input documents. You can specify any of the following 121 * languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish 122 * ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must 123 * be in the same language.</p> 124 */ SetLanguageCode(const SyntaxLanguageCode & value)125 inline void SetLanguageCode(const SyntaxLanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; } 126 127 /** 128 * <p>The language of the input documents. You can specify any of the following 129 * languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish 130 * ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must 131 * be in the same language.</p> 132 */ SetLanguageCode(SyntaxLanguageCode && value)133 inline void SetLanguageCode(SyntaxLanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); } 134 135 /** 136 * <p>The language of the input documents. You can specify any of the following 137 * languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish 138 * ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must 139 * be in the same language.</p> 140 */ WithLanguageCode(const SyntaxLanguageCode & value)141 inline BatchDetectSyntaxRequest& WithLanguageCode(const SyntaxLanguageCode& value) { SetLanguageCode(value); return *this;} 142 143 /** 144 * <p>The language of the input documents. You can specify any of the following 145 * languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish 146 * ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must 147 * be in the same language.</p> 148 */ WithLanguageCode(SyntaxLanguageCode && value)149 inline BatchDetectSyntaxRequest& WithLanguageCode(SyntaxLanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;} 150 151 private: 152 153 Aws::Vector<Aws::String> m_textList; 154 bool m_textListHasBeenSet; 155 156 SyntaxLanguageCode m_languageCode; 157 bool m_languageCodeHasBeenSet; 158 }; 159 160 } // namespace Model 161 } // namespace Comprehend 162 } // namespace Aws 163