AWS SDK for C++  1.8.126
AWS SDK for C++
BatchDetectDominantLanguageResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace Comprehend
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
43  inline const Aws::Vector<BatchDetectDominantLanguageItemResult>& GetResultList() const{ return m_resultList; }
44 
51  inline void SetResultList(const Aws::Vector<BatchDetectDominantLanguageItemResult>& value) { m_resultList = value; }
52 
59  inline void SetResultList(Aws::Vector<BatchDetectDominantLanguageItemResult>&& value) { m_resultList = std::move(value); }
60 
68 
75  inline BatchDetectDominantLanguageResult& WithResultList(Aws::Vector<BatchDetectDominantLanguageItemResult>&& value) { SetResultList(std::move(value)); return *this;}
76 
83  inline BatchDetectDominantLanguageResult& AddResultList(const BatchDetectDominantLanguageItemResult& value) { m_resultList.push_back(value); return *this; }
84 
91  inline BatchDetectDominantLanguageResult& AddResultList(BatchDetectDominantLanguageItemResult&& value) { m_resultList.push_back(std::move(value)); return *this; }
92 
93 
100  inline const Aws::Vector<BatchItemError>& GetErrorList() const{ return m_errorList; }
101 
108  inline void SetErrorList(const Aws::Vector<BatchItemError>& value) { m_errorList = value; }
109 
116  inline void SetErrorList(Aws::Vector<BatchItemError>&& value) { m_errorList = std::move(value); }
117 
124  inline BatchDetectDominantLanguageResult& WithErrorList(const Aws::Vector<BatchItemError>& value) { SetErrorList(value); return *this;}
125 
132  inline BatchDetectDominantLanguageResult& WithErrorList(Aws::Vector<BatchItemError>&& value) { SetErrorList(std::move(value)); return *this;}
133 
140  inline BatchDetectDominantLanguageResult& AddErrorList(const BatchItemError& value) { m_errorList.push_back(value); return *this; }
141 
148  inline BatchDetectDominantLanguageResult& AddErrorList(BatchItemError&& value) { m_errorList.push_back(std::move(value)); return *this; }
149 
150  private:
151 
153 
154  Aws::Vector<BatchItemError> m_errorList;
155  };
156 
157 } // namespace Model
158 } // namespace Comprehend
159 } // namespace Aws
Aws::Comprehend::Model::BatchDetectDominantLanguageResult::WithResultList
BatchDetectDominantLanguageResult & WithResultList(Aws::Vector< BatchDetectDominantLanguageItemResult > &&value)
Definition: BatchDetectDominantLanguageResult.h:75
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Comprehend::Model::BatchDetectDominantLanguageResult::SetErrorList
void SetErrorList(const Aws::Vector< BatchItemError > &value)
Definition: BatchDetectDominantLanguageResult.h:108
Aws::Comprehend::Model::BatchDetectDominantLanguageResult::AddResultList
BatchDetectDominantLanguageResult & AddResultList(const BatchDetectDominantLanguageItemResult &value)
Definition: BatchDetectDominantLanguageResult.h:83
Aws::Comprehend::Model::BatchDetectDominantLanguageResult::AddResultList
BatchDetectDominantLanguageResult & AddResultList(BatchDetectDominantLanguageItemResult &&value)
Definition: BatchDetectDominantLanguageResult.h:91
AWS_COMPREHEND_API
#define AWS_COMPREHEND_API
Definition: Comprehend_EXPORTS.h:28
Aws::Comprehend::Model::BatchDetectDominantLanguageResult::AddErrorList
BatchDetectDominantLanguageResult & AddErrorList(const BatchItemError &value)
Definition: BatchDetectDominantLanguageResult.h:140
Aws::Comprehend::Model::BatchItemError
Definition: BatchItemError.h:34
Aws::Comprehend::Model::BatchDetectDominantLanguageResult::WithErrorList
BatchDetectDominantLanguageResult & WithErrorList(Aws::Vector< BatchItemError > &&value)
Definition: BatchDetectDominantLanguageResult.h:132
Aws::Comprehend::Model::BatchDetectDominantLanguageItemResult
Definition: BatchDetectDominantLanguageItemResult.h:35
Aws::Comprehend::Model::BatchDetectDominantLanguageResult::SetResultList
void SetResultList(Aws::Vector< BatchDetectDominantLanguageItemResult > &&value)
Definition: BatchDetectDominantLanguageResult.h:59
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Comprehend::Model::BatchDetectDominantLanguageResult::WithErrorList
BatchDetectDominantLanguageResult & WithErrorList(const Aws::Vector< BatchItemError > &value)
Definition: BatchDetectDominantLanguageResult.h:124
Aws::Comprehend::Model::BatchDetectDominantLanguageResult::operator=
BatchDetectDominantLanguageResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Comprehend::Model::BatchDetectDominantLanguageResult::BatchDetectDominantLanguageResult
BatchDetectDominantLanguageResult()
AWSVector.h
Aws::Comprehend::Model::BatchDetectDominantLanguageResult::GetErrorList
const Aws::Vector< BatchItemError > & GetErrorList() const
Definition: BatchDetectDominantLanguageResult.h:100
Aws::Comprehend::Model::BatchDetectDominantLanguageResult::AddErrorList
BatchDetectDominantLanguageResult & AddErrorList(BatchItemError &&value)
Definition: BatchDetectDominantLanguageResult.h:148
Aws::Comprehend::Model::BatchDetectDominantLanguageResult::BatchDetectDominantLanguageResult
BatchDetectDominantLanguageResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Comprehend::Model::BatchDetectDominantLanguageResult::SetResultList
void SetResultList(const Aws::Vector< BatchDetectDominantLanguageItemResult > &value)
Definition: BatchDetectDominantLanguageResult.h:51
Aws::Comprehend::Model::BatchDetectDominantLanguageResult::WithResultList
BatchDetectDominantLanguageResult & WithResultList(const Aws::Vector< BatchDetectDominantLanguageItemResult > &value)
Definition: BatchDetectDominantLanguageResult.h:67
Aws::Comprehend::Model::BatchDetectDominantLanguageResult
Definition: BatchDetectDominantLanguageResult.h:30
Comprehend_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::Comprehend::Model::BatchDetectDominantLanguageResult::GetResultList
const Aws::Vector< BatchDetectDominantLanguageItemResult > & GetResultList() const
Definition: BatchDetectDominantLanguageResult.h:43
BatchDetectDominantLanguageItemResult.h
Aws::Comprehend::Model::BatchDetectDominantLanguageResult::SetErrorList
void SetErrorList(Aws::Vector< BatchItemError > &&value)
Definition: BatchDetectDominantLanguageResult.h:116
BatchItemError.h