AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DetectKeyPhrasesRequest.h
1
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/LanguageCode.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Comprehend
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_COMPREHEND_API DetectKeyPhrasesRequest() = default;
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.
31 inline virtual const char* GetServiceRequestName() const override { return "DetectKeyPhrases"; }
32
33 AWS_COMPREHEND_API Aws::String SerializePayload() const override;
34
36
37
39
43 inline const Aws::String& GetText() const { return m_text; }
44 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
45 template<typename TextT = Aws::String>
46 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
47 template<typename TextT = Aws::String>
48 DetectKeyPhrasesRequest& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
50
52
57 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
58 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
59 inline void SetLanguageCode(LanguageCode value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
62 private:
63
64 Aws::String m_text;
65 bool m_textHasBeenSet = false;
66
67 LanguageCode m_languageCode{LanguageCode::NOT_SET};
68 bool m_languageCodeHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace Comprehend
73} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_COMPREHEND_API DetectKeyPhrasesRequest()=default
DetectKeyPhrasesRequest & WithLanguageCode(LanguageCode value)
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_COMPREHEND_API Aws::String SerializePayload() const override
DetectKeyPhrasesRequest & WithText(TextT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String