AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
BatchDetectSentimentResult.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/comprehend/model/BatchDetectSentimentItemResult.h>
11#include <aws/comprehend/model/BatchItemError.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Comprehend
27{
28namespace Model
29{
31 {
32 public:
33 AWS_COMPREHEND_API BatchDetectSentimentResult() = default;
36
37
39
45 inline const Aws::Vector<BatchDetectSentimentItemResult>& GetResultList() const { return m_resultList; }
46 template<typename ResultListT = Aws::Vector<BatchDetectSentimentItemResult>>
47 void SetResultList(ResultListT&& value) { m_resultListHasBeenSet = true; m_resultList = std::forward<ResultListT>(value); }
48 template<typename ResultListT = Aws::Vector<BatchDetectSentimentItemResult>>
49 BatchDetectSentimentResult& WithResultList(ResultListT&& value) { SetResultList(std::forward<ResultListT>(value)); return *this;}
50 template<typename ResultListT = BatchDetectSentimentItemResult>
51 BatchDetectSentimentResult& AddResultList(ResultListT&& value) { m_resultListHasBeenSet = true; m_resultList.emplace_back(std::forward<ResultListT>(value)); return *this; }
53
55
61 inline const Aws::Vector<BatchItemError>& GetErrorList() const { return m_errorList; }
62 template<typename ErrorListT = Aws::Vector<BatchItemError>>
63 void SetErrorList(ErrorListT&& value) { m_errorListHasBeenSet = true; m_errorList = std::forward<ErrorListT>(value); }
64 template<typename ErrorListT = Aws::Vector<BatchItemError>>
65 BatchDetectSentimentResult& WithErrorList(ErrorListT&& value) { SetErrorList(std::forward<ErrorListT>(value)); return *this;}
66 template<typename ErrorListT = BatchItemError>
67 BatchDetectSentimentResult& AddErrorList(ErrorListT&& value) { m_errorListHasBeenSet = true; m_errorList.emplace_back(std::forward<ErrorListT>(value)); return *this; }
69
71
72 inline const Aws::String& GetRequestId() const { return m_requestId; }
73 template<typename RequestIdT = Aws::String>
74 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
75 template<typename RequestIdT = Aws::String>
76 BatchDetectSentimentResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
78 private:
79
81 bool m_resultListHasBeenSet = false;
82
84 bool m_errorListHasBeenSet = false;
85
86 Aws::String m_requestId;
87 bool m_requestIdHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace Comprehend
92} // namespace Aws
const Aws::Vector< BatchItemError > & GetErrorList() const
BatchDetectSentimentResult & WithErrorList(ErrorListT &&value)
BatchDetectSentimentResult & AddResultList(ResultListT &&value)
AWS_COMPREHEND_API BatchDetectSentimentResult()=default
const Aws::Vector< BatchDetectSentimentItemResult > & GetResultList() const
BatchDetectSentimentResult & WithResultList(ResultListT &&value)
BatchDetectSentimentResult & WithRequestId(RequestIdT &&value)
AWS_COMPREHEND_API BatchDetectSentimentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_COMPREHEND_API BatchDetectSentimentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchDetectSentimentResult & AddErrorList(ErrorListT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue