/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Comprehend { namespace Model { /** */ class AWS_COMPREHEND_API DetectDominantLanguageRequest : public ComprehendRequest { public: DetectDominantLanguageRequest(); // 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 "DetectDominantLanguage"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A UTF-8 text string. Each string should contain at least 20 characters and * must contain fewer that 5,000 bytes of UTF-8 encoded characters.

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

A UTF-8 text string. Each string should contain at least 20 characters and * must contain fewer that 5,000 bytes of UTF-8 encoded characters.

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

A UTF-8 text string. Each string should contain at least 20 characters and * must contain fewer that 5,000 bytes of UTF-8 encoded characters.

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

A UTF-8 text string. Each string should contain at least 20 characters and * must contain fewer that 5,000 bytes of UTF-8 encoded characters.

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

A UTF-8 text string. Each string should contain at least 20 characters and * must contain fewer that 5,000 bytes of UTF-8 encoded characters.

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

A UTF-8 text string. Each string should contain at least 20 characters and * must contain fewer that 5,000 bytes of UTF-8 encoded characters.

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

A UTF-8 text string. Each string should contain at least 20 characters and * must contain fewer that 5,000 bytes of UTF-8 encoded characters.

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

A UTF-8 text string. Each string should contain at least 20 characters and * must contain fewer that 5,000 bytes of UTF-8 encoded characters.

*/ inline DetectDominantLanguageRequest& WithText(const char* value) { SetText(value); return *this;} private: Aws::String m_text; bool m_textHasBeenSet; }; } // namespace Model } // namespace Comprehend } // namespace Aws