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/http/HttpResponse.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
17template <
typename RESULT_TYPE>
18class AmazonWebServiceResult;
41 template <
typename ResultListT = Aws::Vector<BatchDetectTargetedSentimentItemResult>>
43 m_resultListHasBeenSet =
true;
44 m_resultList = std::forward<ResultListT>(value);
46 template <
typename ResultListT = Aws::Vector<BatchDetectTargetedSentimentItemResult>>
51 template <
typename ResultListT = BatchDetectTargetedSentimentItemResult>
53 m_resultListHasBeenSet =
true;
54 m_resultList.emplace_back(std::forward<ResultListT>(value));
64 template <
typename ErrorListT = Aws::Vector<BatchItemError>>
66 m_errorListHasBeenSet =
true;
67 m_errorList = std::forward<ErrorListT>(value);
69 template <
typename ErrorListT = Aws::Vector<BatchItemError>>
74 template <
typename ErrorListT = BatchItemError>
76 m_errorListHasBeenSet =
true;
77 m_errorList.emplace_back(std::forward<ErrorListT>(value));
85 template <
typename RequestIdT = Aws::String>
87 m_requestIdHasBeenSet =
true;
88 m_requestId = std::forward<RequestIdT>(value);
90 template <
typename RequestIdT = Aws::String>
105 bool m_resultListHasBeenSet =
false;
106 bool m_errorListHasBeenSet =
false;
107 bool m_requestIdHasBeenSet =
false;
BatchDetectTargetedSentimentResult & AddResultList(ResultListT &&value)
void SetResultList(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)
void SetRequestId(RequestIdT &&value)
BatchDetectTargetedSentimentResult & WithResultList(ResultListT &&value)
BatchDetectTargetedSentimentResult & WithRequestId(RequestIdT &&value)
BatchDetectTargetedSentimentResult & AddErrorList(ErrorListT &&value)
const Aws::Vector< BatchItemError > & GetErrorList() const
AWS_COMPREHEND_API BatchDetectTargetedSentimentResult()=default
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetErrorList(ErrorListT &&value)
const Aws::String & GetRequestId() const
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