AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
36
37
39
45 inline const Aws::Vector<BatchDetectSentimentItemResult>& GetResultList() const{ return m_resultList; }
46 inline void SetResultList(const Aws::Vector<BatchDetectSentimentItemResult>& value) { m_resultList = value; }
47 inline void SetResultList(Aws::Vector<BatchDetectSentimentItemResult>&& value) { m_resultList = std::move(value); }
50 inline BatchDetectSentimentResult& AddResultList(const BatchDetectSentimentItemResult& value) { m_resultList.push_back(value); return *this; }
51 inline BatchDetectSentimentResult& AddResultList(BatchDetectSentimentItemResult&& value) { m_resultList.push_back(std::move(value)); return *this; }
53
55
61 inline const Aws::Vector<BatchItemError>& GetErrorList() const{ return m_errorList; }
62 inline void SetErrorList(const Aws::Vector<BatchItemError>& value) { m_errorList = value; }
63 inline void SetErrorList(Aws::Vector<BatchItemError>&& value) { m_errorList = std::move(value); }
65 inline BatchDetectSentimentResult& WithErrorList(Aws::Vector<BatchItemError>&& value) { SetErrorList(std::move(value)); return *this;}
66 inline BatchDetectSentimentResult& AddErrorList(const BatchItemError& value) { m_errorList.push_back(value); return *this; }
67 inline BatchDetectSentimentResult& AddErrorList(BatchItemError&& value) { m_errorList.push_back(std::move(value)); return *this; }
69
71
72 inline const Aws::String& GetRequestId() const{ return m_requestId; }
73 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
74 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
75 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
76 inline BatchDetectSentimentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
77 inline BatchDetectSentimentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
78 inline BatchDetectSentimentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
80 private:
81
83
85
86 Aws::String m_requestId;
87 };
88
89} // namespace Model
90} // namespace Comprehend
91} // namespace Aws
void SetErrorList(Aws::Vector< BatchItemError > &&value)
const Aws::Vector< BatchItemError > & GetErrorList() const
BatchDetectSentimentResult & WithResultList(Aws::Vector< BatchDetectSentimentItemResult > &&value)
BatchDetectSentimentResult & WithRequestId(const char *value)
BatchDetectSentimentResult & WithResultList(const Aws::Vector< BatchDetectSentimentItemResult > &value)
BatchDetectSentimentResult & AddResultList(const BatchDetectSentimentItemResult &value)
BatchDetectSentimentResult & WithRequestId(Aws::String &&value)
const Aws::Vector< BatchDetectSentimentItemResult > & GetResultList() const
void SetErrorList(const Aws::Vector< BatchItemError > &value)
BatchDetectSentimentResult & AddErrorList(BatchItemError &&value)
BatchDetectSentimentResult & WithErrorList(const Aws::Vector< BatchItemError > &value)
BatchDetectSentimentResult & WithErrorList(Aws::Vector< BatchItemError > &&value)
void SetResultList(Aws::Vector< BatchDetectSentimentItemResult > &&value)
BatchDetectSentimentResult & AddResultList(BatchDetectSentimentItemResult &&value)
BatchDetectSentimentResult & AddErrorList(const BatchItemError &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 & WithRequestId(const Aws::String &value)
void SetResultList(const Aws::Vector< BatchDetectSentimentItemResult > &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