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/AWSString.h> 10 #include <aws/comprehend/model/SyntaxLanguageCode.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 namespace Comprehend 16 { 17 namespace Model 18 { 19 20 /** 21 */ 22 class AWS_COMPREHEND_API DetectSyntaxRequest : public ComprehendRequest 23 { 24 public: 25 DetectSyntaxRequest(); 26 27 // Service request name is the Operation name which will send this request out, 28 // each operation should has unique request name, so that we can get operation's name from this request. 29 // Note: this is not true for response, multiple operations may have the same response name, 30 // so we can not get operation's name from response. GetServiceRequestName()31 inline virtual const char* GetServiceRequestName() const override { return "DetectSyntax"; } 32 33 Aws::String SerializePayload() const override; 34 35 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 36 37 38 /** 39 * <p>A UTF-8 string. Each string must contain fewer that 5,000 bytes of UTF 40 * encoded characters.</p> 41 */ GetText()42 inline const Aws::String& GetText() const{ return m_text; } 43 44 /** 45 * <p>A UTF-8 string. Each string must contain fewer that 5,000 bytes of UTF 46 * encoded characters.</p> 47 */ TextHasBeenSet()48 inline bool TextHasBeenSet() const { return m_textHasBeenSet; } 49 50 /** 51 * <p>A UTF-8 string. Each string must contain fewer that 5,000 bytes of UTF 52 * encoded characters.</p> 53 */ SetText(const Aws::String & value)54 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; } 55 56 /** 57 * <p>A UTF-8 string. Each string must contain fewer that 5,000 bytes of UTF 58 * encoded characters.</p> 59 */ SetText(Aws::String && value)60 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); } 61 62 /** 63 * <p>A UTF-8 string. Each string must contain fewer that 5,000 bytes of UTF 64 * encoded characters.</p> 65 */ SetText(const char * value)66 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); } 67 68 /** 69 * <p>A UTF-8 string. Each string must contain fewer that 5,000 bytes of UTF 70 * encoded characters.</p> 71 */ WithText(const Aws::String & value)72 inline DetectSyntaxRequest& WithText(const Aws::String& value) { SetText(value); return *this;} 73 74 /** 75 * <p>A UTF-8 string. Each string must contain fewer that 5,000 bytes of UTF 76 * encoded characters.</p> 77 */ WithText(Aws::String && value)78 inline DetectSyntaxRequest& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;} 79 80 /** 81 * <p>A UTF-8 string. Each string must contain fewer that 5,000 bytes of UTF 82 * encoded characters.</p> 83 */ WithText(const char * value)84 inline DetectSyntaxRequest& WithText(const char* value) { SetText(value); return *this;} 85 86 87 /** 88 * <p>The language code of the input documents. You can specify any of the 89 * following languages supported by Amazon Comprehend: German ("de"), English 90 * ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").</p> 91 */ GetLanguageCode()92 inline const SyntaxLanguageCode& GetLanguageCode() const{ return m_languageCode; } 93 94 /** 95 * <p>The language code of the input documents. You can specify any of the 96 * following languages supported by Amazon Comprehend: German ("de"), English 97 * ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").</p> 98 */ LanguageCodeHasBeenSet()99 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; } 100 101 /** 102 * <p>The language code of the input documents. You can specify any of the 103 * following languages supported by Amazon Comprehend: German ("de"), English 104 * ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").</p> 105 */ SetLanguageCode(const SyntaxLanguageCode & value)106 inline void SetLanguageCode(const SyntaxLanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; } 107 108 /** 109 * <p>The language code of the input documents. You can specify any of the 110 * following languages supported by Amazon Comprehend: German ("de"), English 111 * ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").</p> 112 */ SetLanguageCode(SyntaxLanguageCode && value)113 inline void SetLanguageCode(SyntaxLanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); } 114 115 /** 116 * <p>The language code of the input documents. You can specify any of the 117 * following languages supported by Amazon Comprehend: German ("de"), English 118 * ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").</p> 119 */ WithLanguageCode(const SyntaxLanguageCode & value)120 inline DetectSyntaxRequest& WithLanguageCode(const SyntaxLanguageCode& value) { SetLanguageCode(value); return *this;} 121 122 /** 123 * <p>The language code of the input documents. You can specify any of the 124 * following languages supported by Amazon Comprehend: German ("de"), English 125 * ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").</p> 126 */ WithLanguageCode(SyntaxLanguageCode && value)127 inline DetectSyntaxRequest& WithLanguageCode(SyntaxLanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;} 128 129 private: 130 131 Aws::String m_text; 132 bool m_textHasBeenSet; 133 134 SyntaxLanguageCode m_languageCode; 135 bool m_languageCodeHasBeenSet; 136 }; 137 138 } // namespace Model 139 } // namespace Comprehend 140 } // namespace Aws 141