/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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 BatchDetectEntitiesResult { public: AWS_COMPREHEND_API BatchDetectEntitiesResult(); AWS_COMPREHEND_API BatchDetectEntitiesResult(const Aws::AmazonWebServiceResult& result); AWS_COMPREHEND_API BatchDetectEntitiesResult& 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 BatchDetectEntitiesResult& 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 BatchDetectEntitiesResult& 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 BatchDetectEntitiesResult& AddResultList(const BatchDetectEntitiesItemResult& 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 BatchDetectEntitiesResult& AddResultList(BatchDetectEntitiesItemResult&& 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 BatchDetectEntitiesResult& 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 BatchDetectEntitiesResult& 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 BatchDetectEntitiesResult& 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 BatchDetectEntitiesResult& AddErrorList(BatchItemError&& value) { m_errorList.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline BatchDetectEntitiesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline BatchDetectEntitiesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline BatchDetectEntitiesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_resultList; Aws::Vector m_errorList; Aws::String m_requestId; }; } // namespace Model } // namespace Comprehend } // namespace Aws