AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
BatchDetectTargetedSentimentRequest.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 BatchDetectTargetedSentimentRequest() = 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 "BatchDetectTargetedSentiment"; }
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
66 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
67 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
68 inline void SetLanguageCode(LanguageCode value) {
69 m_languageCodeHasBeenSet = true;
70 m_languageCode = value;
71 }
73 SetLanguageCode(value);
74 return *this;
75 }
77 private:
78 Aws::Vector<Aws::String> m_textList;
79
80 LanguageCode m_languageCode{LanguageCode::NOT_SET};
81 bool m_textListHasBeenSet = false;
82 bool m_languageCodeHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace Comprehend
87} // namespace Aws
BatchDetectTargetedSentimentRequest & WithLanguageCode(LanguageCode value)
AWS_COMPREHEND_API BatchDetectTargetedSentimentRequest()=default
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchDetectTargetedSentimentRequest & AddTextList(TextListT &&value)
AWS_COMPREHEND_API Aws::String SerializePayload() const override
BatchDetectTargetedSentimentRequest & WithTextList(TextListT &&value)
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