AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 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 BatchDetectTargetedSentimentRequest& WithTextList(Aws::Vector<Aws::String>&& value) { SetTextList(std::move(value)); return *this;}
51 inline BatchDetectTargetedSentimentRequest& AddTextList(const Aws::String& value) { m_textListHasBeenSet = true; m_textList.push_back(value); return *this; }
52 inline BatchDetectTargetedSentimentRequest& AddTextList(Aws::String&& value) { m_textListHasBeenSet = true; m_textList.push_back(std::move(value)); return *this; }
53 inline BatchDetectTargetedSentimentRequest& AddTextList(const char* value) { m_textListHasBeenSet = true; m_textList.push_back(value); return *this; }
55
57
61 inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
62 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
63 inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
64 inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
66 inline BatchDetectTargetedSentimentRequest& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
68 private:
69
70 Aws::Vector<Aws::String> m_textList;
71 bool m_textListHasBeenSet = false;
72
73 LanguageCode m_languageCode;
74 bool m_languageCodeHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace Comprehend
79} // namespace Aws
BatchDetectTargetedSentimentRequest & WithLanguageCode(const LanguageCode &value)
BatchDetectTargetedSentimentRequest & WithTextList(Aws::Vector< Aws::String > &&value)
BatchDetectTargetedSentimentRequest & AddTextList(const char *value)
BatchDetectTargetedSentimentRequest & WithTextList(const Aws::Vector< Aws::String > &value)
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchDetectTargetedSentimentRequest & WithLanguageCode(LanguageCode &&value)
AWS_COMPREHEND_API Aws::String SerializePayload() const override
BatchDetectTargetedSentimentRequest & AddTextList(const Aws::String &value)
BatchDetectTargetedSentimentRequest & AddTextList(Aws::String &&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