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

A UTF-8 string. The maximum string size is 5 KB.

*/ inline const Aws::String& GetText() const{ return m_text; } /** *

A UTF-8 string. The maximum string size is 5 KB.

*/ inline bool TextHasBeenSet() const { return m_textHasBeenSet; } /** *

A UTF-8 string. The maximum string size is 5 KB.

*/ inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; } /** *

A UTF-8 string. The maximum string size is 5 KB.

*/ inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); } /** *

A UTF-8 string. The maximum string size is 5 KB.

*/ inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); } /** *

A UTF-8 string. The maximum string size is 5 KB.

*/ inline DetectSyntaxRequest& WithText(const Aws::String& value) { SetText(value); return *this;} /** *

A UTF-8 string. The maximum string size is 5 KB.

*/ inline DetectSyntaxRequest& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;} /** *

A UTF-8 string. The maximum string size is 5 KB.

*/ inline DetectSyntaxRequest& WithText(const char* value) { SetText(value); return *this;} /** *

The language code of the input documents. You can specify any of the * following languages supported by Amazon Comprehend: German ("de"), English * ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").

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

The language code of the input documents. You can specify any of the * following languages supported by Amazon Comprehend: German ("de"), English * ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").

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

The language code of the input documents. You can specify any of the * following languages supported by Amazon Comprehend: German ("de"), English * ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").

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

The language code of the input documents. You can specify any of the * following languages supported by Amazon Comprehend: German ("de"), English * ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").

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

The language code of the input documents. You can specify any of the * following languages supported by Amazon Comprehend: German ("de"), English * ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").

*/ inline DetectSyntaxRequest& WithLanguageCode(const SyntaxLanguageCode& value) { SetLanguageCode(value); return *this;} /** *

The language code of the input documents. You can specify any of the * following languages supported by Amazon Comprehend: German ("de"), English * ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").

*/ inline DetectSyntaxRequest& WithLanguageCode(SyntaxLanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;} private: Aws::String m_text; bool m_textHasBeenSet = false; SyntaxLanguageCode m_languageCode; bool m_languageCodeHasBeenSet = false; }; } // namespace Model } // namespace Comprehend } // namespace Aws