AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchDetectKeyPhrasesRequest.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/AWSVector.h>
10#include <aws/comprehend/model/LanguageCode.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Comprehend
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_COMPREHEND_API BatchDetectKeyPhrasesRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "BatchDetectKeyPhrases"; }
33
34 AWS_COMPREHEND_API Aws::String SerializePayload() const override;
35
37
38
40
45 inline const Aws::Vector<Aws::String>& GetTextList() const{ return m_textList; }
46 inline bool TextListHasBeenSet() const { return m_textListHasBeenSet; }
47 inline void SetTextList(const Aws::Vector<Aws::String>& value) { m_textListHasBeenSet = true; m_textList = value; }
48 inline void SetTextList(Aws::Vector<Aws::String>&& value) { m_textListHasBeenSet = true; m_textList = std::move(value); }
50 inline BatchDetectKeyPhrasesRequest& WithTextList(Aws::Vector<Aws::String>&& value) { SetTextList(std::move(value)); return *this;}
51 inline BatchDetectKeyPhrasesRequest& AddTextList(const Aws::String& value) { m_textListHasBeenSet = true; m_textList.push_back(value); return *this; }
52 inline BatchDetectKeyPhrasesRequest& AddTextList(Aws::String&& value) { m_textListHasBeenSet = true; m_textList.push_back(std::move(value)); return *this; }
53 inline BatchDetectKeyPhrasesRequest& AddTextList(const char* value) { m_textListHasBeenSet = true; m_textList.push_back(value); return *this; }
55
57
62 inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
63 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
64 inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
65 inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
66 inline BatchDetectKeyPhrasesRequest& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
67 inline BatchDetectKeyPhrasesRequest& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
69 private:
70
71 Aws::Vector<Aws::String> m_textList;
72 bool m_textListHasBeenSet = false;
73
74 LanguageCode m_languageCode;
75 bool m_languageCodeHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Comprehend
80} // namespace Aws
BatchDetectKeyPhrasesRequest & WithTextList(Aws::Vector< Aws::String > &&value)
BatchDetectKeyPhrasesRequest & AddTextList(const char *value)
void SetTextList(const Aws::Vector< Aws::String > &value)
BatchDetectKeyPhrasesRequest & AddTextList(Aws::String &&value)
BatchDetectKeyPhrasesRequest & AddTextList(const Aws::String &value)
BatchDetectKeyPhrasesRequest & WithLanguageCode(const LanguageCode &value)
AWS_COMPREHEND_API Aws::String SerializePayload() const override
BatchDetectKeyPhrasesRequest & WithLanguageCode(LanguageCode &&value)
BatchDetectKeyPhrasesRequest & WithTextList(const Aws::Vector< Aws::String > &value)
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector