/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Comprehend { namespace Model { class AWS_COMPREHEND_API BatchDetectSyntaxResult { public: BatchDetectSyntaxResult(); BatchDetectSyntaxResult(const Aws::AmazonWebServiceResult& result); BatchDetectSyntaxResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A list of objects containing the results of the operation. The results are * sorted in ascending order by the Index field and match the order of * the documents in the input list. If all of the documents contain an error, the * ResultList is empty.

*/ inline const Aws::Vector& GetResultList() const{ return m_resultList; } /** *

A list of objects containing the results of the operation. The results are * sorted in ascending order by the Index field and match the order of * the documents in the input list. If all of the documents contain an error, the * ResultList is empty.

*/ inline void SetResultList(const Aws::Vector& value) { m_resultList = value; } /** *

A list of objects containing the results of the operation. The results are * sorted in ascending order by the Index field and match the order of * the documents in the input list. If all of the documents contain an error, the * ResultList is empty.

*/ inline void SetResultList(Aws::Vector&& value) { m_resultList = std::move(value); } /** *

A list of objects containing the results of the operation. The results are * sorted in ascending order by the Index field and match the order of * the documents in the input list. If all of the documents contain an error, the * ResultList is empty.

*/ inline BatchDetectSyntaxResult& WithResultList(const Aws::Vector& value) { SetResultList(value); return *this;} /** *

A list of objects containing the results of the operation. The results are * sorted in ascending order by the Index field and match the order of * the documents in the input list. If all of the documents contain an error, the * ResultList is empty.

*/ inline BatchDetectSyntaxResult& WithResultList(Aws::Vector&& value) { SetResultList(std::move(value)); return *this;} /** *

A list of objects containing the results of the operation. The results are * sorted in ascending order by the Index field and match the order of * the documents in the input list. If all of the documents contain an error, the * ResultList is empty.

*/ inline BatchDetectSyntaxResult& AddResultList(const BatchDetectSyntaxItemResult& value) { m_resultList.push_back(value); return *this; } /** *

A list of objects containing the results of the operation. The results are * sorted in ascending order by the Index field and match the order of * the documents in the input list. If all of the documents contain an error, the * ResultList is empty.

*/ inline BatchDetectSyntaxResult& AddResultList(BatchDetectSyntaxItemResult&& value) { m_resultList.push_back(std::move(value)); return *this; } /** *

A list containing one object for each document that contained an error. The * results are sorted in ascending order by the Index field and match * the order of the documents in the input list. If there are no errors in the * batch, the ErrorList is empty.

*/ inline const Aws::Vector& GetErrorList() const{ return m_errorList; } /** *

A list containing one object for each document that contained an error. The * results are sorted in ascending order by the Index field and match * the order of the documents in the input list. If there are no errors in the * batch, the ErrorList is empty.

*/ inline void SetErrorList(const Aws::Vector& value) { m_errorList = value; } /** *

A list containing one object for each document that contained an error. The * results are sorted in ascending order by the Index field and match * the order of the documents in the input list. If there are no errors in the * batch, the ErrorList is empty.

*/ inline void SetErrorList(Aws::Vector&& value) { m_errorList = std::move(value); } /** *

A list containing one object for each document that contained an error. The * results are sorted in ascending order by the Index field and match * the order of the documents in the input list. If there are no errors in the * batch, the ErrorList is empty.

*/ inline BatchDetectSyntaxResult& WithErrorList(const Aws::Vector& value) { SetErrorList(value); return *this;} /** *

A list containing one object for each document that contained an error. The * results are sorted in ascending order by the Index field and match * the order of the documents in the input list. If there are no errors in the * batch, the ErrorList is empty.

*/ inline BatchDetectSyntaxResult& WithErrorList(Aws::Vector&& value) { SetErrorList(std::move(value)); return *this;} /** *

A list containing one object for each document that contained an error. The * results are sorted in ascending order by the Index field and match * the order of the documents in the input list. If there are no errors in the * batch, the ErrorList is empty.

*/ inline BatchDetectSyntaxResult& AddErrorList(const BatchItemError& value) { m_errorList.push_back(value); return *this; } /** *

A list containing one object for each document that contained an error. The * results are sorted in ascending order by the Index field and match * the order of the documents in the input list. If there are no errors in the * batch, the ErrorList is empty.

*/ inline BatchDetectSyntaxResult& AddErrorList(BatchItemError&& value) { m_errorList.push_back(std::move(value)); return *this; } private: Aws::Vector m_resultList; Aws::Vector m_errorList; }; } // namespace Model } // namespace Comprehend } // namespace Aws