1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/comprehend/Comprehend_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSVector.h>
9 #include <aws/comprehend/model/BatchDetectSyntaxItemResult.h>
10 #include <aws/comprehend/model/BatchItemError.h>
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 {
29   class AWS_COMPREHEND_API BatchDetectSyntaxResult
30   {
31   public:
32     BatchDetectSyntaxResult();
33     BatchDetectSyntaxResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
34     BatchDetectSyntaxResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
35 
36 
37     /**
38      * <p>A list of objects containing the results of the operation. The results are
39      * sorted in ascending order by the <code>Index</code> field and match the order of
40      * the documents in the input list. If all of the documents contain an error, the
41      * <code>ResultList</code> is empty.</p>
42      */
GetResultList()43     inline const Aws::Vector<BatchDetectSyntaxItemResult>& GetResultList() const{ return m_resultList; }
44 
45     /**
46      * <p>A list of objects containing the results of the operation. The results are
47      * sorted in ascending order by the <code>Index</code> field and match the order of
48      * the documents in the input list. If all of the documents contain an error, the
49      * <code>ResultList</code> is empty.</p>
50      */
SetResultList(const Aws::Vector<BatchDetectSyntaxItemResult> & value)51     inline void SetResultList(const Aws::Vector<BatchDetectSyntaxItemResult>& value) { m_resultList = value; }
52 
53     /**
54      * <p>A list of objects containing the results of the operation. The results are
55      * sorted in ascending order by the <code>Index</code> field and match the order of
56      * the documents in the input list. If all of the documents contain an error, the
57      * <code>ResultList</code> is empty.</p>
58      */
SetResultList(Aws::Vector<BatchDetectSyntaxItemResult> && value)59     inline void SetResultList(Aws::Vector<BatchDetectSyntaxItemResult>&& value) { m_resultList = std::move(value); }
60 
61     /**
62      * <p>A list of objects containing the results of the operation. The results are
63      * sorted in ascending order by the <code>Index</code> field and match the order of
64      * the documents in the input list. If all of the documents contain an error, the
65      * <code>ResultList</code> is empty.</p>
66      */
WithResultList(const Aws::Vector<BatchDetectSyntaxItemResult> & value)67     inline BatchDetectSyntaxResult& WithResultList(const Aws::Vector<BatchDetectSyntaxItemResult>& value) { SetResultList(value); return *this;}
68 
69     /**
70      * <p>A list of objects containing the results of the operation. The results are
71      * sorted in ascending order by the <code>Index</code> field and match the order of
72      * the documents in the input list. If all of the documents contain an error, the
73      * <code>ResultList</code> is empty.</p>
74      */
WithResultList(Aws::Vector<BatchDetectSyntaxItemResult> && value)75     inline BatchDetectSyntaxResult& WithResultList(Aws::Vector<BatchDetectSyntaxItemResult>&& value) { SetResultList(std::move(value)); return *this;}
76 
77     /**
78      * <p>A list of objects containing the results of the operation. The results are
79      * sorted in ascending order by the <code>Index</code> field and match the order of
80      * the documents in the input list. If all of the documents contain an error, the
81      * <code>ResultList</code> is empty.</p>
82      */
AddResultList(const BatchDetectSyntaxItemResult & value)83     inline BatchDetectSyntaxResult& AddResultList(const BatchDetectSyntaxItemResult& value) { m_resultList.push_back(value); return *this; }
84 
85     /**
86      * <p>A list of objects containing the results of the operation. The results are
87      * sorted in ascending order by the <code>Index</code> field and match the order of
88      * the documents in the input list. If all of the documents contain an error, the
89      * <code>ResultList</code> is empty.</p>
90      */
AddResultList(BatchDetectSyntaxItemResult && value)91     inline BatchDetectSyntaxResult& AddResultList(BatchDetectSyntaxItemResult&& value) { m_resultList.push_back(std::move(value)); return *this; }
92 
93 
94     /**
95      * <p>A list containing one object for each document that contained an error. The
96      * results are sorted in ascending order by the <code>Index</code> field and match
97      * the order of the documents in the input list. If there are no errors in the
98      * batch, the <code>ErrorList</code> is empty.</p>
99      */
GetErrorList()100     inline const Aws::Vector<BatchItemError>& GetErrorList() const{ return m_errorList; }
101 
102     /**
103      * <p>A list containing one object for each document that contained an error. The
104      * results are sorted in ascending order by the <code>Index</code> field and match
105      * the order of the documents in the input list. If there are no errors in the
106      * batch, the <code>ErrorList</code> is empty.</p>
107      */
SetErrorList(const Aws::Vector<BatchItemError> & value)108     inline void SetErrorList(const Aws::Vector<BatchItemError>& value) { m_errorList = value; }
109 
110     /**
111      * <p>A list containing one object for each document that contained an error. The
112      * results are sorted in ascending order by the <code>Index</code> field and match
113      * the order of the documents in the input list. If there are no errors in the
114      * batch, the <code>ErrorList</code> is empty.</p>
115      */
SetErrorList(Aws::Vector<BatchItemError> && value)116     inline void SetErrorList(Aws::Vector<BatchItemError>&& value) { m_errorList = std::move(value); }
117 
118     /**
119      * <p>A list containing one object for each document that contained an error. The
120      * results are sorted in ascending order by the <code>Index</code> field and match
121      * the order of the documents in the input list. If there are no errors in the
122      * batch, the <code>ErrorList</code> is empty.</p>
123      */
WithErrorList(const Aws::Vector<BatchItemError> & value)124     inline BatchDetectSyntaxResult& WithErrorList(const Aws::Vector<BatchItemError>& value) { SetErrorList(value); return *this;}
125 
126     /**
127      * <p>A list containing one object for each document that contained an error. The
128      * results are sorted in ascending order by the <code>Index</code> field and match
129      * the order of the documents in the input list. If there are no errors in the
130      * batch, the <code>ErrorList</code> is empty.</p>
131      */
WithErrorList(Aws::Vector<BatchItemError> && value)132     inline BatchDetectSyntaxResult& WithErrorList(Aws::Vector<BatchItemError>&& value) { SetErrorList(std::move(value)); return *this;}
133 
134     /**
135      * <p>A list containing one object for each document that contained an error. The
136      * results are sorted in ascending order by the <code>Index</code> field and match
137      * the order of the documents in the input list. If there are no errors in the
138      * batch, the <code>ErrorList</code> is empty.</p>
139      */
AddErrorList(const BatchItemError & value)140     inline BatchDetectSyntaxResult& AddErrorList(const BatchItemError& value) { m_errorList.push_back(value); return *this; }
141 
142     /**
143      * <p>A list containing one object for each document that contained an error. The
144      * results are sorted in ascending order by the <code>Index</code> field and match
145      * the order of the documents in the input list. If there are no errors in the
146      * batch, the <code>ErrorList</code> is empty.</p>
147      */
AddErrorList(BatchItemError && value)148     inline BatchDetectSyntaxResult& AddErrorList(BatchItemError&& value) { m_errorList.push_back(std::move(value)); return *this; }
149 
150   private:
151 
152     Aws::Vector<BatchDetectSyntaxItemResult> m_resultList;
153 
154     Aws::Vector<BatchItemError> m_errorList;
155   };
156 
157 } // namespace Model
158 } // namespace Comprehend
159 } // namespace Aws
160