AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
46 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
47 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
48 inline DetectKeyPhrasesRequest& WithText(const Aws::String& value) { SetText(value); return *this;}
49 inline DetectKeyPhrasesRequest& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
50 inline DetectKeyPhrasesRequest& WithText(const char* value) { SetText(value); return *this;}
52
54
59 inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
60 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
61 inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
62 inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
63 inline DetectKeyPhrasesRequest& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
64 inline DetectKeyPhrasesRequest& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
66 private:
67
68 Aws::String m_text;
69 bool m_textHasBeenSet = false;
70
71 LanguageCode m_languageCode;
72 bool m_languageCodeHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace Comprehend
77} // namespace Aws
virtual const char * GetServiceRequestName() const override
DetectKeyPhrasesRequest & WithText(const char *value)
DetectKeyPhrasesRequest & WithText(Aws::String &&value)
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_COMPREHEND_API Aws::String SerializePayload() const override
DetectKeyPhrasesRequest & WithLanguageCode(const LanguageCode &value)
DetectKeyPhrasesRequest & WithLanguageCode(LanguageCode &&value)
DetectKeyPhrasesRequest & WithText(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String