/** * 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 BatchDetectSentimentResult { public: AWS_COMPREHEND_API BatchDetectSentimentResult(); AWS_COMPREHEND_API BatchDetectSentimentResult(const Aws::AmazonWebServiceResult& result); AWS_COMPREHEND_API BatchDetectSentimentResult& 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 BatchDetectSentimentResult& 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 BatchDetectSentimentResult& 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 BatchDetectSentimentResult& AddResultList(const BatchDetectSentimentItemResult& 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 BatchDetectSentimentResult& AddResultList(BatchDetectSentimentItemResult&& 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 BatchDetectSentimentResult& 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 BatchDetectSentimentResult& 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 BatchDetectSentimentResult& 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 BatchDetectSentimentResult& 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 BatchDetectSentimentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline BatchDetectSentimentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline BatchDetectSentimentResult& 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