AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
BatchDetectSentimentRequest.h
1
6#pragma once
7#include <aws/comprehend/ComprehendRequest.h>
8#include <aws/comprehend/Comprehend_EXPORTS.h>
9#include <aws/comprehend/model/LanguageCode.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Comprehend {
17namespace Model {
18
22 public:
23 AWS_COMPREHEND_API BatchDetectSentimentRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "BatchDetectSentiment"; }
30
31 AWS_COMPREHEND_API Aws::String SerializePayload() const override;
32
34
36
41 inline const Aws::Vector<Aws::String>& GetTextList() const { return m_textList; }
42 inline bool TextListHasBeenSet() const { return m_textListHasBeenSet; }
43 template <typename TextListT = Aws::Vector<Aws::String>>
44 void SetTextList(TextListT&& value) {
45 m_textListHasBeenSet = true;
46 m_textList = std::forward<TextListT>(value);
47 }
48 template <typename TextListT = Aws::Vector<Aws::String>>
50 SetTextList(std::forward<TextListT>(value));
51 return *this;
52 }
53 template <typename TextListT = Aws::String>
55 m_textListHasBeenSet = true;
56 m_textList.emplace_back(std::forward<TextListT>(value));
57 return *this;
58 }
60
62
67 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
68 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
69 inline void SetLanguageCode(LanguageCode value) {
70 m_languageCodeHasBeenSet = true;
71 m_languageCode = value;
72 }
74 SetLanguageCode(value);
75 return *this;
76 }
78 private:
79 Aws::Vector<Aws::String> m_textList;
80
81 LanguageCode m_languageCode{LanguageCode::NOT_SET};
82 bool m_textListHasBeenSet = false;
83 bool m_languageCodeHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace Comprehend
88} // namespace Aws
const Aws::Vector< Aws::String > & GetTextList() const
BatchDetectSentimentRequest & WithLanguageCode(LanguageCode value)
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchDetectSentimentRequest & WithTextList(TextListT &&value)
AWS_COMPREHEND_API Aws::String SerializePayload() const override
BatchDetectSentimentRequest & AddTextList(TextListT &&value)
AWS_COMPREHEND_API BatchDetectSentimentRequest()=default
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