AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
BatchDetectTargetedSentimentRequest.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 BatchDetectTargetedSentimentRequest() = default;
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 "BatchDetectTargetedSentiment"; }
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 template<typename TextListT = Aws::Vector<Aws::String>>
48 void SetTextList(TextListT&& value) { m_textListHasBeenSet = true; m_textList = std::forward<TextListT>(value); }
49 template<typename TextListT = Aws::Vector<Aws::String>>
50 BatchDetectTargetedSentimentRequest& WithTextList(TextListT&& value) { SetTextList(std::forward<TextListT>(value)); return *this;}
51 template<typename TextListT = Aws::String>
52 BatchDetectTargetedSentimentRequest& AddTextList(TextListT&& value) { m_textListHasBeenSet = true; m_textList.emplace_back(std::forward<TextListT>(value)); return *this; }
54
56
60 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
61 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
62 inline void SetLanguageCode(LanguageCode value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
65 private:
66
67 Aws::Vector<Aws::String> m_textList;
68 bool m_textListHasBeenSet = false;
69
70 LanguageCode m_languageCode{LanguageCode::NOT_SET};
71 bool m_languageCodeHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace Comprehend
76} // 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