AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
BatchDetectTargetedSentimentResult.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/model/BatchDetectTargetedSentimentItemResult.h>
9#include <aws/comprehend/model/BatchItemError.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 {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Comprehend {
25namespace Model {
27 public:
28 AWS_COMPREHEND_API BatchDetectTargetedSentimentResult() = default;
31
33
39 inline const Aws::Vector<BatchDetectTargetedSentimentItemResult>& GetResultList() const { return m_resultList; }
40 template <typename ResultListT = Aws::Vector<BatchDetectTargetedSentimentItemResult>>
41 void SetResultList(ResultListT&& value) {
42 m_resultListHasBeenSet = true;
43 m_resultList = std::forward<ResultListT>(value);
44 }
45 template <typename ResultListT = Aws::Vector<BatchDetectTargetedSentimentItemResult>>
47 SetResultList(std::forward<ResultListT>(value));
48 return *this;
49 }
50 template <typename ResultListT = BatchDetectTargetedSentimentItemResult>
52 m_resultListHasBeenSet = true;
53 m_resultList.emplace_back(std::forward<ResultListT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Vector<BatchItemError>& GetErrorList() const { return m_errorList; }
63 template <typename ErrorListT = Aws::Vector<BatchItemError>>
64 void SetErrorList(ErrorListT&& value) {
65 m_errorListHasBeenSet = true;
66 m_errorList = std::forward<ErrorListT>(value);
67 }
68 template <typename ErrorListT = Aws::Vector<BatchItemError>>
70 SetErrorList(std::forward<ErrorListT>(value));
71 return *this;
72 }
73 template <typename ErrorListT = BatchItemError>
75 m_errorListHasBeenSet = true;
76 m_errorList.emplace_back(std::forward<ErrorListT>(value));
77 return *this;
78 }
80
82
83 inline const Aws::String& GetRequestId() const { return m_requestId; }
84 template <typename RequestIdT = Aws::String>
85 void SetRequestId(RequestIdT&& value) {
86 m_requestIdHasBeenSet = true;
87 m_requestId = std::forward<RequestIdT>(value);
88 }
89 template <typename RequestIdT = Aws::String>
91 SetRequestId(std::forward<RequestIdT>(value));
92 return *this;
93 }
95 private:
97
99
100 Aws::String m_requestId;
101 bool m_resultListHasBeenSet = false;
102 bool m_errorListHasBeenSet = false;
103 bool m_requestIdHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace Comprehend
108} // namespace Aws
BatchDetectTargetedSentimentResult & AddResultList(ResultListT &&value)
AWS_COMPREHEND_API BatchDetectTargetedSentimentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchDetectTargetedSentimentResult & WithErrorList(ErrorListT &&value)
AWS_COMPREHEND_API BatchDetectTargetedSentimentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchDetectTargetedSentimentResult & WithResultList(ResultListT &&value)
BatchDetectTargetedSentimentResult & WithRequestId(RequestIdT &&value)
BatchDetectTargetedSentimentResult & AddErrorList(ErrorListT &&value)
AWS_COMPREHEND_API BatchDetectTargetedSentimentResult()=default
const Aws::Vector< BatchDetectTargetedSentimentItemResult > & GetResultList() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue